2021-09-02 12:17:55 +00:00
|
|
|
*** Settings ***
|
2021-12-09 10:58:51 +00:00
|
|
|
Variables common.py
|
2021-09-02 12:17:55 +00:00
|
|
|
|
2021-12-09 10:58:51 +00:00
|
|
|
Library Collections
|
2022-03-11 16:08:14 +00:00
|
|
|
Library OperatingSystem
|
|
|
|
|
2021-12-09 10:58:51 +00:00
|
|
|
Library neofs.py
|
2022-05-24 13:36:17 +00:00
|
|
|
Library container.py
|
2022-03-11 16:08:14 +00:00
|
|
|
Library s3_gate.py
|
2022-07-04 19:49:14 +00:00
|
|
|
Library epoch.py
|
2022-05-20 11:18:14 +00:00
|
|
|
Library utility_keywords.py
|
2021-12-09 10:58:51 +00:00
|
|
|
|
|
|
|
Resource setup_teardown.robot
|
2021-12-16 06:51:26 +00:00
|
|
|
Resource payment_operations.robot
|
2021-09-02 12:17:55 +00:00
|
|
|
|
|
|
|
*** Variables ***
|
2022-03-11 16:08:14 +00:00
|
|
|
@{INCLUDE_SVC} = s3_gate coredns
|
2021-09-02 12:17:55 +00:00
|
|
|
|
|
|
|
*** Test cases ***
|
|
|
|
Buckets in NeoFS S3 Gateway
|
|
|
|
[Documentation] Execute operations with bucket via S3 Gate
|
|
|
|
[Timeout] 10 min
|
|
|
|
|
2022-03-11 16:08:14 +00:00
|
|
|
[Setup] Setup
|
2022-01-10 11:02:57 +00:00
|
|
|
Make Up ${INCLUDE_SVC}
|
2021-09-02 12:17:55 +00:00
|
|
|
|
2022-06-24 10:36:02 +00:00
|
|
|
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
|
2022-05-20 11:18:14 +00:00
|
|
|
${FILE_S3} ${_} = Generate file ${COMPLEX_OBJ_SIZE}
|
2022-03-11 16:08:14 +00:00
|
|
|
${_} ${S3_OBJECT_KEY} = Split Path ${FILE_S3}
|
2021-09-02 12:17:55 +00:00
|
|
|
|
|
|
|
${CID}
|
|
|
|
... ${BUCKET}
|
|
|
|
... ${ACCESS_KEY_ID}
|
|
|
|
... ${SEC_ACCESS_KEY}
|
|
|
|
... ${OWNER_PRIV_KEY} = Init S3 Credentials ${WALLET}
|
|
|
|
|
2022-05-24 13:36:17 +00:00
|
|
|
@{CONTEINERS_LIST} = List Containers ${WALLET}
|
2021-09-02 12:17:55 +00:00
|
|
|
List Should Contain Value ${CONTEINERS_LIST} ${CID}
|
|
|
|
|
|
|
|
${S3_CLIENT} = Config S3 client ${ACCESS_KEY_ID} ${SEC_ACCESS_KEY}
|
|
|
|
|
|
|
|
${NEW_BUCKET} = Create Bucket S3 ${S3_CLIENT}
|
|
|
|
${NEW_BUCKET_EMPTY} = Create Bucket S3 ${S3_CLIENT}
|
|
|
|
|
2022-03-11 16:08:14 +00:00
|
|
|
Head bucket S3 ${S3_CLIENT} ${BUCKET}
|
|
|
|
Head bucket S3 ${S3_CLIENT} ${NEW_BUCKET}
|
2021-09-02 12:17:55 +00:00
|
|
|
|
|
|
|
Put object S3 ${S3_CLIENT} ${NEW_BUCKET} ${FILE_S3}
|
2022-03-11 16:08:14 +00:00
|
|
|
Head object S3 ${S3_CLIENT} ${NEW_BUCKET} ${S3_OBJECT_KEY}
|
2021-09-02 12:17:55 +00:00
|
|
|
|
|
|
|
${LIST_S3_OBJECTS} = List objects S3 ${S3_CLIENT} ${NEW_BUCKET}
|
2022-03-11 16:08:14 +00:00
|
|
|
List Should Contain Value ${LIST_S3_OBJECTS} ${S3_OBJECT_KEY}
|
|
|
|
|
2021-09-02 12:17:55 +00:00
|
|
|
Run Keyword and Expect Error *
|
|
|
|
... Delete Bucket S3 ${S3_CLIENT} ${NEW_BUCKET}
|
2022-03-11 16:08:14 +00:00
|
|
|
Head bucket S3 ${S3_CLIENT} ${NEW_BUCKET}
|
2021-09-02 12:17:55 +00:00
|
|
|
|
|
|
|
Delete Bucket S3 ${S3_CLIENT} ${NEW_BUCKET_EMPTY}
|
|
|
|
Tick Epoch
|
|
|
|
Run Keyword And Expect Error *
|
2022-03-11 16:08:14 +00:00
|
|
|
... Head bucket S3 ${S3_CLIENT} ${NEW_BUCKET_EMPTY}
|
|
|
|
|
2021-09-02 12:17:55 +00:00
|
|
|
${BUCKET_LIST} = List Buckets S3 ${S3_CLIENT}
|
|
|
|
Tick Epoch
|
|
|
|
List Should Contain Value ${BUCKET_LIST} ${NEW_BUCKET}
|
|
|
|
List Should Not Contain Value ${BUCKET_LIST} ${NEW_BUCKET_EMPTY}
|
|
|
|
|
|
|
|
[Teardown] Teardown s3_gate_bucket
|