Merge pull request #464 from shriya-deshmukh/delete-bucket-tagging-test-case

rgw/s3_boto3: Added http status code verification for DeleteBucketTagging case.
This commit is contained in:
Ali Maredia 2022-07-29 13:35:56 -04:00 committed by GitHub
commit 8063cd68c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7759,7 +7759,9 @@ def test_set_bucket_tagging():
eq(response['TagSet'][0]['Key'], 'Hello') eq(response['TagSet'][0]['Key'], 'Hello')
eq(response['TagSet'][0]['Value'], 'World') eq(response['TagSet'][0]['Value'], 'World')
client.delete_bucket_tagging(Bucket=bucket_name) response = client.delete_bucket_tagging(Bucket=bucket_name)
eq(response['ResponseMetadata']['HTTPStatusCode'], 204)
e = assert_raises(ClientError, client.get_bucket_tagging, Bucket=bucket_name) e = assert_raises(ClientError, client.get_bucket_tagging, Bucket=bucket_name)
status, error_code = _get_status_and_error_code(e.response) status, error_code = _get_status_and_error_code(e.response)
eq(status, 404) eq(status, 404)