Skip to content

Commit bc5cd01

Browse files
Matovidloclaude
andcommitted
fix: update test fixtures for keboola.ex-db-mysql schema changes in v2.18.0
keboola-sdk-go v2.18.0 made port, user, and #password required fields in the keboola.ex-db-mysql db config. Update all affected test fixtures: unit tests, internal fixtures, and E2E CLI fixtures (push, pull, diff, encrypt, persist, template-*). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f4f6803 commit bc5cd01

113 files changed

Lines changed: 485 additions & 121 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

internal/pkg/fixtures/configs/with-rows.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"configuration": {
55
"parameters": {
66
"db": {
7-
"host": "mysql.example.com"
7+
"host": "mysql.example.com",
8+
"port": 3306,
9+
"user": "root",
10+
"#password": "KBC::ProjectSecureKV::eJw="
811
}
912
}
1013
},
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"parameters": {
33
"db": {
4-
"host": "mysql.example.com"
4+
"host": "mysql.example.com",
5+
"port": 3306,
6+
"user": "root",
7+
"#password": ""
58
}
69
}
710
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"parameters": {
33
"db": {
4-
"host": "mysql.example.com"
4+
"host": "mysql.example.com",
5+
"port": 3306,
6+
"user": "root",
7+
"#password": ""
58
}
69
}
710
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"parameters": {
33
"db": {
4-
"host": "mysql.example.com"
4+
"host": "mysql.example.com",
5+
"port": 3306,
6+
"user": "root",
7+
"#password": ""
58
}
69
}
710
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"parameters": {
33
"db": {
4-
"host": "mysql.example.com"
4+
"host": "mysql.example.com",
5+
"port": 3306,
6+
"user": "root",
7+
"#password": ""
58
}
69
}
710
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"parameters": {
33
"db": {
4-
"host": "mysql.example.com"
4+
"host": "mysql.example.com",
5+
"port": 3306,
6+
"user": "root",
7+
"#password": ""
58
}
69
}
710
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"parameters": {
33
"db": {
4-
"host": "mysql.example.com"
4+
"host": "mysql.example.com",
5+
"port": 3306,
6+
"user": "root",
7+
"#password": ""
58
}
69
}
710
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"parameters": {
33
"db": {
4-
"host": "mysql.example.com"
4+
"host": "mysql.example.com",
5+
"port": 3306,
6+
"user": "root",
7+
"#password": ""
58
}
69
}
710
}

internal/pkg/state/load_local_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,18 @@ func complexLocalExpectedConfigs() []*model.ConfigState {
381381
Key: "host",
382382
Value: "mysql.example.com",
383383
},
384+
{
385+
Key: "port",
386+
Value: float64(3306),
387+
},
388+
{
389+
Key: "user",
390+
Value: "root",
391+
},
392+
{
393+
Key: "#password",
394+
Value: "",
395+
},
384396
}),
385397
},
386398
}),

internal/pkg/state/load_remote_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,18 @@ func complexRemoteExpectedConfigs(envs *env.Map) []*model.ConfigState {
269269
Key: "host",
270270
Value: "mysql.example.com",
271271
},
272+
{
273+
Key: "port",
274+
Value: float64(3306),
275+
},
276+
{
277+
Key: "user",
278+
Value: "root",
279+
},
280+
{
281+
Key: "#password",
282+
Value: "KBC::ProjectSecureKV::eJw=",
283+
},
272284
}),
273285
},
274286
}),

0 commit comments

Comments
 (0)