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
|
|
|
|
Library neofs.py
|
|
|
|
Library payment_neogo.py
|
|
|
|
Library gates.py
|
|
|
|
Library wallet_keywords.py
|
|
|
|
Library contract_keywords.py
|
2021-12-16 06:51:26 +00:00
|
|
|
Library Process
|
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 ***
|
2021-12-16 06:51:26 +00:00
|
|
|
${DEPOSIT} = ${30}
|
|
|
|
${WIF} = ${MAINNET_WALLET_WIF}
|
2021-09-02 12:17:55 +00:00
|
|
|
${DEPOSIT_TIMEOUT}= 30s
|
2022-01-10 11:02:57 +00:00
|
|
|
@{INCLUDE_SVC} = s3_gate
|
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-01-10 11:02:57 +00:00
|
|
|
[Setup] Setup
|
|
|
|
Make Up ${INCLUDE_SVC}
|
2021-09-02 12:17:55 +00:00
|
|
|
|
2021-12-16 06:51:26 +00:00
|
|
|
${WALLET} ${ADDR} ${WIF} = Prepare Wallet And Deposit
|
2021-09-02 12:17:55 +00:00
|
|
|
${FILE_S3} = Generate file of bytes ${COMPLEX_OBJ_SIZE}
|
|
|
|
${FILE_S3_NAME} = Get file name ${FILE_S3}
|
|
|
|
|
|
|
|
${CID}
|
|
|
|
... ${BUCKET}
|
|
|
|
... ${ACCESS_KEY_ID}
|
|
|
|
... ${SEC_ACCESS_KEY}
|
|
|
|
... ${OWNER_PRIV_KEY} = Init S3 Credentials ${WALLET}
|
|
|
|
|
|
|
|
${CONTEINERS_LIST} = Container List ${WIF}
|
|
|
|
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}
|
|
|
|
|
|
|
|
HeadBucket S3 ${BUCKET} ${S3_CLIENT}
|
|
|
|
HeadBucket S3 ${NEW_BUCKET} ${S3_CLIENT}
|
|
|
|
|
|
|
|
Put object S3 ${S3_CLIENT} ${NEW_BUCKET} ${FILE_S3}
|
|
|
|
Head object S3 ${S3_CLIENT} ${NEW_BUCKET} ${FILE_S3_NAME}
|
|
|
|
|
|
|
|
${LIST_S3_OBJECTS} = List objects S3 ${S3_CLIENT} ${NEW_BUCKET}
|
|
|
|
List Should Contain Value ${LIST_S3_OBJECTS} ${FILE_S3_NAME}
|
|
|
|
|
|
|
|
Run Keyword and Expect Error *
|
|
|
|
... Delete Bucket S3 ${S3_CLIENT} ${NEW_BUCKET}
|
|
|
|
HeadBucket S3 ${NEW_BUCKET} ${S3_CLIENT}
|
|
|
|
|
|
|
|
Delete Bucket S3 ${S3_CLIENT} ${NEW_BUCKET_EMPTY}
|
|
|
|
Tick Epoch
|
|
|
|
Run Keyword And Expect Error *
|
|
|
|
... HeadBucket S3 ${NEW_BUCKET_EMPTY} ${S3_CLIENT}
|
|
|
|
|
|
|
|
${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
|