HOTFIX: FREE_STORAGE condition

FREE_STORAGE may be false or true and it affects GAS transfer.

Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
This commit is contained in:
Elizaveta Chichindaeva 2022-09-06 13:23:53 +03:00
parent 926a7a5779
commit 38a177107e
2 changed files with 22 additions and 12 deletions

View file

@ -17,7 +17,11 @@ from common import (
from complex_object_actions import get_link_object
from neofs_verbs import head_object
import allure
logger = logging.getLogger("NeoLogger")
@allure.step('Put Storagegroup')
def put_storagegroup(
wallet: str,
cid: str,
@ -51,6 +55,7 @@ def put_storagegroup(
return oid
@allure.step('List Storagegroup')
def list_storagegroup(
wallet: str, cid: str, bearer_token: str = "", wallet_config: str = WALLET_CONFIG
):
@ -77,6 +82,7 @@ def list_storagegroup(
return found_objects
@allure.step('Get Storagegroup')
def get_storagegroup(
wallet: str,
cid: str,
@ -122,6 +128,7 @@ def get_storagegroup(
return sg_dict
@allure.step('Delete Storagegroup')
def delete_storagegroup(
wallet: str,
cid: str,
@ -152,6 +159,7 @@ def delete_storagegroup(
return tombstone_id
@allure.step('Verify list operation over Storagegroup')
def verify_list_storage_group(
wallet: str,
cid: str,
@ -162,12 +170,10 @@ def verify_list_storage_group(
storage_groups = list_storagegroup(
wallet, cid, bearer_token=bearer, wallet_config=wallet_config
)
try:
storagegroup in storage_groups
except:
logging.error("Storage Group hasn't been persisted")
assert storagegroup in storage_groups
@allure.step('Verify get operation over Storagegroup')
def verify_get_storage_group(
wallet: str,
cid: str,