Skip to content

Commit 4da747a

Browse files
committed
fix(mongodb): fix test
1 parent 6f2f988 commit 4da747a

File tree

3 files changed

+2170
-1773
lines changed

3 files changed

+2170
-1773
lines changed

internal/services/mongodb/instance_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ func TestAccMongoDBInstance_WithPrivateNetwork(t *testing.T) {
234234
private_network {
235235
pn_id = "${scaleway_vpc_private_network.pn01.id}"
236236
}
237+
depends_on = [scaleway_vpc_private_network.pn01]
237238
}
238239
`,
239240
Check: resource.ComposeTestCheckFunc(
@@ -299,6 +300,8 @@ func TestAccMongoDBInstance_UpdatePrivateNetwork(t *testing.T) {
299300
private_network {
300301
pn_id = "${scaleway_vpc_private_network.pn01.id}"
301302
}
303+
depends_on = [scaleway_vpc_private_network.pn01, scaleway_vpc_private_network.pn02]
304+
302305
}
303306
`,
304307
Check: resource.ComposeTestCheckFunc(
@@ -331,6 +334,7 @@ func TestAccMongoDBInstance_UpdatePrivateNetwork(t *testing.T) {
331334
private_network {
332335
pn_id = "${scaleway_vpc_private_network.pn02.id}"
333336
}
337+
depends_on = [scaleway_vpc_private_network.pn01, scaleway_vpc_private_network.pn02]
334338
}
335339
`,
336340
Check: resource.ComposeTestCheckFunc(
@@ -360,6 +364,7 @@ func TestAccMongoDBInstance_UpdatePrivateNetwork(t *testing.T) {
360364
node_number = 1
361365
user_name = "my_initial_user"
362366
password = "thiZ_is_v&ry_s3cret"
367+
depends_on = [scaleway_vpc_private_network.pn01, scaleway_vpc_private_network.pn02]
363368
}
364369
`,
365370
Check: resource.ComposeTestCheckFunc(

0 commit comments

Comments
 (0)