Skip to content

Commit c64ddfe

Browse files
committed
fix flaky TestAccServer_CustomDiffImage
1 parent cd674ee commit c64ddfe

File tree

2 files changed

+3287
-1389
lines changed

2 files changed

+3287
-1389
lines changed

internal/services/instance/server_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,12 +1405,14 @@ func TestAccServer_CustomDiffImage(t *testing.T) {
14051405
image = "ubuntu_jammy"
14061406
type = "DEV1-S"
14071407
state = "stopped"
1408+
tags = [ "main" ]
14081409
}
14091410
resource "scaleway_instance_server" "control" {
14101411
name = "control-server"
14111412
image = "ubuntu_jammy"
14121413
type = "DEV1-S"
14131414
state = "stopped"
1415+
tags = [ "control" ]
14141416
}
14151417
`,
14161418
Check: resource.ComposeTestCheckFunc(
@@ -1433,12 +1435,14 @@ func TestAccServer_CustomDiffImage(t *testing.T) {
14331435
image = data.scaleway_marketplace_image.jammy.id
14341436
type = "DEV1-S"
14351437
state = "stopped"
1438+
tags = [ "main" ]
14361439
}
14371440
resource "scaleway_instance_server" "control" {
14381441
name = "control-server"
14391442
image = "ubuntu_jammy"
14401443
type = "DEV1-S"
14411444
state = "stopped"
1445+
tags = [ "conntrol" ]
14421446
}
14431447
`, marketplaceImageType),
14441448
Check: resource.ComposeTestCheckFunc(
@@ -1462,12 +1466,14 @@ func TestAccServer_CustomDiffImage(t *testing.T) {
14621466
image = data.scaleway_marketplace_image.focal.id
14631467
type = "DEV1-S"
14641468
state = "stopped"
1469+
tags = [ "main" ]
14651470
}
14661471
resource "scaleway_instance_server" "control" {
14671472
name = "control-server"
14681473
image = "ubuntu_jammy"
14691474
type = "DEV1-S"
14701475
state = "stopped"
1476+
tags = [ "conntrol" ]
14711477
}
14721478
`, marketplaceImageType),
14731479
Check: resource.ComposeTestCheckFunc(

0 commit comments

Comments
 (0)