Skip to content

Commit

Permalink
provider/aws: fix ELB SG test
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed Jan 25, 2016
1 parent 0b11ace commit e865c34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/providers/aws/resource_aws_elb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
),
Expand Down

0 comments on commit e865c34

Please sign in to comment.