2021-10-04 16:16:49 +00:00
|
|
|
*** Settings ***
|
2021-12-09 10:58:51 +00:00
|
|
|
Variables common.py
|
|
|
|
Variables wellknown_acl.py
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
Library container.py
|
2021-12-09 10:58:51 +00:00
|
|
|
Library neofs.py
|
2022-03-15 11:58:59 +00:00
|
|
|
Library neofs_verbs.py
|
2022-05-20 11:18:14 +00:00
|
|
|
Library utility_keywords.py
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2021-12-09 10:58:51 +00:00
|
|
|
Resource setup_teardown.robot
|
|
|
|
Resource payment_operations.robot
|
|
|
|
Resource storage.robot
|
2022-04-07 18:48:03 +00:00
|
|
|
Resource complex_object_operations.robot
|
2021-10-04 16:16:49 +00:00
|
|
|
|
|
|
|
*** Test Cases ***
|
|
|
|
Drop command in control group
|
|
|
|
[Documentation] Testcase to check drop-objects command from control group.
|
|
|
|
[Timeout] 10 min
|
|
|
|
|
|
|
|
[Setup] Setup
|
|
|
|
|
2022-06-24 12:19:25 +00:00
|
|
|
${_} ${NODE} ${STORAGE_WALLET}= Get control endpoint and wallet
|
2021-10-04 16:16:49 +00:00
|
|
|
${LOCODE} = Get Locode
|
|
|
|
|
2022-05-20 11:18:14 +00:00
|
|
|
${FILE_SIMPLE} ${_} = Generate file ${SIMPLE_OBJ_SIZE}
|
|
|
|
${FILE_COMPLEX} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-02-01 13:42:41 +00:00
|
|
|
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-05-20 11:18:14 +00:00
|
|
|
${PRIV_CID} = Create Container ${WALLET}
|
2022-04-25 09:53:20 +00:00
|
|
|
... rule=REP 1 CBF 1 SELECT 1 FROM * FILTER 'UN-LOCODE' EQ '${LOCODE}' AS LOC
|
2021-10-04 16:16:49 +00:00
|
|
|
|
|
|
|
#########################
|
|
|
|
# Dropping simple object
|
|
|
|
#########################
|
|
|
|
|
2022-02-01 13:42:41 +00:00
|
|
|
${S_OID} = Put object ${WALLET} ${FILE_SIMPLE} ${PRIV_CID}
|
|
|
|
Get object ${WALLET} ${PRIV_CID} ${S_OID} ${EMPTY} s_file_read
|
|
|
|
Head object ${WALLET} ${PRIV_CID} ${S_OID}
|
2022-03-15 11:58:59 +00:00
|
|
|
|
2022-06-24 12:19:25 +00:00
|
|
|
Drop object ${NODE} ${STORAGE_WALLET} ${PRIV_CID} ${S_OID}
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-03-15 11:58:59 +00:00
|
|
|
Wait Until Keyword Succeeds 3x ${SHARD_0_GC_SLEEP}
|
2021-10-04 16:16:49 +00:00
|
|
|
... Run Keyword And Expect Error Error:*
|
2022-02-01 13:42:41 +00:00
|
|
|
... Get object ${WALLET} ${PRIV_CID} ${S_OID} ${EMPTY} s_file_read options=--ttl 1
|
2022-03-15 11:58:59 +00:00
|
|
|
Wait Until Keyword Succeeds 3x ${SHARD_0_GC_SLEEP}
|
2021-12-16 06:51:26 +00:00
|
|
|
... Run Keyword And Expect Error Error:*
|
2022-02-01 13:42:41 +00:00
|
|
|
... Head object ${WALLET} ${PRIV_CID} ${S_OID} options=--ttl 1
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-06-24 12:19:25 +00:00
|
|
|
Drop object ${NODE} ${STORAGE_WALLET} ${PRIV_CID} ${S_OID}
|
2021-10-04 16:16:49 +00:00
|
|
|
|
|
|
|
##########################
|
|
|
|
# Dropping complex object
|
|
|
|
##########################
|
|
|
|
|
2022-02-01 13:42:41 +00:00
|
|
|
${C_OID} = Put object ${WALLET} ${FILE_COMPLEX} ${PRIV_CID}
|
|
|
|
Get object ${WALLET} ${PRIV_CID} ${C_OID} ${EMPTY} s_file_read
|
|
|
|
Head object ${WALLET} ${PRIV_CID} ${C_OID}
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-06-24 12:19:25 +00:00
|
|
|
Drop object ${NODE} ${STORAGE_WALLET} ${PRIV_CID} ${C_OID}
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-02-01 13:42:41 +00:00
|
|
|
Get object ${WALLET} ${PRIV_CID} ${C_OID} ${EMPTY} s_file_read
|
|
|
|
Head object ${WALLET} ${PRIV_CID} ${C_OID}
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-02-01 13:42:41 +00:00
|
|
|
@{SPLIT_OIDS} = Get Object Parts By Link Object ${WALLET} ${PRIV_CID} ${C_OID}
|
2021-10-04 16:16:49 +00:00
|
|
|
FOR ${CHILD_OID} IN @{SPLIT_OIDS}
|
2022-06-24 12:19:25 +00:00
|
|
|
Drop object ${NODE} ${STORAGE_WALLET} ${PRIV_CID} ${CHILD_OID}
|
2022-03-15 11:58:59 +00:00
|
|
|
|
2021-10-04 16:16:49 +00:00
|
|
|
END
|
|
|
|
|
2022-03-15 11:58:59 +00:00
|
|
|
Wait Until Keyword Succeeds 3x ${SHARD_0_GC_SLEEP}
|
2021-10-04 16:16:49 +00:00
|
|
|
... Run Keyword And Expect Error Error:*
|
2022-02-01 13:42:41 +00:00
|
|
|
... Get object ${WALLET} ${PRIV_CID} ${C_OID} ${EMPTY} s_file_read options=--ttl 1
|
2022-03-15 11:58:59 +00:00
|
|
|
Wait Until Keyword Succeeds 3x ${SHARD_0_GC_SLEEP}
|
2021-12-16 06:51:26 +00:00
|
|
|
... Run Keyword And Expect Error Error:*
|
2022-02-01 13:42:41 +00:00
|
|
|
... Head object ${WALLET} ${PRIV_CID} ${C_OID} options=--ttl 1
|
2021-10-04 16:16:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
[Teardown] Teardown netmap_control_drop
|