From aa957639ec748b0d820b7aac5e3e70796b5e8b92 Mon Sep 17 00:00:00 2001 From: Yulia Kovshova Date: Wed, 14 Dec 2022 12:39:39 +0300 Subject: [PATCH] Fix policy test s3 Signed-off-by: Yulia Kovshova --- pytest_tests/steps/s3_gate_base.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pytest_tests/steps/s3_gate_base.py b/pytest_tests/steps/s3_gate_base.py index b523632..d7aa9f2 100644 --- a/pytest_tests/steps/s3_gate_base.py +++ b/pytest_tests/steps/s3_gate_base.py @@ -46,13 +46,9 @@ class TestS3GateBase(ClusterTestBase): wallet = default_wallet 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] - ( - cid, - bucket, - access_key_id, - secret_access_key, - owner_private_key, - ) = init_s3_credentials(wallet, cluster, s3_bearer_rules_file=s3_bearer_rules_file) + (cid, bucket, access_key_id, secret_access_key, owner_private_key,) = init_s3_credentials( + wallet, cluster, s3_bearer_rules_file=s3_bearer_rules_file, policy=policy + ) containers_list = list_containers( wallet, shell=client_shell, endpoint=self.cluster.default_rpc_endpoint )