mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
provider/aws: fix ELB SG test
This commit is contained in:
parent
0b11ace9ac
commit
e865c342cc
@ -495,14 +495,16 @@ func TestAccAWSELB_SecurityGroups(t *testing.T) {
|
|||||||
resource.TestStep{
|
resource.TestStep{
|
||||||
Config: testAccAWSELBConfig,
|
Config: testAccAWSELBConfig,
|
||||||
Check: resource.ComposeTestCheckFunc(
|
Check: resource.ComposeTestCheckFunc(
|
||||||
|
// ELBs get a default security group
|
||||||
resource.TestCheckResourceAttr(
|
resource.TestCheckResourceAttr(
|
||||||
"aws_elb.bar", "security_groups.#", "0",
|
"aws_elb.bar", "security_groups.#", "1",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
resource.TestStep{
|
resource.TestStep{
|
||||||
Config: testAccAWSELBConfigSecurityGroups,
|
Config: testAccAWSELBConfigSecurityGroups,
|
||||||
Check: resource.ComposeTestCheckFunc(
|
Check: resource.ComposeTestCheckFunc(
|
||||||
|
// Count should still be one as we swap in a custom security group
|
||||||
resource.TestCheckResourceAttr(
|
resource.TestCheckResourceAttr(
|
||||||
"aws_elb.bar", "security_groups.#", "1",
|
"aws_elb.bar", "security_groups.#", "1",
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user