Skip to content

Commit

Permalink
tests(vpc): remove two ipv6 subnets case (#2692)
Browse files Browse the repository at this point in the history
  • Loading branch information
yfodil authored Aug 7, 2024
1 parent 661cef8 commit bae2750
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 391 deletions.
68 changes: 0 additions & 68 deletions internal/services/vpc/private_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,71 +248,3 @@ func TestAccVPCPrivateNetwork_OneSubnet(t *testing.T) {
},
})
}

func TestAccVPCPrivateNetwork_WithTwoIPV6Subnets(t *testing.T) {
tt := acctest.NewTestTools(t)
defer tt.Cleanup()
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { acctest.PreCheck(t) },
ProviderFactories: tt.ProviderFactories,
CheckDestroy: vpcchecks.CheckPrivateNetworkDestroy(tt),
Steps: []resource.TestStep{
{
Config: `
resource scaleway_vpc vpc01 {
name = "test-vpc"
tags = [ "terraform-test", "vpc", "update" ]
}
resource scaleway_vpc_private_network pn01 {
name = "pn1"
tags = ["tag0", "tag1"]
vpc_id = scaleway_vpc.vpc01.id
ipv4_subnet {
subnet = "192.168.0.0/24"
}
ipv6_subnets {
subnet = "fd46:78ab:30b8:177c::/64"
}
ipv6_subnets {
subnet = "fd46:78ab:30b8:c7df::/64"
}
}
`,
Check: resource.ComposeTestCheckFunc(
vpcchecks.IsPrivateNetworkPresent(
tt,
"scaleway_vpc_private_network.pn01",
),
resource.TestCheckResourceAttr(
"scaleway_vpc_private_network.pn01",
"ipv4_subnet.0.subnet",
"192.168.0.0/24",
),
resource.TestCheckResourceAttrSet(
"scaleway_vpc_private_network.pn01",
"ipv6_subnets.0.subnet",
),
resource.TestCheckTypeSetElemNestedAttrs(
"scaleway_vpc_private_network.pn01", "ipv6_subnets.*", map[string]string{
"subnet": "fd46:78ab:30b8:177c::/64",
}),
resource.TestCheckTypeSetElemNestedAttrs(
"scaleway_vpc_private_network.pn01", "ipv6_subnets.*", map[string]string{
"subnet": "fd46:78ab:30b8:c7df::/64",
}),
resource.TestCheckResourceAttr(
"scaleway_vpc_private_network.pn01",
"ipv4_subnet.#",
"1",
),
resource.TestCheckResourceAttr(
"scaleway_vpc_private_network.pn01",
"ipv6_subnets.#",
"2",
),
),
},
},
})
}

This file was deleted.

0 comments on commit bae2750

Please sign in to comment.