Skip to content

Commit

Permalink
Merge pull request #15872 from terraform-providers/t-gov-waf
Browse files Browse the repository at this point in the history
tests/provider: Add precheck (WAF data sources)
  • Loading branch information
YakDriver authored Oct 28, 2020
2 parents acfcd1a + 62397e5 commit 9571296
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aws/data_source_aws_waf_ipset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestAccDataSourceAwsWafIPSet_basic(t *testing.T) {
datasourceName := "data.aws_waf_ipset.ipset"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() { testAccPreCheck(t); testAccPartitionHasServicePreCheck("waf", t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Expand Down
4 changes: 2 additions & 2 deletions aws/data_source_aws_waf_rate_based_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package aws

import (
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"regexp"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

Expand All @@ -15,7 +15,7 @@ func TestAccDataSourceAwsWafRateBasedRule_basic(t *testing.T) {
datasourceName := "data.aws_waf_rate_based_rule.wafrule"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() { testAccPreCheck(t); testAccPartitionHasServicePreCheck("waf", t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Expand Down
4 changes: 2 additions & 2 deletions aws/data_source_aws_waf_rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package aws

import (
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"regexp"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

Expand All @@ -15,7 +15,7 @@ func TestAccDataSourceAwsWafRule_basic(t *testing.T) {
datasourceName := "data.aws_waf_rule.wafrule"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() { testAccPreCheck(t); testAccPartitionHasServicePreCheck("waf", t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Expand Down
4 changes: 2 additions & 2 deletions aws/data_source_aws_waf_web_acl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package aws

import (
"fmt"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"regexp"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

Expand All @@ -15,7 +15,7 @@ func TestAccDataSourceAwsWafWebAcl_basic(t *testing.T) {
datasourceName := "data.aws_waf_web_acl.web_acl"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
PreCheck: func() { testAccPreCheck(t); testAccPartitionHasServicePreCheck("waf", t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Expand Down

0 comments on commit 9571296

Please sign in to comment.