Skip to content

Commit b307132

Browse files
authored
test(instance): update scratch storage test with instance max capacity (#3601)
1 parent 342cbc6 commit b307132

File tree

2 files changed

+1429
-1429
lines changed

2 files changed

+1429
-1429
lines changed

internal/services/instance/server_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,14 +2414,14 @@ func TestAccServer_ScratchStorage(t *testing.T) {
24142414
{
24152415
Config: `
24162416
resource "scaleway_instance_volume" "main" {
2417-
size_in_gb = 20
2417+
size_in_gb = 1600
24182418
type = "scratch"
24192419
zone = "fr-par-2"
24202420
}
24212421
24222422
resource "scaleway_instance_server" "main" {
24232423
name = "test-acc-server-scratch"
2424-
type = "H100-1-80G"
2424+
type = "L40S-1-48G"
24252425
image = "ubuntu_jammy_gpu_os_12"
24262426
state = "stopped"
24272427
zone = "fr-par-2"
@@ -2432,10 +2432,10 @@ func TestAccServer_ScratchStorage(t *testing.T) {
24322432
Check: resource.ComposeTestCheckFunc(
24332433
instancechecks.IsServerPresent(tt, "scaleway_instance_server.main"),
24342434
instancechecks.IsVolumePresent(tt, "scaleway_instance_volume.main"),
2435-
resource.TestCheckResourceAttr("scaleway_instance_server.main", "type", "H100-1-80G"),
2435+
resource.TestCheckResourceAttr("scaleway_instance_server.main", "type", "L40S-1-48G"),
24362436
resource.TestCheckResourceAttr("scaleway_instance_server.main", "image", "ubuntu_jammy_gpu_os_12"),
24372437
resource.TestCheckResourceAttrPair("scaleway_instance_server.main", "additional_volume_ids.0", "scaleway_instance_volume.main", "id"),
2438-
resource.TestCheckResourceAttr("scaleway_instance_volume.main", "size_in_gb", "20"),
2438+
resource.TestCheckResourceAttr("scaleway_instance_volume.main", "size_in_gb", "1600"),
24392439
),
24402440
},
24412441
},

0 commit comments

Comments
 (0)