2021-08-25 15:18:26 +00:00
|
|
|
*** Settings ***
|
2021-12-09 10:58:51 +00:00
|
|
|
Variables common.py
|
|
|
|
Variables wellknown_acl.py
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-09-27 20:41:21 +00:00
|
|
|
Library neofs.py
|
|
|
|
Library payment_neogo.py
|
|
|
|
Library wallet_keywords.py
|
2021-12-16 06:51:26 +00:00
|
|
|
Library contract_keywords.py
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-09-27 20:41:21 +00:00
|
|
|
Resource setup_teardown.robot
|
|
|
|
Resource payment_operations.robot
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-08-31 15:16:19 +00:00
|
|
|
*** Variables ***
|
|
|
|
${CONTAINER_WAIT_INTERVAL} = 1 min
|
|
|
|
|
2021-08-25 15:18:26 +00:00
|
|
|
*** Test Cases ***
|
|
|
|
Delete Containers
|
2021-12-16 06:51:26 +00:00
|
|
|
[Documentation] Testcase to check if containers can be deleted.
|
|
|
|
[Tags] Container NeoFS NeoCLI
|
|
|
|
[Timeout] 10 min
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-12-16 06:51:26 +00:00
|
|
|
[Setup] Setup
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-12-16 06:51:26 +00:00
|
|
|
${WALLET} ${ADDR} ${USER_KEY} = Prepare Wallet And Deposit
|
|
|
|
${WALLET_OTH} ${ADDR_OTH} ${OTHER_KEY} = Prepare Wallet And Deposit
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-12-16 06:51:26 +00:00
|
|
|
${CID} = Create container ${USER_KEY} ${PRIVATE_ACL_F} ${COMMON_PLACEMENT_RULE}
|
|
|
|
Wait Until Keyword Succeeds ${MORPH_BLOCK_TIME} ${CONTAINER_WAIT_INTERVAL}
|
|
|
|
... Container Existing ${USER_KEY} ${CID}
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-12-16 06:51:26 +00:00
|
|
|
################################################################
|
|
|
|
# No explicit error is expected upon container deletion attempt
|
|
|
|
################################################################
|
|
|
|
Delete Container ${CID} ${OTHER_KEY}
|
|
|
|
Tick Epoch
|
|
|
|
Get container attributes ${USER_KEY} ${CID}
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-12-16 06:51:26 +00:00
|
|
|
Delete Container ${CID} ${USER_KEY}
|
|
|
|
Tick Epoch
|
|
|
|
Run Keyword And Expect Error *
|
|
|
|
... Get container attributes ${USER_KEY} ${CID}
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-12-16 06:51:26 +00:00
|
|
|
Log If one tries to delete an already deleted container, they should expect success.
|
|
|
|
Delete Container ${CID} ${USER_KEY}
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-08-31 15:16:19 +00:00
|
|
|
[Teardown] Teardown container_delete
|