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 contract_keywords.py
|
|
|
|
Library neofs.py
|
2022-03-15 11:58:59 +00:00
|
|
|
Library neofs_verbs.py
|
2021-12-09 10:58:51 +00:00
|
|
|
Library payment_neogo.py
|
2022-04-25 09:53:20 +00:00
|
|
|
|
2022-03-15 11:58:59 +00:00
|
|
|
Library String
|
|
|
|
Library Process
|
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-02-01 13:42:41 +00:00
|
|
|
${_} ${NODE} ${WIF_STORAGE} = Get control endpoint with wif
|
|
|
|
${WALLET_STORAGE} ${_} = Prepare Wallet with WIF And Deposit ${WIF_STORAGE}
|
2021-10-04 16:16:49 +00:00
|
|
|
${LOCODE} = Get Locode
|
|
|
|
|
|
|
|
${FILE_SIMPLE} = Generate file of bytes ${SIMPLE_OBJ_SIZE}
|
|
|
|
${FILE_COMPLEX} = Generate file of bytes ${COMPLEX_OBJ_SIZE}
|
|
|
|
|
2022-02-01 13:42:41 +00:00
|
|
|
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
|
2021-10-04 16:16:49 +00:00
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
${PRIV_CID} = Create container ${WALLET} basic_acl=${PRIVATE_ACL_F}
|
|
|
|
... 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-02-01 13:42:41 +00:00
|
|
|
Drop object ${NODE} ${WALLET_STORAGE} ${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-02-01 13:42:41 +00:00
|
|
|
Drop object ${NODE} ${WALLET_STORAGE} ${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-02-01 13:42:41 +00:00
|
|
|
Drop object ${NODE} ${WALLET_STORAGE} ${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-02-01 13:42:41 +00:00
|
|
|
Drop object ${NODE} ${WALLET_STORAGE} ${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
|