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}"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# ACLs with set F flag
|
||||
PUBLIC_ACL_F = "0x1FBFBFFF"
|
||||
PRIVATE_ACL_F = "0x1C8C8CCC"
|
||||
READONLY_ACL_F = "0x1FBF8CFF"
|
||||
# ACLs with final flag
|
||||
PUBLIC_ACL_F = "1FBFBFFF"
|
||||
PRIVATE_ACL_F = "1C8C8CCC"
|
||||
READONLY_ACL_F = "1FBF8CFF"
|
||||
|
||||
# ACLs without F flag set
|
||||
PUBLIC_ACL = "0x0FBFBFFF"
|
||||
INACCESSIBLE_ACL = "0x40000000"
|
||||
STICKYBIT_PUB_ACL = "0x3FFFFFFF"
|
||||
# ACLs without final flag set
|
||||
PUBLIC_ACL = "0FBFBFFF"
|
||||
INACCESSIBLE_ACL = "40000000"
|
||||
STICKYBIT_PUB_ACL = "3FFFFFFF"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue