rgw:modify testcase rgw header when bucket quota or user is disabled

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
This commit is contained in:
Raja Sharma 2024-11-20 22:58:18 +05:30
parent d245097771
commit 2aea98e604

View file

@ -1107,11 +1107,7 @@ def test_head_bucket_usage():
hdrs = http_response['headers'] hdrs = http_response['headers']
assert hdrs['X-RGW-Object-Count'] == '1' assert hdrs['X-RGW-Object-Count'] == '1'
assert hdrs['X-RGW-Bytes-Used'] == '3' 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-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_aws
@pytest.mark.fails_on_dbstore @pytest.mark.fails_on_dbstore