Skip to content

Commit

Permalink
Add ExpectError
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson committed Feb 9, 2021
1 parent 1011cba commit c88b1c1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package google

import (
"regexp"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
Expand Down Expand Up @@ -33,14 +34,15 @@ func TestAccCloudRunDomainMapping_foregroundDeletion(t *testing.T) {
ImportStateVerifyIgnore: []string{"name", "location", "status", "metadata.0.resource_version"},
},
{
Config: testAccCloudRunDomainMapping_cloudRunDomainMappingUpdated2(context),
Config: testAccCloudRunDomainMapping_cloudRunDomainMappingUpdated2(context),
ExpectError: regexp.MustCompile("Domain mapping already exists"), // when this error is no longer returned, remove ExpectError and add the ISV below.
},
{
/*{
ResourceName: "google_cloud_run_domain_mapping.default",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"name", "location", "status", "metadata.0.resource_version"},
},
},*/
},
})
}
Expand Down

0 comments on commit c88b1c1

Please sign in to comment.