Skip to content

Commit

Permalink
tests/r/route53rcc: Switch to serial tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YakDriver committed Aug 24, 2021
1 parent de71e32 commit b387ebb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions aws/resource_aws_route53recoverycontrolconfig_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package aws

import (
"testing"
)

func TestAccAWSRoute53RecoveryControlConfig_serial(t *testing.T) {
testCases := map[string]map[string]func(t *testing.T){
"Cluster": {
// if more than 2, increase "Meridian clusters" quota or switch these to non-parallel tests
"basic": testAccAWSRoute53RecoveryControlConfigCluster_basic,
"disappears": testAccAWSRoute53RecoveryControlConfigCluster_disappears,
},
"ControlPanel": {
// if more than 2, increase "Meridian clusters" quota or switch these to non-parallel tests
"basic": testAccAWSRoute53RecoveryControlConfigControlPanel_basic,
"disappears": testAccAWSRoute53RecoveryControlConfigControlPanel_disappears,
},
"RoutingControl": {
"basic": testAccAWSRoute53RecoveryControlConfigRoutingControl_basic,
"disappears": testAccAWSRoute53RecoveryControlConfigRoutingControl_disappears,
"nonDefaultControlPane": testAccAWSRoute53RecoveryControlConfigRoutingControl_nonDefaultControlPanel,
},
"SafetyRule": {
"assertionRule": testAccAWSRoute53RecoveryControlConfigSafetyRule_assertionRule,
"gatingRule": testAccAWSRoute53RecoveryControlConfigSafetyRule_gatingRule,
"disappears": testAccAWSRoute53RecoveryControlConfigSafetyRule_disappears,
},
}

for group, m := range testCases {
m := m
t.Run(group, func(t *testing.T) {
for name, tc := range m {
tc := tc
t.Run(name, func(t *testing.T) {
tc(t)
})
}
})
}
}

0 comments on commit b387ebb

Please sign in to comment.