From 523e7ebac0dc6151a18bd707c7b22aad13755e23 Mon Sep 17 00:00:00 2001
From: Yulia Kovshova <y.kovshova@yadro.com>
Date: Wed, 14 Dec 2022 12:39:39 +0300
Subject: [PATCH] Fix policy test s3

Signed-off-by: Yulia Kovshova <y.kovshova@yadro.com>
---
 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 b523632f..d7aa9f2d 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
         )