2021-04-26 20:48:43 +03:00
|
|
|
*** Settings ***
|
|
|
|
Variables ../../../variables/common.py
|
2021-08-27 12:18:00 +03:00
|
|
|
Variables ../../../variables/acl.py
|
2021-04-26 20:48:43 +03:00
|
|
|
|
2021-08-31 18:16:19 +03:00
|
|
|
*** Variables ***
|
|
|
|
${CONTAINER_WAIT_INTERVAL} = 1 min
|
|
|
|
|
2021-02-08 08:05:17 +03:00
|
|
|
*** Keywords ***
|
|
|
|
|
2021-09-08 20:31:52 +03:00
|
|
|
Create Private Container
|
|
|
|
[Arguments] ${USER_KEY}
|
2021-04-26 20:48:43 +03:00
|
|
|
Log Create Private Container
|
2021-09-03 14:51:57 +03:00
|
|
|
${PRIV_CID_GEN} = Create container ${USER_KEY} ${PRIVATE_ACL} ${COMMON_PLACEMENT_RULE}
|
|
|
|
Wait Until Keyword Succeeds ${MORPH_BLOCK_TIME} ${CONTAINER_WAIT_INTERVAL}
|
2021-08-31 18:16:19 +03:00
|
|
|
... Container Existing ${USER_KEY} ${PRIV_CID_GEN}
|
2021-09-08 20:31:52 +03:00
|
|
|
[Return] ${PRIV_CID_GEN}
|
2021-02-08 08:05:17 +03:00
|
|
|
|
2021-09-08 20:31:52 +03:00
|
|
|
Create Public Container
|
|
|
|
[Arguments] ${USER_KEY}
|
2021-02-08 08:05:17 +03:00
|
|
|
Log Create Public Container
|
2021-09-03 14:51:57 +03:00
|
|
|
${PUBLIC_CID_GEN} = Create container ${USER_KEY} ${PUBLIC_ACL} ${COMMON_PLACEMENT_RULE}
|
|
|
|
Wait Until Keyword Succeeds ${MORPH_BLOCK_TIME} ${CONTAINER_WAIT_INTERVAL}
|
2021-08-31 18:16:19 +03:00
|
|
|
... Container Existing ${USER_KEY} ${PUBLIC_CID_GEN}
|
2021-09-08 20:31:52 +03:00
|
|
|
[Return] ${PUBLIC_CID_GEN}
|
2021-02-08 08:05:17 +03:00
|
|
|
|
2021-09-08 20:31:52 +03:00
|
|
|
Create Read-Only Container
|
|
|
|
[Arguments] ${USER_KEY}
|
2021-04-26 20:48:43 +03:00
|
|
|
Log Create Read-Only Container
|
2021-09-03 14:51:57 +03:00
|
|
|
${READONLY_CID_GEN} = Create container ${USER_KEY} ${READONLY_ACL} ${COMMON_PLACEMENT_RULE}
|
|
|
|
Wait Until Keyword Succeeds ${MORPH_BLOCK_TIME} ${CONTAINER_WAIT_INTERVAL}
|
2021-08-31 18:16:19 +03:00
|
|
|
... Container Existing ${USER_KEY} ${READONLY_CID_GEN}
|
2021-09-08 20:31:52 +03:00
|
|
|
[Return] ${READONLY_CID_GEN}
|
2021-02-08 08:05:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
Generate file
|
|
|
|
[Arguments] ${SIZE}
|
|
|
|
${FILE_S_GEN} = Generate file of bytes ${SIZE}
|
|
|
|
${FILE_S_HASH_GEN} = Get file hash ${FILE_S_GEN}
|
2021-09-08 20:31:52 +03:00
|
|
|
[Return] ${FILE_S_GEN} ${FILE_S_HASH_GEN}
|