Fix storage group tests

Signed-off-by: anikeev-yadro <a.anikeev@yadro.com>
This commit is contained in:
anikeev-yadro 2022-11-03 09:41:29 +03:00 committed by anikeev-yadro
parent 39b34f60a6
commit af9c726624

View file

@ -1,6 +1,6 @@
import logging
import os import os
import uuid import uuid
import logging
from typing import Optional from typing import Optional
import allure import allure
@ -79,10 +79,8 @@ class TestStorageGroup:
oid = put_object(self.main_wallet, file_path, cid, shell=client_shell) oid = put_object(self.main_wallet, file_path, cid, shell=client_shell)
objects = [oid] objects = [oid]
storage_group = put_storagegroup( storage_group = put_storagegroup(
shell=client_shell, shell=client_shell, wallet=self.main_wallet, cid=cid, objects=objects
wallet=self.main_wallet, )
cid=cid,
objects=objects)
self.expect_success_for_storagegroup_operations( self.expect_success_for_storagegroup_operations(
shell=client_shell, shell=client_shell,
@ -326,10 +324,21 @@ class TestStorageGroup:
) )
storage_group = put_storagegroup(shell, wallet, cid, obj_list) storage_group = put_storagegroup(shell, wallet, cid, obj_list)
with pytest.raises(Exception, match=OBJECT_ACCESS_DENIED): 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( 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( verify_get_storage_group(
shell=shell, shell=shell,
wallet=IR_WALLET_PATH, wallet=IR_WALLET_PATH,