@@ -248,71 +248,3 @@ func TestAccVPCPrivateNetwork_OneSubnet(t *testing.T) {
248248 },
249249 })
250250}
251-
252- func TestAccVPCPrivateNetwork_WithTwoIPV6Subnets (t * testing.T ) {
253- tt := acctest .NewTestTools (t )
254- defer tt .Cleanup ()
255- resource .ParallelTest (t , resource.TestCase {
256- PreCheck : func () { acctest .PreCheck (t ) },
257- ProviderFactories : tt .ProviderFactories ,
258- CheckDestroy : vpcchecks .CheckPrivateNetworkDestroy (tt ),
259- Steps : []resource.TestStep {
260- {
261- Config : `
262- resource scaleway_vpc vpc01 {
263- name = "test-vpc"
264- tags = [ "terraform-test", "vpc", "update" ]
265- }
266-
267- resource scaleway_vpc_private_network pn01 {
268- name = "pn1"
269- tags = ["tag0", "tag1"]
270- vpc_id = scaleway_vpc.vpc01.id
271- ipv4_subnet {
272- subnet = "192.168.0.0/24"
273- }
274- ipv6_subnets {
275- subnet = "fd46:78ab:30b8:177c::/64"
276- }
277- ipv6_subnets {
278- subnet = "fd46:78ab:30b8:c7df::/64"
279- }
280- }
281- ` ,
282- Check : resource .ComposeTestCheckFunc (
283- vpcchecks .IsPrivateNetworkPresent (
284- tt ,
285- "scaleway_vpc_private_network.pn01" ,
286- ),
287- resource .TestCheckResourceAttr (
288- "scaleway_vpc_private_network.pn01" ,
289- "ipv4_subnet.0.subnet" ,
290- "192.168.0.0/24" ,
291- ),
292- resource .TestCheckResourceAttrSet (
293- "scaleway_vpc_private_network.pn01" ,
294- "ipv6_subnets.0.subnet" ,
295- ),
296- resource .TestCheckTypeSetElemNestedAttrs (
297- "scaleway_vpc_private_network.pn01" , "ipv6_subnets.*" , map [string ]string {
298- "subnet" : "fd46:78ab:30b8:177c::/64" ,
299- }),
300- resource .TestCheckTypeSetElemNestedAttrs (
301- "scaleway_vpc_private_network.pn01" , "ipv6_subnets.*" , map [string ]string {
302- "subnet" : "fd46:78ab:30b8:c7df::/64" ,
303- }),
304- resource .TestCheckResourceAttr (
305- "scaleway_vpc_private_network.pn01" ,
306- "ipv4_subnet.#" ,
307- "1" ,
308- ),
309- resource .TestCheckResourceAttr (
310- "scaleway_vpc_private_network.pn01" ,
311- "ipv6_subnets.#" ,
312- "2" ,
313- ),
314- ),
315- },
316- },
317- })
318- }
0 commit comments