mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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.
This commit is contained in:
parent
1a4bf5cc89
commit
29623f871b
@ -504,7 +504,7 @@ func TestAccAWSSecurityGroup_generatedName(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAccAWSSecurityGroup_DefaultEgress(t *testing.T) {
|
func TestAccAWSSecurityGroup_DefaultEgress_VPC(t *testing.T) {
|
||||||
|
|
||||||
// VPC
|
// VPC
|
||||||
resource.Test(t, resource.TestCase{
|
resource.Test(t, resource.TestCase{
|
||||||
@ -521,6 +521,9 @@ func TestAccAWSSecurityGroup_DefaultEgress(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestAccAWSSecurityGroup_DefaultEgress_Classic(t *testing.T) {
|
||||||
|
|
||||||
// Classic
|
// Classic
|
||||||
var group ec2.SecurityGroup
|
var group ec2.SecurityGroup
|
||||||
|
Loading…
Reference in New Issue
Block a user