2021-08-25 15:18:26 +00:00
|
|
|
*** Settings ***
|
2021-12-09 10:58:51 +00:00
|
|
|
Variables common.py
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
Library container.py
|
2021-09-27 20:41:21 +00:00
|
|
|
Library wallet_keywords.py
|
2021-12-16 06:51:26 +00:00
|
|
|
Library contract_keywords.py
|
2022-04-25 09:53:20 +00:00
|
|
|
Library Collections
|
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
|
|
|
|
|
|
|
*** Test Cases ***
|
|
|
|
Delete Containers
|
2022-04-25 09:53:20 +00:00
|
|
|
[Documentation] Testcase to check if containers can be deleted by its owner only.
|
2022-03-15 11:58:59 +00:00
|
|
|
[Tags] Container
|
2022-04-25 09:53:20 +00:00
|
|
|
[Timeout] 2 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
|
|
|
|
2022-03-15 11:58:59 +00:00
|
|
|
${_} ${_} ${USER_KEY} = Prepare Wallet And Deposit
|
|
|
|
${_} ${_} ${OTHER_KEY} = Prepare Wallet And Deposit
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
${CID} = Create container ${USER_KEY}
|
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
|
|
|
|
################################################################
|
2022-04-25 09:53:20 +00:00
|
|
|
Delete Container ${OTHER_KEY} ${CID}
|
2021-12-16 06:51:26 +00:00
|
|
|
Tick Epoch
|
2022-04-25 09:53:20 +00:00
|
|
|
@{CONTAINERS} = List Containers ${USER_KEY}
|
|
|
|
List Should Contain Value
|
|
|
|
... ${CONTAINERS}
|
|
|
|
... ${CID}
|
|
|
|
... msg="A key which doesn't owe the container is able to delete ${CID}"
|
2021-08-25 15:18:26 +00:00
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
Delete Container ${USER_KEY} ${CID}
|
2021-12-16 06:51:26 +00:00
|
|
|
Tick Epoch
|
2022-04-25 09:53:20 +00:00
|
|
|
@{CONTAINERS} = List Containers ${USER_KEY}
|
|
|
|
List Should Not Contain Value
|
|
|
|
... ${CONTAINERS}
|
|
|
|
... ${CID}
|
|
|
|
... msg="${CID} is still in container list"
|
|
|
|
|
|
|
|
###################################################################################
|
|
|
|
# If one tries to delete an already deleted container, they should expect success.
|
|
|
|
###################################################################################
|
|
|
|
Delete Container ${USER_KEY} ${CID}
|
|
|
|
|
|
|
|
[Teardown] Teardown container_delete
|