Skip to content

Commit b81680c

Browse files
committed
instance cassettes
1 parent 4920d84 commit b81680c

File tree

158 files changed

+30747
-207839
lines changed

Some content is hidden

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

158 files changed

+30747
-207839
lines changed

internal/namespaces/instance/v1/custom_image_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
func Test_ImageCreate(t *testing.T) {
16-
t.Run("Create simple image", core.Test(&core.TestConfig{
16+
t.Run("Simple", core.Test(&core.TestConfig{
1717
BeforeFunc: core.BeforeFuncCombine(
1818
core.ExecStoreBeforeCmd(
1919
"Server",
@@ -68,7 +68,7 @@ func Test_ImageCreate(t *testing.T) {
6868
}
6969

7070
func Test_ImageDelete(t *testing.T) {
71-
t.Run("simple", core.Test(&core.TestConfig{
71+
t.Run("Simple", core.Test(&core.TestConfig{
7272
BeforeFunc: createImage("Image"),
7373
Commands: instance.GetCommands(),
7474
Cmd: "scw instance image delete {{ .Image.Image.ID }} with-snapshots=true",

internal/namespaces/instance/v1/testdata/test-attach-filesystem-attach-filesystem.cassette.yaml

Lines changed: 239 additions & 1726 deletions
Large diffs are not rendered by default.

internal/namespaces/instance/v1/testdata/test-attach-filesystem-attach-filesystem.golden

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
22
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3-
Server.ID 8b0cc204-0bd7-4ddb-b57e-f0cd4378ab0f
4-
Server.Name cli-srv-funny-curran
3+
Server.ID cb63eaec-e7c5-4c1a-b3da-04a7c4bd51cd
4+
Server.Name cli-srv-distracted-northcutt
55
Server.Organization fa1e3217-dc80-42ac-85c3-3f034b78b552
66
Server.Project fa1e3217-dc80-42ac-85c3-3f034b78b552
77
Server.AllowedActions.0 poweron
@@ -11,7 +11,7 @@ Server.CreationDate few seconds ago
1111
Server.DynamicIPRequired false
1212
Server.RoutedIPEnabled true
1313
Server.EnableIPv6 false
14-
Server.Hostname cli-srv-funny-curran
14+
Server.Hostname cli-srv-distracted-northcutt
1515
Server.Image.ID 6d3c053e-c728-4294-b23a-560b62a4d592
1616
Server.Image.Name Ubuntu 22.04 Jammy Jellyfish
1717
Server.Image.Arch x86_64
@@ -26,11 +26,11 @@ Server.Image.State available
2626
Server.Image.Project 51b656e3-4865-41e8-adbc-0c45bdd780db
2727
Server.Image.Zone fr-par-1
2828
Server.Protected false
29-
Server.MacAddress de:00:00:d0:04:a1
29+
Server.MacAddress de:00:00:d1:45:bb
3030
Server.ModificationDate few seconds ago
3131
Server.State archived
3232
Server.BootType local
33-
Server.Volumes.0.ID d98ba8fa-0e20-45df-99de-ed186191d104
33+
Server.Volumes.0.ID 5a90a249-4707-4bb9-8b86-bc23339c2b14
3434
Server.Volumes.0.VolumeType sbs_volume
3535
Server.Volumes.0.State available
3636
Server.Volumes.0.Boot false
@@ -40,14 +40,14 @@ Server.SecurityGroup.Name Default security group
4040
Server.StateDetail -
4141
Server.Arch x86_64
4242
Server.Zone fr-par-1
43-
Server.Filesystems.0.FilesystemID 76ec2ddd-9383-4898-bf7d-d3cbf2daac0f
43+
Server.Filesystems.0.FilesystemID e2b45d46-f1de-406d-a43d-9f8dfcdd2342
4444
Server.Filesystems.0.State available
4545
Server.EndOfService false
4646
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
4747
{
4848
"server": {
49-
"id": "8b0cc204-0bd7-4ddb-b57e-f0cd4378ab0f",
50-
"name": "cli-srv-funny-curran",
49+
"id": "cb63eaec-e7c5-4c1a-b3da-04a7c4bd51cd",
50+
"name": "cli-srv-distracted-northcutt",
5151
"organization": "fa1e3217-dc80-42ac-85c3-3f034b78b552",
5252
"project": "fa1e3217-dc80-42ac-85c3-3f034b78b552",
5353
"allowed_actions": [
@@ -60,7 +60,7 @@ Server.EndOfService false
6060
"dynamic_ip_required": false,
6161
"routed_ip_enabled": true,
6262
"enable_ipv6": false,
63-
"hostname": "cli-srv-funny-curran",
63+
"hostname": "cli-srv-distracted-northcutt",
6464
"image": {
6565
"id": "6d3c053e-c728-4294-b23a-560b62a4d592",
6666
"name": "Ubuntu 22.04 Jammy Jellyfish",
@@ -87,15 +87,15 @@ Server.EndOfService false
8787
"private_ip": null,
8888
"public_ip": null,
8989
"public_ips": [],
90-
"mac_address": "de:00:00:d0:04:a1",
90+
"mac_address": "de:00:00:d1:45:bb",
9191
"modification_date": "1970-01-01T00:00:00.0Z",
9292
"state": "stopped",
9393
"location": null,
9494
"ipv6": null,
9595
"boot_type": "local",
9696
"volumes": {
9797
"0": {
98-
"id": "d98ba8fa-0e20-45df-99de-ed186191d104",
98+
"id": "5a90a249-4707-4bb9-8b86-bc23339c2b14",
9999
"name": null,
100100
"export_uri": null,
101101
"organization": null,
@@ -124,7 +124,7 @@ Server.EndOfService false
124124
"admin_password_encrypted_value": null,
125125
"filesystems": [
126126
{
127-
"filesystem_id": "76ec2ddd-9383-4898-bf7d-d3cbf2daac0f",
127+
"filesystem_id": "e2b45d46-f1de-406d-a43d-9f8dfcdd2342",
128128
"state": "available"
129129
}
130130
],

internal/namespaces/instance/v1/testdata/test-create-server-errors-error-already-attached-additional-volume-id.cassette.yaml

Lines changed: 302 additions & 3027 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
🎲🎲🎲 EXIT CODE: 1 🎲🎲🎲
22
🟥🟥🟥 STDERR️️ 🟥🟥🟥️
3-
Cannot create the server: failed to build volume template: volume 883a60d0-be2e-446e-a323-8186afb8f1fa is already attached to a797bfe6-16f7-4633-a548-49678259381c server
3+
Cannot create the server: failed to build volume template: volume 11fcf928-2241-4bf0-b3eb-df9a2c095e0e is already attached to ebde9827-d17f-46d7-b7b4-5143a99b7494 server
44
🟥🟥🟥 JSON STDERR 🟥🟥🟥
55
{
6-
"error": "cannot create the server: failed to build volume template: volume 883a60d0-be2e-446e-a323-8186afb8f1fa is already attached to a797bfe6-16f7-4633-a548-49678259381c server"
6+
"error": "cannot create the server: failed to build volume template: volume 11fcf928-2241-4bf0-b3eb-df9a2c095e0e is already attached to ebde9827-d17f-46d7-b7b4-5143a99b7494 server"
77
}

0 commit comments

Comments
 (0)