From: Casey Bodley Date: Tue, 27 Jan 2026 17:33:40 +0000 (-0500) Subject: qa/radosgw_admin: remove acl test cases X-Git-Tag: testing/wip-vshankar-testing-20260304.135307~55^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=070945ff432aa4d97bbc474bee82af338e0c778b;p=ceph-ci.git qa/radosgw_admin: remove acl test cases they were comparing the output of 'radosgw-admin policy' with the xml output of boto2's get_acl() function, but boto3 doesn't expose the xml response 'radosgw-admin policy' is just dumping the same output as our s3 GetObjectAcl api, so test coverage from s3-tests is sufficient for this Signed-off-by: Casey Bodley --- diff --git a/qa/tasks/radosgw_admin.py b/qa/tasks/radosgw_admin.py index a53d2d4c26a..e2adc7a7a28 100644 --- a/qa/tasks/radosgw_admin.py +++ b/qa/tasks/radosgw_admin.py @@ -896,41 +896,6 @@ def task(ctx, config): bucket.delete() rl.log_and_clear("delete_bucket", bucket_name, user1) - # TESTCASE 'policy', 'bucket', 'policy', 'get bucket policy', 'returns S3 policy' - bucket = connection.create_bucket(bucket_name) - rl.log_and_clear("create_bucket", bucket_name, user1) - - # create an object - key = boto.s3.key.Key(bucket) - key.set_contents_from_string('seven') - rl.log_and_clear("put_obj", bucket_name, user1) - - # should be private already but guarantee it - key.set_acl('private') - rl.log_and_clear("put_acls", bucket_name, user1) - - (err, out) = rgwadmin(ctx, client, - ['policy', '--bucket', bucket.name, '--object', key.key.decode()], - check_status=True, format='xml') - - acl = get_acl(key) - rl.log_and_clear("get_acls", bucket_name, user1) - - assert acl == out.strip('\n') - - # add another grantee by making the object public read - key.set_acl('public-read') - rl.log_and_clear("put_acls", bucket_name, user1) - - (err, out) = rgwadmin(ctx, client, - ['policy', '--bucket', bucket.name, '--object', key.key.decode()], - check_status=True, format='xml') - - acl = get_acl(key) - rl.log_and_clear("get_acls", bucket_name, user1) - - assert acl == out.strip('\n') - # TESTCASE 'rm-bucket', 'bucket', 'rm', 'bucket with objects', 'succeeds' bucket = connection.create_bucket(bucket_name) rl.log_and_clear("create_bucket", bucket_name, user1)