]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
rgw:modify testcase rgw header when bucket quota or user is disabled 603/head
authorRaja Sharma <raja@ibm.com>
Wed, 20 Nov 2024 17:28:18 +0000 (22:58 +0530)
committerRaja Sharma <raja@ibm.com>
Wed, 20 Nov 2024 17:39:21 +0000 (23:09 +0530)
By default quota is disable at user/bucket level.
if quota is disable then these value will not return so need to modify test_head_bucket_usages

'X-RGW-Quota-User-Size'
'X-RGW-Quota-User-Objects'
'X-RGW-Quota-Bucket-Size'
'X-RGW-Quota-Bucket-Objects'
to Fix: https://tracker.ceph.com/issues/68211

Signed-off-by: Raja Sharma raja@ibm.com
s3tests_boto3/functional/test_s3.py

index 85dfba16dea688a3c1a976592f775934dcc64090..e7081b3e0da4862729a646d3aaf8cfc6d936c350 100644 (file)
@@ -1107,11 +1107,7 @@ def test_head_bucket_usage():
     hdrs = http_response['headers']
     assert hdrs['X-RGW-Object-Count'] == '1'
     assert hdrs['X-RGW-Bytes-Used'] == '3'
-    assert hdrs['X-RGW-Quota-User-Size'] == '-1'
-    assert hdrs['X-RGW-Quota-User-Objects'] == '-1'
     assert hdrs['X-RGW-Quota-Max-Buckets'] == '1000'
-    assert hdrs['X-RGW-Quota-Bucket-Size'] == '-1'
-    assert hdrs['X-RGW-Quota-Bucket-Objects'] == '-1'
 
 @pytest.mark.fails_on_aws
 @pytest.mark.fails_on_dbstore