Add shell parameter to head_object calls

Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
Vladimir Domnich 2022-10-19 10:26:14 +04:00 committed by Vladimir
parent 3de4d574d3
commit b38403699c
4 changed files with 32 additions and 32 deletions

View file

@ -49,9 +49,7 @@ def put_storagegroup(
@allure.step("List Storagegroup")
def list_storagegroup(
wallet: str, cid: str, bearer: str = "", wallet_config: str = WALLET_CONFIG
):
def list_storagegroup(wallet: str, cid: str, bearer: str = "", wallet_config: str = WALLET_CONFIG):
"""
Wrapper for `neofs-cli storagegroup list`. This operation
requires SEARCH allowed for `wallet` in `cid`.
@ -160,9 +158,7 @@ def verify_list_storage_group(
bearer: str = None,
wallet_config: str = WALLET_CONFIG,
):
storage_groups = list_storagegroup(
wallet, cid, bearer=bearer, wallet_config=wallet_config
)
storage_groups = list_storagegroup(wallet, cid, bearer=bearer, wallet_config=wallet_config)
assert storagegroup in storage_groups
@ -187,6 +183,7 @@ def verify_get_storage_group(
wallet,
cid,
link_oid,
shell=shell,
is_raw=True,
bearer=bearer,
wallet_config=wallet_config,

View file

@ -11,8 +11,8 @@ def verify_head_tombstone(wallet_path: str, cid: str, oid_ts: str, oid: str, she
header = head_object(wallet_path, cid, oid_ts, shell=shell)["header"]
assert header["containerID"] == cid, "Tombstone Header CID is wrong"
with open(wallet_path, "r") as fout:
wlt_data = json.loads(fout.read())
with open(wallet_path, "r") as file:
wlt_data = json.loads(file.read())
wlt = wallet.Wallet.from_json(wlt_data, password="")
addr = wlt.accounts[0].address