Skip to content

Commit ed187a6

Browse files
committed
tests(container): use sdk vcr (go-vcr.v4) for container package
1 parent 485a055 commit ed187a6

17 files changed

Lines changed: 6042 additions & 6417 deletions

core/testing.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ func createTestClient(
308308
var DefaultRetryInterval *time.Duration
309309

310310
var foldersUsingVCRv4 = []string{
311+
"container",
311312
"instance",
312313
"k8s",
313314
"marketplace",

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ require (
2727
github.com/moby/moby/client v0.4.1
2828
github.com/modelcontextprotocol/go-sdk v1.6.0
2929
github.com/opencontainers/go-digest v1.0.0
30-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260520152224-4c93e1e32498
30+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260522134626-b75cc1c22ef2
3131
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
3232
github.com/spf13/cobra v1.10.2
3333
github.com/spf13/pflag v1.0.10

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7
478478
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
479479
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
480480
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
481-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260520152224-4c93e1e32498 h1:9gy9q8Bbac1Wtf5u28gMN3/FfRDRWuWIelPiBTF0/io=
482-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260520152224-4c93e1e32498/go.mod h1:nM6TSLEqF6l+p7ds8I5/Xu+NXD9nRrYSu3sa/czcdEw=
481+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260522134626-b75cc1c22ef2 h1:LYZlvcrhBxlVoS1Dg7II8FSWnszYduSI5lr9rre/AVA=
482+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.36.0.20260522134626-b75cc1c22ef2/go.mod h1:nM6TSLEqF6l+p7ds8I5/Xu+NXD9nRrYSu3sa/czcdEw=
483483
github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8=
484484
github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM=
485485
github.com/secure-systems-lab/go-securesystemslib v0.10.0 h1:l+H5ErcW0PAehBNrBxoGv1jjNpGYdZ9RcheFkB2WI14=

internal/namespaces/container/v1/testdata/test-create-container-simple.cassette.yaml

Lines changed: 167 additions & 165 deletions
Large diffs are not rendered by default.

internal/namespaces/container/v1/testdata/test-create-container-simple.golden

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
ID 4ce99088-9c44-4240-8731-9f0ce35b3c5f
4-
Name cli-test-sad-bartik
5-
NamespaceID 198663b0-a4a4-41f3-b670-74fd21b841ad
3+
ID 6ffa735f-07a7-4ad2-93e2-61e55096ac1e
4+
Name cli-test-objective-driscoll
5+
NamespaceID 3f4c016a-5dcb-4cd5-8760-70a485f152e7
66
Description -
77
Status creating
88
CreatedAt few seconds ago
@@ -23,13 +23,13 @@ ScalingOption.ConcurrentRequestsThreshold 50
2323
LivenessProbe.FailureThreshold 30
2424
LivenessProbe.Interval 10 seconds
2525
LivenessProbe.Timeout 1 seconds
26-
PublicEndpoint https://clinsvibrantlewin198663b0-cli-test-sad-bartik.functions.fnc.fr-par.scw.cloud
26+
PublicEndpoint https://clinsagitatedpoincar3f4c016a-cli-test-objective-driscoll.functions.fnc.fr-par.scw.cloud
2727
Region fr-par
2828
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
2929
{
30-
"id": "4ce99088-9c44-4240-8731-9f0ce35b3c5f",
31-
"name": "cli-test-sad-bartik",
32-
"namespace_id": "198663b0-a4a4-41f3-b670-74fd21b841ad",
30+
"id": "6ffa735f-07a7-4ad2-93e2-61e55096ac1e",
31+
"name": "cli-test-objective-driscoll",
32+
"namespace_id": "3f4c016a-5dcb-4cd5-8760-70a485f152e7",
3333
"description": "",
3434
"status": "creating",
3535
"error_message": null,
@@ -63,6 +63,6 @@ Region fr-par
6363
"private_network_id": null,
6464
"command": [],
6565
"args": [],
66-
"public_endpoint": "https://clinsvibrantlewin198663b0-cli-test-sad-bartik.functions.fnc.fr-par.scw.cloud",
66+
"public_endpoint": "https://clinsagitatedpoincar3f4c016a-cli-test-objective-driscoll.functions.fnc.fr-par.scw.cloud",
6767
"region": "fr-par"
6868
}

internal/namespaces/container/v1/testdata/test-deploy-app-name-deduced-from-path.cassette.yaml

Lines changed: 692 additions & 633 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Your application is now available at https://appclitctnrdeployfpf6147888-app-cli-t-ctnr-deploy-fp.functions.fnc.fr-par.scw.cloud
3+
Your application is now available at https://appclitctnrdeployfp3276f567-app-cli-t-ctnr-deploy-fp.functions.fnc.fr-par.scw.cloud
44

55
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
6-
"Your application is now available at https://appclitctnrdeployfpf6147888-app-cli-t-ctnr-deploy-fp.functions.fnc.fr-par.scw.cloud\n"
6+
"Your application is now available at https://appclitctnrdeployfp3276f567-app-cli-t-ctnr-deploy-fp.functions.fnc.fr-par.scw.cloud\n"

internal/namespaces/container/v1/testdata/test-deploy-build-args.cassette.yaml

Lines changed: 694 additions & 641 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Your application is now available at https://clitctnrdeploybac41213ac-cli-t-ctnr-deploy-ba.functions.fnc.fr-par.scw.cloud
3+
Your application is now available at https://clitctnrdeployba2f5b65ce-cli-t-ctnr-deploy-ba.functions.fnc.fr-par.scw.cloud
44

55
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
6-
"Your application is now available at https://clitctnrdeploybac41213ac-cli-t-ctnr-deploy-ba.functions.fnc.fr-par.scw.cloud\n"
6+
"Your application is now available at https://clitctnrdeployba2f5b65ce-cli-t-ctnr-deploy-ba.functions.fnc.fr-par.scw.cloud\n"

internal/namespaces/container/v1/testdata/test-deploy-buildpack.cassette.yaml

Lines changed: 2267 additions & 2849 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)