forked from TrueCloudLab/frostfs-testcases
get rid of duplicated "create container" keywords for bearer acl suites
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
This commit is contained in:
parent
c56f79fee0
commit
b75cfebf22
12 changed files with 42 additions and 45 deletions
|
@ -1,22 +1,7 @@
|
||||||
*** Settings ***
|
*** Settings ***
|
||||||
Variables common.py
|
Variables common.py
|
||||||
Variables wellknown_acl.py
|
|
||||||
|
|
||||||
Library container.py
|
|
||||||
|
|
||||||
*** Keywords ***
|
*** Keywords ***
|
||||||
Create Container Public
|
|
||||||
[Arguments] ${USER_KEY}
|
|
||||||
${PUBLIC_CID_GEN} = Create container ${USER_KEY} basic_acl=${PUBLIC_ACL}
|
|
||||||
[Return] ${PUBLIC_CID_GEN}
|
|
||||||
|
|
||||||
|
|
||||||
Create Container Inaccessible
|
|
||||||
[Arguments] ${USER_KEY}
|
|
||||||
${INACCESSIBLE_CID_GEN} = Create container ${USER_KEY} basic_acl=${INACCESSIBLE_ACL}
|
|
||||||
[Return] ${INACCESSIBLE_CID_GEN}
|
|
||||||
|
|
||||||
|
|
||||||
Generate file
|
Generate file
|
||||||
[Arguments] ${SIZE}
|
[Arguments] ${SIZE}
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
Variables common.py
|
Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library acl.py
|
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
|
||||||
Resource eacl_tables.robot
|
Resource eacl_tables.robot
|
||||||
|
@ -45,7 +46,7 @@ BearerToken Operations
|
||||||
Check eACL Deny and Allow All Bearer
|
Check eACL Deny and Allow All Bearer
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
${D_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER_DEL}
|
${D_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER_DEL}
|
||||||
@{S_OBJ_H} = Create List ${S_OID_USER}
|
@{S_OBJ_H} = Create List ${S_OID_USER}
|
||||||
|
|
|
@ -3,6 +3,7 @@ Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
Library acl.py
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ BearerToken Operations
|
||||||
Check eACL Deny and Allow All Bearer
|
Check eACL Deny and Allow All Bearer
|
||||||
[Arguments] ${RUN_TYPE} ${WALLET} ${FILE_S}
|
[Arguments] ${RUN_TYPE} ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
${OID} = Put object ${WALLET} ${FILE_S} ${CID}
|
${OID} = Put object ${WALLET} ${FILE_S} ${CID}
|
||||||
@{OBJECTS} = Create List ${OID}
|
@{OBJECTS} = Create List ${OID}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@ Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
Library acl.py
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
@ -60,7 +61,7 @@ Check Сompound Operations
|
||||||
Check Bearer Сompound Get
|
Check Bearer Сompound Get
|
||||||
[Arguments] ${WALLET} ${DENY_GROUP} ${DENY_EACL} ${FILE_S} ${USER_WALLET} ${WALLET_SYS}
|
[Arguments] ${WALLET} ${DENY_GROUP} ${DENY_EACL} ${FILE_S} ${USER_WALLET} ${WALLET_SYS}
|
||||||
|
|
||||||
${CID} = Create Container Public ${USER_WALLET}
|
${CID} = Create Container ${USER_WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
${S_OID_USER} = Put object ${USER_WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${USER_WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
@{S_OBJ_H} = Create List ${S_OID_USER}
|
@{S_OBJ_H} = Create List ${S_OID_USER}
|
||||||
|
@ -95,7 +96,7 @@ Check Bearer Сompound Get
|
||||||
Check Bearer Сompound Delete
|
Check Bearer Сompound Delete
|
||||||
[Arguments] ${WALLET} ${DENY_GROUP} ${DENY_EACL} ${FILE_S} ${USER_WALLET} ${WALLET_SYS}
|
[Arguments] ${WALLET} ${DENY_GROUP} ${DENY_EACL} ${FILE_S} ${USER_WALLET} ${WALLET_SYS}
|
||||||
|
|
||||||
${CID} = Create Container Public ${USER_WALLET}
|
${CID} = Create Container ${USER_WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
${S_OID_USER} = Put object ${USER_WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${USER_WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
${D_OID_USER} = Put object ${USER_WALLET} ${FILE_S} ${CID}
|
${D_OID_USER} = Put object ${USER_WALLET} ${FILE_S} ${CID}
|
||||||
|
@ -130,7 +131,7 @@ Check Bearer Сompound Delete
|
||||||
Check Bearer Сompound Get Range Hash
|
Check Bearer Сompound Get Range Hash
|
||||||
[Arguments] ${WALLET} ${DENY_GROUP} ${DENY_EACL} ${USER_WALLET} ${FILE_S} ${WALLET_SYS}
|
[Arguments] ${WALLET} ${DENY_GROUP} ${DENY_EACL} ${USER_WALLET} ${FILE_S} ${WALLET_SYS}
|
||||||
|
|
||||||
${CID} = Create Container Public ${USER_WALLET}
|
${CID} = Create Container ${USER_WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
|
|
||||||
${S_OID_USER} = Put object ${USER_WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${USER_WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
Variables common.py
|
Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library acl.py
|
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
|
||||||
Resource eacl_tables.robot
|
Resource eacl_tables.robot
|
||||||
|
@ -45,7 +46,7 @@ BearerToken Operations with Filter OID Equal
|
||||||
Check eACL Deny and Allow All Bearer Filter OID Equal
|
Check eACL Deny and Allow All Bearer Filter OID Equal
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
Variables common.py
|
Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library acl.py
|
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
|
||||||
Resource eacl_tables.robot
|
Resource eacl_tables.robot
|
||||||
|
@ -43,7 +44,7 @@ BearerToken Operations with Filter OID NotEqual
|
||||||
Check eACL Deny and Allow All Bearer Filter OID NotEqual
|
Check eACL Deny and Allow All Bearer Filter OID NotEqual
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
||||||
|
|
|
@ -3,6 +3,7 @@ Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
Library acl.py
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
@ -41,7 +42,7 @@ BearerToken Operations with Filter UserHeader Equal
|
||||||
*** Keywords ***
|
*** Keywords ***
|
||||||
Check eACL Deny and Allow All Bearer Filter UserHeader Equal
|
Check eACL Deny and Allow All Bearer Filter UserHeader Equal
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
Variables common.py
|
Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library acl.py
|
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
|
||||||
Resource common_steps_acl_bearer.robot
|
Resource common_steps_acl_bearer.robot
|
||||||
|
@ -42,7 +43,7 @@ BearerToken Operations Filter UserHeader NotEqual
|
||||||
Check eACL Deny and Allow All Bearer Filter UserHeader NotEqual
|
Check eACL Deny and Allow All Bearer Filter UserHeader NotEqual
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${ANOTHER_HEADER}
|
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${ANOTHER_HEADER}
|
||||||
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
Variables common.py
|
Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library acl.py
|
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
|
||||||
Resource eacl_tables.robot
|
Resource eacl_tables.robot
|
||||||
|
@ -37,7 +38,8 @@ BearerToken Operations for Inaccessible Container
|
||||||
Check Container Inaccessible and Allow All Bearer
|
Check Container Inaccessible and Allow All Bearer
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Inaccessible ${WALLET}
|
# 0x40000000 is inaccessible ACL
|
||||||
|
${CID} = Create Container ${WALLET} basic_acl=0x40000000
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
|
|
||||||
Run Keyword And Expect Error *
|
Run Keyword And Expect Error *
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
Variables common.py
|
Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library acl.py
|
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
|
||||||
Resource eacl_tables.robot
|
Resource eacl_tables.robot
|
||||||
|
@ -44,7 +45,7 @@ BearerToken Operations
|
||||||
Check eACL Allow All Bearer Filter Requst Equal Deny
|
Check eACL Allow All Bearer Filter Requst Equal Deny
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
||||||
|
|
|
@ -3,6 +3,7 @@ Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
Library acl.py
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
@ -44,7 +45,7 @@ BearerToken Operations with Filter Requst Equal
|
||||||
Check eACL Deny and Allow All Bearer Filter Requst Equal
|
Check eACL Deny and Allow All Bearer Filter Requst Equal
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
Prepare eACL Role rules ${CID}
|
Prepare eACL Role rules ${CID}
|
||||||
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
||||||
|
|
|
@ -3,6 +3,7 @@ Variables common.py
|
||||||
|
|
||||||
Library Collections
|
Library Collections
|
||||||
Library acl.py
|
Library acl.py
|
||||||
|
Library container.py
|
||||||
Library neofs.py
|
Library neofs.py
|
||||||
Library neofs_verbs.py
|
Library neofs_verbs.py
|
||||||
Library payment_neogo.py
|
Library payment_neogo.py
|
||||||
|
@ -43,7 +44,7 @@ BearerToken Operations with Filter Requst NotEqual
|
||||||
Check eACL Deny and Allow All Bearer Filter Requst NotEqual
|
Check eACL Deny and Allow All Bearer Filter Requst NotEqual
|
||||||
[Arguments] ${WALLET} ${FILE_S}
|
[Arguments] ${WALLET} ${FILE_S}
|
||||||
|
|
||||||
${CID} = Create Container Public ${WALLET}
|
${CID} = Create Container ${WALLET} basic_acl=eacl-public-read-write
|
||||||
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
${S_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
||||||
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
${S_OID_USER_2} = Put object ${WALLET} ${FILE_S} ${CID}
|
||||||
${D_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER_DEL}
|
${D_OID_USER} = Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER_DEL}
|
||||||
|
@ -73,7 +74,7 @@ Check eACL Deny and Allow All Bearer Filter Requst NotEqual
|
||||||
${EACL_TOKEN} = Form BearerToken File ${WALLET} ${CID} ${eACL_gen}
|
${EACL_TOKEN} = Form BearerToken File ${WALLET} ${CID} ${eACL_gen}
|
||||||
|
|
||||||
Run Keyword And Expect Error *
|
Run Keyword And Expect Error *
|
||||||
... Put object ${WALLET} ${FILE_S} ${CID} user_headers=${USER_HEADER}
|
... Put object ${WALLET} ${FILE_S} ${CID}
|
||||||
Run Keyword And Expect Error *
|
Run Keyword And Expect Error *
|
||||||
... Get object ${WALLET} ${CID} ${S_OID_USER} ${EMPTY} local_file_eacl
|
... Get object ${WALLET} ${CID} ${S_OID_USER} ${EMPTY} local_file_eacl
|
||||||
#Run Keyword And Expect Error *
|
#Run Keyword And Expect Error *
|
||||||
|
|
Loading…
Reference in a new issue