Fix policy test s3

Signed-off-by: Yulia Kovshova <y.kovshova@yadro.com>
This commit is contained in:
Юлия Ковшова 2022-12-14 12:39:39 +03:00 committed by Julia Kovshova
parent 4003d0115c
commit aa957639ec

View file

@ -46,13 +46,9 @@ class TestS3GateBase(ClusterTestBase):
wallet = default_wallet wallet = default_wallet
s3_bearer_rules_file = f"{os.getcwd()}/robot/resources/files/s3_bearer_rules.json" s3_bearer_rules_file = f"{os.getcwd()}/robot/resources/files/s3_bearer_rules.json"
policy = None if isinstance(request.param, str) else request.param[1] policy = None if isinstance(request.param, str) else request.param[1]
( (cid, bucket, access_key_id, secret_access_key, owner_private_key,) = init_s3_credentials(
cid, wallet, cluster, s3_bearer_rules_file=s3_bearer_rules_file, policy=policy
bucket, )
access_key_id,
secret_access_key,
owner_private_key,
) = init_s3_credentials(wallet, cluster, s3_bearer_rules_file=s3_bearer_rules_file)
containers_list = list_containers( containers_list = list_containers(
wallet, shell=client_shell, endpoint=self.cluster.default_rpc_endpoint wallet, shell=client_shell, endpoint=self.cluster.default_rpc_endpoint
) )