Add non-global Generate File in acl_bearer_*

Signed-off-by: Elizaveta Chichindaeva <elizaveta@nspcc.ru>
This commit is contained in:
Elizaveta Chichindaeva 2022-05-19 17:07:27 +03:00
parent d1595b78ca
commit 265301cf81
12 changed files with 42 additions and 68 deletions

View file

@ -2,12 +2,6 @@
Variables common.py
*** Keywords ***
Generate file
[Arguments] ${SIZE}
${FILE_S_GEN} = Generate file of bytes ${SIZE}
[Return] ${FILE_S_GEN}
Prepare eACL Role rules
[Arguments] ${CID}

View file

@ -1,15 +1,12 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
Resource payment_operations.robot
Resource setup_teardown.robot
@ -29,11 +26,11 @@ BearerToken Operations
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Deny and Allow All Bearer ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Deny and Allow All Bearer ${WALLET} ${FILE_S}

View file

@ -24,10 +24,10 @@ BearerToken Operations
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Simple ${WALLET} ${FILE_S}
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Complex ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_allow_storagegroup

View file

@ -1,12 +1,10 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
@ -20,24 +18,24 @@ ${SYSTEM_KEY} = ${NEOFS_IR_WIF}
*** Test cases ***
BearerToken Operations for Сompound Operations
[Documentation] Testcase to validate NeoFS operations with BearerToken for Сompound Operations.
[Tags] ACL BearerToken
[Timeout] 20 min
[Documentation] Testcase to validate NeoFS operations with BearerToken for Сompound Operations.
[Tags] ACL BearerToken
[Timeout] 20 min
[Setup] Setup
[Setup] Setup
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
${WALLET_OTH} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
Check Сompound Operations ${WALLET} ${WALLET_OTH} ${FILE_S}
Log Check Bearer token with simple object
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check Сompound Operations ${WALLET} ${WALLET_OTH} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
Check Сompound Operations ${WALLET} ${WALLET_OTH} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check Сompound Operations ${WALLET} ${WALLET_OTH} ${FILE_S}
[Teardown] Teardown acl_bearer_compound
[Teardown] Teardown acl_bearer_compound
*** Keywords ***

View file

@ -1,12 +1,11 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
@ -26,15 +25,15 @@ BearerToken Operations with Filter OID Equal
[Setup] Setup
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter OID Equal ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter OID Equal ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_filter_oid_equal

View file

@ -1,12 +1,10 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
@ -28,11 +26,11 @@ BearerToken Operations with Filter OID NotEqual
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter OID NotEqual ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter OID NotEqual ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_filter_oid_not_equal

View file

@ -1,12 +1,10 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
@ -29,12 +27,12 @@ BearerToken Operations with Filter UserHeader Equal
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter UserHeader Equal ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter UserHeader Equal ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_filter_userheader_equal

View file

@ -1,12 +1,10 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource common_steps_acl_bearer.robot
Resource eacl_tables.robot
@ -29,11 +27,11 @@ BearerToken Operations Filter UserHeader NotEqual
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter UserHeader NotEqual ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter UserHeader NotEqual ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_filter_userheader_not_equal

View file

@ -1,12 +1,10 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
@ -24,11 +22,11 @@ BearerToken Operations for Inaccessible Container
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check Container Inaccessible and Allow All Bearer ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check Container Inaccessible and Allow All Bearer ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_inaccessible

View file

@ -1,12 +1,10 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
@ -29,11 +27,11 @@ BearerToken Operations
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Allow All Bearer Filter Requst Equal Deny ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Allow All Bearer Filter Requst Equal Deny ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_request_filter_xheader_deny

View file

@ -1,12 +1,10 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
@ -29,11 +27,11 @@ BearerToken Operations with Filter Requst Equal
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter Requst Equal ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter Requst Equal ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_request_filter_xheader_equal

View file

@ -1,12 +1,10 @@
*** Settings ***
Variables common.py
Library Collections
Library acl.py
Library container.py
Library neofs.py
Library neofs_verbs.py
Library payment_neogo.py
Library utility_keywords.py
Resource eacl_tables.robot
Resource common_steps_acl_bearer.robot
@ -29,11 +27,11 @@ BearerToken Operations with Filter Requst NotEqual
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
Log Check Bearer token with simple object
${FILE_S} = Generate file ${SIMPLE_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter Requst NotEqual ${WALLET} ${FILE_S}
Log Check Bearer token with complex object
${FILE_S} = Generate file ${COMPLEX_OBJ_SIZE}
${FILE_S} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
Check eACL Deny and Allow All Bearer Filter Requst NotEqual ${WALLET} ${FILE_S}
[Teardown] Teardown acl_bearer_request_filter_xheader_not_equal