File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,17 +37,17 @@ var testAccProviderApigatewayEdgeDomainNameConfigure sync.Once
3737func testAccPreCheckApigatewayEdgeDomainName (t * testing.T ) {
3838 testAccPartitionHasServicePreCheck (apigateway .EndpointsID , t )
3939
40+ region := testAccGetApigatewayEdgeDomainNameRegion ()
41+
42+ if region == "" {
43+ t .Skip ("API Gateway Domain Name not available in this AWS Partition" )
44+ }
45+
4046 // Since we are outside the scope of the Terraform configuration we must
4147 // call Configure() to properly initialize the provider configuration.
4248 testAccProviderApigatewayEdgeDomainNameConfigure .Do (func () {
4349 testAccProviderApigatewayEdgeDomainName = Provider ()
4450
45- region := testAccGetApigatewayEdgeDomainNameRegion ()
46-
47- if region == "" {
48- t .Skip ("API Gateway Domain Name not available in this AWS Partition" )
49- }
50-
5151 config := map [string ]interface {}{
5252 "region" : region ,
5353 }
Original file line number Diff line number Diff line change @@ -34,17 +34,17 @@ var testAccProviderCognitoUserPoolCustomDomainConfigure sync.Once
3434func testAccPreCheckCognitoUserPoolCustomDomain (t * testing.T ) {
3535 testAccPartitionHasServicePreCheck (cognitoidentityprovider .EndpointsID , t )
3636
37+ region := testAccGetCognitoUserPoolCustomDomainRegion ()
38+
39+ if region == "" {
40+ t .Skip ("Cognito User Pool Custom Domains not available in this AWS Partition" )
41+ }
42+
3743 // Since we are outside the scope of the Terraform configuration we must
3844 // call Configure() to properly initialize the provider configuration.
3945 testAccProviderCognitoUserPoolCustomDomainConfigure .Do (func () {
4046 testAccProviderCognitoUserPoolCustomDomain = Provider ()
4147
42- region := testAccGetCognitoUserPoolCustomDomainRegion ()
43-
44- if region == "" {
45- t .Skip ("Cognito User Pool Custom Domains not available in this AWS Partition" )
46- }
47-
4848 config := map [string ]interface {}{
4949 "region" : region ,
5050 }
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ func init() {
3939func testAccPreCheckLightsailDomain (t * testing.T ) {
4040 testAccPartitionHasServicePreCheck (lightsail .EndpointsID , t )
4141
42+ region := testAccGetLightsailDomainRegion ()
43+
44+ if region == "" {
45+ t .Skip ("Lightsail Domains not available in this AWS Partition" )
46+ }
47+
4248 // Since we are outside the scope of the Terraform configuration we must
4349 // call Configure() to properly initialize the provider configuration.
4450 testAccProviderLightsailDomainConfigure .Do (func () {
45- region := testAccGetLightsailDomainRegion ()
46-
47- if region == "" {
48- t .Skip ("Lightsail Domains not available in this AWS Partition" )
49- }
50-
5151 config := map [string ]interface {}{
5252 "region" : region ,
5353 }
Original file line number Diff line number Diff line change @@ -34,17 +34,17 @@ var testAccProviderRoute53QueryLogConfigure sync.Once
3434func testAccPreCheckRoute53QueryLog (t * testing.T ) {
3535 testAccPartitionHasServicePreCheck (route53 .EndpointsID , t )
3636
37+ region := testAccGetRoute53QueryLogRegion ()
38+
39+ if region == "" {
40+ t .Skip ("Route 53 Query Log not available in this AWS Partition" )
41+ }
42+
3743 // Since we are outside the scope of the Terraform configuration we must
3844 // call Configure() to properly initialize the provider configuration.
3945 testAccProviderRoute53QueryLogConfigure .Do (func () {
4046 testAccProviderRoute53QueryLog = Provider ()
4147
42- region := testAccGetRoute53QueryLogRegion ()
43-
44- if region == "" {
45- t .Skip ("Route 53 Query Log not available in this AWS Partition" )
46- }
47-
4848 config := map [string ]interface {}{
4949 "region" : region ,
5050 }
Original file line number Diff line number Diff line change @@ -34,17 +34,17 @@ var testAccProviderWafLoggingConfigurationConfigure sync.Once
3434func testAccPreCheckWafLoggingConfiguration (t * testing.T ) {
3535 testAccPartitionHasServicePreCheck (waf .EndpointsID , t )
3636
37+ region := testAccGetWafLoggingConfigurationRegion ()
38+
39+ if region == "" {
40+ t .Skip ("WAF Logging Configuration not available in this AWS Partition" )
41+ }
42+
3743 // Since we are outside the scope of the Terraform configuration we must
3844 // call Configure() to properly initialize the provider configuration.
3945 testAccProviderWafLoggingConfigurationConfigure .Do (func () {
4046 testAccProviderWafLoggingConfiguration = Provider ()
4147
42- region := testAccGetWafLoggingConfigurationRegion ()
43-
44- if region == "" {
45- t .Skip ("WAF Logging Configuration not available in this AWS Partition" )
46- }
47-
4848 config := map [string ]interface {}{
4949 "region" : region ,
5050 }
You can’t perform that action at this time.
0 commit comments