Skip to content

Commit

Permalink
hardcode field vals
Browse files Browse the repository at this point in the history
  • Loading branch information
emilymye committed Jan 17, 2020
1 parent 300fb07 commit 3aa7bfb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions third_party/terraform/tests/resource_storage_bucket_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,7 @@ func TestAccStorageBucket_website(t *testing.T) {
t.Parallel()

bucketSuffix := acctest.RandomWithPrefix("tf-website-test")
errMsg := fmt.Sprintf("one of `(?:%[1]s,%[2]s)|(?:%[2]s,%[1]s)`must be specified",
"website.0.main_page_suffix", "website.0.not_found_page")
errRe := regexp.MustCompile("one of `(?:website.0.main_page_suffix,website.0.not_found_page)|(?:website.0.not_found_page,website.0.main_page_suffix)`must be specified")

resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand All @@ -839,7 +838,7 @@ func TestAccStorageBucket_website(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccStorageBucket_websiteNoAttributes(bucketSuffix),
ExpectError: regexp.MustCompile(errMsg),
ExpectError: errRe,
},
{
Config: testAccStorageBucket_websiteOneAttribute(bucketSuffix),
Expand Down

0 comments on commit 3aa7bfb

Please sign in to comment.