From 42edac2aa7535937910064a99f2c0ac2ad082e52 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 26 Jan 2023 11:23:03 -0500 Subject: [PATCH] test_s3: remove test_user_policy() 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 (cherry picked from commit 18a41ab63fe8a071738da7145d4bbebb2ee94255) Conflicts: s3tests_boto3/functional/test_s3.py pytest changes --- s3tests_boto3/functional/test_s3.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/s3tests_boto3/functional/test_s3.py b/s3tests_boto3/functional/test_s3.py index d63fef9..37efca1 100644 --- a/s3tests_boto3/functional/test_s3.py +++ b/s3tests_boto3/functional/test_s3.py @@ -14170,28 +14170,6 @@ def test_object_read_unreadable(): eq(status, 400) eq(e.response['Error']['Message'], 'Couldn\'t parse the specified URI.') -@attr(resource='bucket') -@attr(method='get') -@attr(operation='Test User Policy') -@attr(assertion='succeeds') -@attr('user-policy') -@attr('fails_on_dbstore') -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(), - ) - @attr(resource='bucket') @attr(method='get')