2020-07-14 00:05:22 +00:00
|
|
|
*** Settings ***
|
2021-02-08 05:05:17 +00:00
|
|
|
Variables ../../../variables/common.py
|
2020-07-14 00:05:22 +00:00
|
|
|
|
2021-02-08 05:05:17 +00:00
|
|
|
Library ../${RESOURCES}/neofs.py
|
|
|
|
Library ../${RESOURCES}/payment_neogo.py
|
2021-04-26 10:30:40 +00:00
|
|
|
Library ../${RESOURCES}/utility_keywords.py
|
2021-02-10 18:53:26 +00:00
|
|
|
Resource common_steps_object.robot
|
2021-04-26 10:30:40 +00:00
|
|
|
|
2020-07-14 00:05:22 +00:00
|
|
|
|
|
|
|
*** Test cases ***
|
|
|
|
NeoFS Simple Object Operations
|
|
|
|
[Documentation] Testcase to validate NeoFS operations with simple object.
|
|
|
|
[Tags] Object NeoFS NeoCLI
|
2021-04-06 14:18:48 +00:00
|
|
|
[Timeout] 10 min
|
2020-07-14 00:05:22 +00:00
|
|
|
|
2021-04-26 10:30:40 +00:00
|
|
|
[Setup] Create Temporary Directory
|
|
|
|
|
2021-04-06 14:18:48 +00:00
|
|
|
Payment operations
|
|
|
|
Prepare container
|
2020-11-27 00:33:11 +00:00
|
|
|
|
2021-04-02 14:29:41 +00:00
|
|
|
${FILE} = Generate file of bytes ${SIMPLE_OBJ_SIZE}
|
2020-07-14 00:05:22 +00:00
|
|
|
${FILE_HASH} = Get file hash ${FILE}
|
2020-11-27 00:33:11 +00:00
|
|
|
|
|
|
|
|
2021-04-26 10:30:40 +00:00
|
|
|
${S_OID} = Put object ${PRIV_KEY} ${FILE} ${CID} ${EMPTY} ${EMPTY}
|
|
|
|
${H_OID} = Put object ${PRIV_KEY} ${FILE} ${CID} ${EMPTY} ${FILE_USR_HEADER}
|
2021-02-10 18:53:26 +00:00
|
|
|
${H_OID_OTH} = Put object ${PRIV_KEY} ${FILE} ${CID} ${EMPTY} ${FILE_USR_HEADER_OTH}
|
2020-07-14 00:05:22 +00:00
|
|
|
|
2021-04-26 10:30:40 +00:00
|
|
|
Validate storage policy for object ${PRIV_KEY} 2 ${CID} ${S_OID}
|
|
|
|
Validate storage policy for object ${PRIV_KEY} 2 ${CID} ${H_OID}
|
|
|
|
Validate storage policy for object ${PRIV_KEY} 2 ${CID} ${H_OID_OTH}
|
2020-11-27 00:33:11 +00:00
|
|
|
|
|
|
|
@{S_OBJ_ALL} = Create List ${S_OID} ${H_OID} ${H_OID_OTH}
|
2020-07-14 00:05:22 +00:00
|
|
|
@{S_OBJ_H} = Create List ${H_OID}
|
2020-11-27 00:33:11 +00:00
|
|
|
@{S_OBJ_H_OTH} = Create List ${H_OID_OTH}
|
2020-07-14 00:05:22 +00:00
|
|
|
|
2021-03-29 10:18:24 +00:00
|
|
|
${GET_OBJ_S} = Get object ${PRIV_KEY} ${CID} ${S_OID} ${EMPTY} s_file_read
|
|
|
|
${GET_OBJ_H} = Get object ${PRIV_KEY} ${CID} ${H_OID} ${EMPTY} h_file_read
|
2021-04-26 10:30:40 +00:00
|
|
|
|
|
|
|
Verify file hash ${GET_OBJ_S} ${FILE_HASH}
|
|
|
|
Verify file hash ${GET_OBJ_H} ${FILE_HASH}
|
2020-11-27 00:33:11 +00:00
|
|
|
|
|
|
|
Get Range Hash ${PRIV_KEY} ${CID} ${S_OID} ${EMPTY} 0:10
|
|
|
|
Get Range Hash ${PRIV_KEY} ${CID} ${H_OID} ${EMPTY} 0:10
|
|
|
|
|
|
|
|
Get Range ${PRIV_KEY} ${CID} ${S_OID} s_get_range ${EMPTY} 0:10
|
|
|
|
Get Range ${PRIV_KEY} ${CID} ${H_OID} h_get_range ${EMPTY} 0:10
|
|
|
|
|
2021-04-26 10:30:40 +00:00
|
|
|
Search object ${PRIV_KEY} ${CID} ${EMPTY} ${EMPTY} ${EMPTY} ${S_OBJ_ALL}
|
|
|
|
Search object ${PRIV_KEY} ${CID} ${EMPTY} ${EMPTY} ${FILE_USR_HEADER} ${S_OBJ_H}
|
|
|
|
Search object ${PRIV_KEY} ${CID} ${EMPTY} ${EMPTY} ${FILE_USR_HEADER_OTH} ${S_OBJ_H_OTH}
|
|
|
|
|
|
|
|
Head object ${PRIV_KEY} ${CID} ${S_OID} ${EMPTY}
|
2020-11-28 03:16:10 +00:00
|
|
|
Head object ${PRIV_KEY} ${CID} ${H_OID} ${EMPTY} ${FILE_USR_HEADER}
|
2021-04-26 10:30:40 +00:00
|
|
|
|
2020-12-23 22:38:16 +00:00
|
|
|
${TOMBSTONE_S} = Delete object ${PRIV_KEY} ${CID} ${S_OID} ${EMPTY}
|
|
|
|
${TOMBSTONE_H} = Delete object ${PRIV_KEY} ${CID} ${H_OID} ${EMPTY}
|
2021-04-26 10:30:40 +00:00
|
|
|
|
2020-12-23 22:38:16 +00:00
|
|
|
Verify Head tombstone ${PRIV_KEY} ${CID} ${TOMBSTONE_S} ${S_OID} ${ADDR}
|
|
|
|
Verify Head tombstone ${PRIV_KEY} ${CID} ${TOMBSTONE_H} ${H_OID} ${ADDR}
|
2020-11-27 00:33:11 +00:00
|
|
|
|
|
|
|
Sleep 2min
|
2021-04-26 10:30:40 +00:00
|
|
|
|
|
|
|
Run Keyword And Expect Error *
|
2021-03-29 10:18:24 +00:00
|
|
|
... Get object ${PRIV_KEY} ${CID} ${S_OID} ${EMPTY} ${GET_OBJ_S}
|
2020-11-27 00:33:11 +00:00
|
|
|
|
2021-04-26 10:30:40 +00:00
|
|
|
Run Keyword And Expect Error *
|
2021-03-29 10:18:24 +00:00
|
|
|
... Get object ${PRIV_KEY} ${CID} ${H_OID} ${EMPTY} ${GET_OBJ_H}
|
2021-04-26 10:30:40 +00:00
|
|
|
|
|
|
|
[Teardown] Cleanup
|
2020-07-14 00:05:22 +00:00
|
|
|
|
2020-12-02 23:08:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
|
|
|
|
Cleanup
|
2021-04-26 10:30:40 +00:00
|
|
|
Cleanup Files
|
2020-12-29 19:55:33 +00:00
|
|
|
Get Docker Logs object_simple
|
2021-04-26 10:30:40 +00:00
|
|
|
|
2020-11-27 00:33:11 +00:00
|
|
|
|
|
|
|
|
2020-12-02 23:08:05 +00:00
|
|
|
|
|
|
|
|