From 29623f871b70965116ab9936652e568aa3c84c1b Mon Sep 17 00:00:00 2001 From: stevehorsfield Date: Mon, 6 Jun 2016 12:01:21 +0200 Subject: [PATCH] Split TestAccAWSSecurityGroup_DefaultEgress into VPC/Classic This test function tests both VPC and Classic EC2 modes, but not all accounts have support for both. Splitting them makes it easier to understand why a test fails when an account only supports the VPC mode. --- builtin/providers/aws/resource_aws_security_group_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_security_group_test.go b/builtin/providers/aws/resource_aws_security_group_test.go index f38e6f5550..8c4e205c66 100644 --- a/builtin/providers/aws/resource_aws_security_group_test.go +++ b/builtin/providers/aws/resource_aws_security_group_test.go @@ -504,7 +504,7 @@ func TestAccAWSSecurityGroup_generatedName(t *testing.T) { }) } -func TestAccAWSSecurityGroup_DefaultEgress(t *testing.T) { +func TestAccAWSSecurityGroup_DefaultEgress_VPC(t *testing.T) { // VPC resource.Test(t, resource.TestCase{ @@ -521,6 +521,9 @@ func TestAccAWSSecurityGroup_DefaultEgress(t *testing.T) { }, }, }) +} + +func TestAccAWSSecurityGroup_DefaultEgress_Classic(t *testing.T) { // Classic var group ec2.SecurityGroup