From af9c726624970093b0287d786fb67a33730ff9af Mon Sep 17 00:00:00 2001 From: anikeev-yadro Date: Thu, 3 Nov 2022 09:41:29 +0300 Subject: [PATCH] Fix storage group tests Signed-off-by: anikeev-yadro --- .../acl/storage_group/test_storagegroup.py | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pytest_tests/testsuites/acl/storage_group/test_storagegroup.py b/pytest_tests/testsuites/acl/storage_group/test_storagegroup.py index dc275b1..83c3869 100644 --- a/pytest_tests/testsuites/acl/storage_group/test_storagegroup.py +++ b/pytest_tests/testsuites/acl/storage_group/test_storagegroup.py @@ -1,6 +1,6 @@ +import logging import os import uuid -import logging from typing import Optional import allure @@ -79,10 +79,8 @@ class TestStorageGroup: oid = put_object(self.main_wallet, file_path, cid, shell=client_shell) objects = [oid] storage_group = put_storagegroup( - shell=client_shell, - wallet=self.main_wallet, - cid=cid, - objects=objects) + shell=client_shell, wallet=self.main_wallet, cid=cid, objects=objects + ) self.expect_success_for_storagegroup_operations( shell=client_shell, @@ -326,10 +324,21 @@ class TestStorageGroup: ) storage_group = put_storagegroup(shell, wallet, cid, obj_list) with pytest.raises(Exception, match=OBJECT_ACCESS_DENIED): - put_storagegroup(shell, IR_WALLET_PATH, cid, obj_list, wallet_config=IR_WALLET_CONFIG) + put_storagegroup( + shell=shell, + wallet=IR_WALLET_PATH, + cid=cid, + objects=obj_list, + wallet_config=IR_WALLET_CONFIG, + ) verify_list_storage_group( - IR_WALLET_PATH, cid, storage_group, wallet_config=IR_WALLET_CONFIG + shell=shell, + wallet=IR_WALLET_PATH, + cid=cid, + gid=storage_group, + wallet_config=IR_WALLET_CONFIG, ) + verify_get_storage_group( shell=shell, wallet=IR_WALLET_PATH,