From c8fc8cd7c8a38c0d47b6b4fd8ee2f70f57382bdd Mon Sep 17 00:00:00 2001 From: Shriya Deshmukh Date: Wed, 27 Jul 2022 08:43:11 -0600 Subject: [PATCH] rgw/s3_boto3: Added http status code verification for DeleteBucketTagging case. Updated test_set_bucket_tagging test for verifying the http status code for DeleteBucketTagging case. Related CEPH PR: https://github.com/ceph/ceph/pull/47262 Signed-off-by: Shriya Deshmukh --- s3tests_boto3/functional/test_s3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index a3ecab4..313b51f 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -7759,7 +7759,9 @@ def test_set_bucket_tagging(): eq(response['TagSet'][0]['Key'], 'Hello') 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) status, error_code = _get_status_and_error_code(e.response) eq(status, 404)