From e865c342cc1f8f3bfbd0a58dab84b240d4ad1cf8 Mon Sep 17 00:00:00 2001 From: clint shryock Date: Mon, 25 Jan 2016 11:05:22 -0600 Subject: [PATCH] provider/aws: fix ELB SG test --- builtin/providers/aws/resource_aws_elb_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_elb_test.go b/builtin/providers/aws/resource_aws_elb_test.go index f2d27c515c..2b246dd9ea 100644 --- a/builtin/providers/aws/resource_aws_elb_test.go +++ b/builtin/providers/aws/resource_aws_elb_test.go @@ -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", ),