Skip to content

Commit 1425917

Browse files
committed
Update test to expect 404
1 parent 16ee7d7 commit 1425917

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

oci/dns_zone_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,10 +299,9 @@ func testAccCheckDnsZoneDestroy(s *terraform.State) error {
299299
if err == nil {
300300
return fmt.Errorf("resource still exists")
301301
}
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"
302+
//Verify that exception is for 404.
304303
// after destruction
305-
if failure, isServiceError := common.IsServiceError(err); !isServiceError || failure.GetHTTPStatusCode() != 400 {
304+
if failure, isServiceError := common.IsServiceError(err); !isServiceError || failure.GetHTTPStatusCode() != 404 {
306305
return err
307306
}
308307
}

0 commit comments

Comments
 (0)