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-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
|
|
|
|
[Documentation] Testcase to check if containers can be deleted.
|
|
|
|
[Tags] Container NeoFS NeoCLI
|
|
|
|
[Timeout] 10 min
|
|
|
|
|
|
|
|
[Setup] Setup
|
|
|
|
|
|
|
|
${WALLET} ${ADDR} ${USER_KEY} = Init Wallet with Address ${ASSETS_DIR}
|
|
|
|
Payment Operations ${ADDR} ${USER_KEY}
|
|
|
|
${WALLET_OTH} ${ADDR_OTH} ${OTHER_KEY} = Init Wallet with Address ${ASSETS_DIR}
|
|
|
|
Payment Operations ${ADDR_OTH} ${OTHER_KEY}
|
|
|
|
|
2021-08-31 15:16:19 +00:00
|
|
|
${CID} = Create container ${USER_KEY} ${PUBLIC_ACL} ${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
|
|
|
|
|
|
|
Run Keyword And Expect Error *
|
2021-08-31 15:16:19 +00:00
|
|
|
... Delete Container ${CID} ${OTHER_KEY}
|
2021-08-25 15:18:26 +00:00
|
|
|
|
|
|
|
Delete Container ${CID} ${USER_KEY}
|
|
|
|
|
|
|
|
${EXPECTED_ERROR} = Run Keyword And Expect Error *
|
|
|
|
... Delete Container ${CID} ${USER_KEY}
|
2021-08-31 15:16:19 +00:00
|
|
|
Log Container cannot be deleted: ${EXPECTED_ERROR}
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2021-08-31 15:16:19 +00:00
|
|
|
[Teardown] Teardown container_delete
|