7a21456201
proccessed as JSON Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
63 lines
2.5 KiB
Text
63 lines
2.5 KiB
Text
*** Settings ***
|
|
Variables common.py
|
|
|
|
Library Collections
|
|
Library neofs.py
|
|
Library neofs_verbs.py
|
|
Library acl.py
|
|
Library payment_neogo.py
|
|
|
|
Library contract_keywords.py
|
|
|
|
Resource eacl_tables.robot
|
|
Resource common_steps_acl_bearer.robot
|
|
Resource payment_operations.robot
|
|
Resource setup_teardown.robot
|
|
Resource storage.robot
|
|
|
|
*** Variables ***
|
|
${FULL_PLACEMENT_RULE} = REP 4 IN X CBF 1 SELECT 4 FROM * AS X
|
|
${EXPECTED_COPIES} = ${4}
|
|
|
|
|
|
*** Test cases ***
|
|
eACL Deny Replication Operations
|
|
[Documentation] Testcase to validate NeoFS replication with eACL deny rules.
|
|
[Tags] ACL NeoFS_CLI Replication
|
|
[Timeout] 20 min
|
|
|
|
[Setup] Setup
|
|
|
|
${NODE_NUM} ${NODE} ${WIF_STORAGE} = Get control endpoint with wif
|
|
${WALLET} ${ADDR} ${WIF_USER} = Prepare Wallet And Deposit
|
|
|
|
Log Check Replication with eACL deny - object should be replicated
|
|
# https://github.com/nspcc-dev/neofs-node/issues/881
|
|
|
|
${FILE} = Generate file of bytes ${SIMPLE_OBJ_SIZE}
|
|
|
|
${CID} = Create container ${WIF_USER} ${PUBLIC_ACL} ${FULL_PLACEMENT_RULE}
|
|
Wait Until Keyword Succeeds ${MORPH_BLOCK_TIME} ${CONTAINER_WAIT_INTERVAL}
|
|
... Container Existing ${WIF_USER} ${CID}
|
|
|
|
Prepare eACL Role rules ${CID}
|
|
|
|
${OID} = Put object ${WIF_USER} ${FILE} ${CID}
|
|
|
|
Validate storage policy for object ${WIF_USER} ${EXPECTED_COPIES} ${CID} ${OID}
|
|
|
|
Set eACL ${WIF_USER} ${CID} ${EACL_DENY_ALL_USER}
|
|
|
|
Run Keyword And Expect Error *
|
|
... Put object ${WIF_USER} ${FILE} ${CID}
|
|
|
|
# Drop object to check replication
|
|
Drop object ${NODE} ${WIF_STORAGE} ${CID} ${OID}
|
|
|
|
Tick Epoch
|
|
|
|
# We assume that during one epoch object should be replicated
|
|
Wait Until Keyword Succeeds ${NEOFS_EPOCH_TIMEOUT} 1m
|
|
... Validate storage policy for object ${WIF_STORAGE} ${EXPECTED_COPIES} ${CID} ${OID}
|
|
|
|
[Teardown] Teardown acl_deny_replication
|