We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ee7d7 commit 1425917Copy full SHA for 1425917
oci/dns_zone_test.go
@@ -299,10 +299,9 @@ func testAccCheckDnsZoneDestroy(s *terraform.State) error {
299
if err == nil {
300
return fmt.Errorf("resource still exists")
301
}
302
- //Verify that exception is for 400.
303
- // Normally expect 404, but DNS service returns a "InvalidParameter. Bad Request - Invalid domain name. http status code: 400"
+ //Verify that exception is for 404.
304
// after destruction
305
- if failure, isServiceError := common.IsServiceError(err); !isServiceError || failure.GetHTTPStatusCode() != 400 {
+ if failure, isServiceError := common.IsServiceError(err); !isServiceError || failure.GetHTTPStatusCode() != 404 {
306
return err
307
308
0 commit comments