Skip to content

Commit a17585b

Browse files
authored
test(rdb_instance): detach private network in final steps (#1335)
rdb instances do not detach vpc before deletion so deleting vpc would fail when trying to delete both at the same time
1 parent 1db16a6 commit a17585b

3 files changed

+1809
-1030
lines changed

scaleway/resource_rdb_instance_test.go

+28
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,20 @@ func TestAccScalewayRdbInstance_PrivateNetwork(t *testing.T) {
389389
name = "my_private_network"
390390
zone = "nl-ams-1"
391391
}
392+
393+
resource scaleway_rdb_instance main {
394+
name = "test-rdb"
395+
node_type = "db-dev-s"
396+
engine = "PostgreSQL-11"
397+
is_ha_cluster = false
398+
disable_backup = true
399+
user_name = "my_initial_user"
400+
password = "thiZ_is_v&ry_s3cret"
401+
region= "nl-ams"
402+
tags = [ "terraform-test", "scaleway_rdb_instance", "volume", "rdb_pn" ]
403+
volume_type = "bssd"
404+
volume_size_in_gb = 10
405+
}
392406
`,
393407
},
394408
},
@@ -475,6 +489,20 @@ func TestAccScalewayRdbInstance_PrivateNetwork_DHCP(t *testing.T) {
475489
name = "my_private_network"
476490
zone = "nl-ams-1"
477491
}
492+
493+
resource scaleway_rdb_instance main {
494+
name = "test-rdb"
495+
node_type = "db-dev-s"
496+
engine = "PostgreSQL-11"
497+
is_ha_cluster = false
498+
disable_backup = true
499+
user_name = "my_initial_user"
500+
password = "thiZ_is_v&ry_s3cret"
501+
region= "nl-ams"
502+
tags = [ "terraform-test", "scaleway_rdb_instance", "volume", "rdb_pn" ]
503+
volume_type = "bssd"
504+
volume_size_in_gb = 10
505+
}
478506
`,
479507
},
480508
},

0 commit comments

Comments
 (0)