provider/aws: fix ELB SG test

This commit is contained in:
clint shryock 2016-01-25 11:05:22 -06:00
parent 0b11ace9ac
commit e865c342cc
1 changed files with 3 additions and 1 deletions

View File

@ -495,14 +495,16 @@ func TestAccAWSELB_SecurityGroups(t *testing.T) {
resource.TestStep{
Config: testAccAWSELBConfig,
Check: resource.ComposeTestCheckFunc(
// ELBs get a default security group
resource.TestCheckResourceAttr(
"aws_elb.bar", "security_groups.#", "0",
"aws_elb.bar", "security_groups.#", "1",
),
),
},
resource.TestStep{
Config: testAccAWSELBConfigSecurityGroups,
Check: resource.ComposeTestCheckFunc(
// Count should still be one as we swap in a custom security group
resource.TestCheckResourceAttr(
"aws_elb.bar", "security_groups.#", "1",
),