2021-02-11 21:34:44 +00:00
|
|
|
*** Settings ***
|
|
|
|
Variables ../../../variables/common.py
|
|
|
|
Library Collections
|
|
|
|
Library ../${RESOURCES}/neofs.py
|
|
|
|
Library ../${RESOURCES}/payment_neogo.py
|
|
|
|
Resource common_steps_object.robot
|
|
|
|
|
|
|
|
|
|
|
|
*** Test cases ***
|
2021-02-16 11:56:52 +00:00
|
|
|
NeoFS Complex Storagegroup
|
2021-02-11 21:34:44 +00:00
|
|
|
[Documentation] Testcase to validate NeoFS operations with Storagegroup.
|
|
|
|
[Tags] Object NeoFS NeoCLI
|
|
|
|
[Timeout] 20 min
|
|
|
|
|
2021-04-06 14:18:48 +00:00
|
|
|
Payment operations
|
|
|
|
Create container
|
2021-02-11 21:34:44 +00:00
|
|
|
|
2021-04-06 14:18:48 +00:00
|
|
|
${FILE_S} = Generate file of bytes ${COMPLEX_OBJ_SIZE}
|
|
|
|
${FILE_HASH_S} = Get file hash ${FILE_S}
|
2021-02-11 21:34:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Put two Simple Object
|
|
|
|
${S_OID_1} = Put object ${PRIV_KEY} ${FILE_S} ${CID} ${EMPTY} ${EMPTY}
|
|
|
|
${S_OID_2} = Put object ${PRIV_KEY} ${FILE_S} ${CID} ${EMPTY} ${FILE_USR_HEADER}
|
|
|
|
|
|
|
|
@{S_OBJ_ALL} = Create List ${S_OID_1} ${S_OID_2}
|
|
|
|
|
|
|
|
Log Storage group with 1 object
|
2021-02-16 11:56:52 +00:00
|
|
|
${SG_OID_1} = Put Storagegroup ${PRIV_KEY} ${CID} ${EMPTY} ${S_OID_1}
|
2021-04-02 14:29:41 +00:00
|
|
|
List Storagegroup ${PRIV_KEY} ${CID} ${EMPTY} ${SG_OID_1}
|
2021-02-11 21:34:44 +00:00
|
|
|
@{SPLIT_OBJ_1} = Get Split objects ${PRIV_KEY} ${CID} ${S_OID_1}
|
2021-04-02 14:29:41 +00:00
|
|
|
Get Storagegroup ${PRIV_KEY} ${CID} ${SG_OID_1} ${EMPTY} ${COMPLEX_OBJ_SIZE} @{SPLIT_OBJ_1}
|
|
|
|
${Tombstone} = Delete Storagegroup ${PRIV_KEY} ${CID} ${SG_OID_1} ${EMPTY}
|
2021-02-11 21:34:44 +00:00
|
|
|
Verify Head tombstone ${PRIV_KEY} ${CID} ${Tombstone} ${SG_OID_1} ${ADDR}
|
|
|
|
Run Keyword And Expect Error *
|
2021-04-02 14:29:41 +00:00
|
|
|
... Get Storagegroup ${PRIV_KEY} ${CID} ${SG_OID_1} ${EMPTY} ${COMPLEX_OBJ_SIZE} @{SPLIT_OBJ_1}
|
|
|
|
List Storagegroup ${PRIV_KEY} ${CID} ${EMPTY} @{EMPTY}
|
2021-02-11 21:34:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
Log Storage group with 2 objects
|
2021-02-16 11:56:52 +00:00
|
|
|
${SG_OID_2} = Put Storagegroup ${PRIV_KEY} ${CID} ${EMPTY} @{S_OBJ_ALL}
|
2021-04-02 14:29:41 +00:00
|
|
|
List Storagegroup ${PRIV_KEY} ${CID} ${EMPTY} ${SG_OID_2}
|
2021-02-11 21:34:44 +00:00
|
|
|
@{SPLIT_OBJ_2} = Get Split objects ${PRIV_KEY} ${CID} ${S_OID_2}
|
|
|
|
@{SPLIT_OBJ_ALL} = Combine Lists ${SPLIT_OBJ_1} ${SPLIT_OBJ_2}
|
2021-04-02 14:29:41 +00:00
|
|
|
${EXPECTED_SIZE} = Evaluate 2*${COMPLEX_OBJ_SIZE}
|
|
|
|
Get Storagegroup ${PRIV_KEY} ${CID} ${SG_OID_2} ${EMPTY} ${EXPECTED_SIZE} @{SPLIT_OBJ_ALL}
|
|
|
|
${Tombstone} = Delete Storagegroup ${PRIV_KEY} ${CID} ${SG_OID_2} ${EMPTY}
|
2021-02-11 21:34:44 +00:00
|
|
|
Verify Head tombstone ${PRIV_KEY} ${CID} ${Tombstone} ${SG_OID_2} ${ADDR}
|
|
|
|
Run Keyword And Expect Error *
|
2021-04-02 14:29:41 +00:00
|
|
|
... Get Storagegroup ${PRIV_KEY} ${CID} ${SG_OID_2} ${EMPTY} ${EXPECTED_SIZE} @{SPLIT_OBJ_ALL}
|
|
|
|
List Storagegroup ${PRIV_KEY} ${CID} ${EMPTY} @{EMPTY}
|
2021-02-11 21:34:44 +00:00
|
|
|
|
|
|
|
Log Incorrect input
|
|
|
|
|
|
|
|
Run Keyword And Expect Error *
|
2021-02-16 11:56:52 +00:00
|
|
|
... Put Storagegroup ${PRIV_KEY} ${CID} ${EMPTY} ${UNEXIST_OID}
|
2021-02-11 21:34:44 +00:00
|
|
|
Run Keyword And Expect Error *
|
2021-04-02 14:29:41 +00:00
|
|
|
... Delete Storagegroup ${PRIV_KEY} ${CID} ${UNEXIST_OID} ${EMPTY}
|
2021-02-11 21:34:44 +00:00
|
|
|
|
2021-03-29 10:18:24 +00:00
|
|
|
[Teardown] Cleanup
|
2021-02-11 21:34:44 +00:00
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
|
2021-03-29 10:18:24 +00:00
|
|
|
Cleanup
|
|
|
|
Cleanup Files
|
2021-02-11 21:34:44 +00:00
|
|
|
Get Docker Logs object_storage_group_complex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|