From 2aea98e6044d71c2fbe4aacbb57fd902d3e66a64 Mon Sep 17 00:00:00 2001 From: Raja Sharma Date: Wed, 20 Nov 2024 22:58:18 +0530 Subject: [PATCH] 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 --- s3tests_boto3/functional/test_s3.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index 85dfba1..e7081b3 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -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