]> git.apps.os.sepia.ceph.com Git - s3-tests.git/commitdiff
test_s3: remove test_user_policy() 486/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 26 Jan 2023 16:23:03 +0000 (11:23 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 26 Jan 2023 16:23:05 +0000 (11:23 -0500)
this has been failing consistently in local testing. test_sts.py has
lots of user policy test coverage, so this test case in test_s3.py is
superfluous

Fixes: https://tracker.ceph.com/issues/58365
Signed-off-by: Casey Bodley <cbodley@redhat.com>
s3tests_boto3/functional/test_s3.py

index 5b77e2fad4872d0dce0cf19196f4c77382983765..e309c486aa576b0fcee3c6cf9924d9cd4ac8fa5b 100644 (file)
@@ -12028,23 +12028,6 @@ def test_object_read_unreadable():
     assert status == 400
     assert e.response['Error']['Message'] == 'Couldn\'t parse the specified URI.'
 
-def test_user_policy():
-    client = get_tenant_iam_client()
-
-    policy_document = json.dumps(
-    {"Version":"2012-10-17",
-     "Statement": {
-         "Effect":"Allow",
-         "Action":"*",
-         "Resource":"*"}}
-    )
-    client.put_user_policy(
-        PolicyDocument= policy_document,
-        PolicyName='AllAccessPolicy',
-        UserName=get_tenant_user_id(),
-    )
-
-
 def test_get_bucket_policy_status():
     bucket_name = get_new_bucket()
     client = get_client()