forked from TrueCloudLab/frostfs-testcases
Refactor container tests
Use wellknown ACL constants. Remove 0x prefix from ACL, because neofs CLI changed formatting. Remove redundant comments. Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
parent
186091640f
commit
f9ba463d2e
5 changed files with 38 additions and 35 deletions
|
@ -68,7 +68,6 @@ def _encode_cid_for_eacl(cid: str) -> str:
|
|||
@keyword('Create eACL')
|
||||
def create_eacl(cid: str, rules_list: list) -> str:
|
||||
table_file_path = f"{os.getcwd()}/{ASSETS_DIR}/eacl_table_{str(uuid.uuid4())}.json"
|
||||
# TODO: check if $Object: is still necessary for filtering in the newest releases
|
||||
rules = " ".join(f"--rule '{rule}'" for rule in rules_list)
|
||||
|
||||
cmd = f"{NEOFS_CLI_EXEC} acl extended create --cid {cid} {rules} --out {table_file_path}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue