2021-04-26 17:48:43 +00:00
|
|
|
*** Settings ***
|
|
|
|
Variables ../../../variables/common.py
|
2021-08-27 09:18:00 +00:00
|
|
|
Variables ../../../variables/acl.py
|
2021-04-26 17:48:43 +00:00
|
|
|
|
2021-08-31 15:16:19 +00:00
|
|
|
*** Variables ***
|
|
|
|
${CONTAINER_WAIT_INTERVAL} = 1 min
|
|
|
|
|
2021-02-08 05:05:17 +00:00
|
|
|
*** Keywords ***
|
|
|
|
|
2021-09-08 17:31:52 +00:00
|
|
|
Create Private Container
|
|
|
|
[Arguments] ${USER_KEY}
|
2021-04-26 17:48:43 +00:00
|
|
|
Log Create Private Container
|
2021-09-03 11:51:57 +00: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 15:16:19 +00:00
|
|
|
... Container Existing ${USER_KEY} ${PRIV_CID_GEN}
|
2021-09-08 17:31:52 +00:00
|
|
|
[Return] ${PRIV_CID_GEN}
|
2021-02-08 05:05:17 +00:00
|
|
|
|
2021-09-08 17:31:52 +00:00
|
|
|
Create Public Container
|
|
|
|
[Arguments] ${USER_KEY}
|
2021-02-08 05:05:17 +00:00
|
|
|
Log Create Public Container
|
2021-09-03 11:51:57 +00: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 15:16:19 +00:00
|
|
|
... Container Existing ${USER_KEY} ${PUBLIC_CID_GEN}
|
2021-09-08 17:31:52 +00:00
|
|
|
[Return] ${PUBLIC_CID_GEN}
|
2021-02-08 05:05:17 +00:00
|
|
|
|
2021-09-08 17:31:52 +00:00
|
|
|
Create Read-Only Container
|
|
|
|
[Arguments] ${USER_KEY}
|
2021-04-26 17:48:43 +00:00
|
|
|
Log Create Read-Only Container
|
2021-09-03 11:51:57 +00: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 15:16:19 +00:00
|
|
|
... Container Existing ${USER_KEY} ${READONLY_CID_GEN}
|
2021-09-08 17:31:52 +00:00
|
|
|
[Return] ${READONLY_CID_GEN}
|
2021-02-08 05:05:17 +00: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 17:31:52 +00:00
|
|
|
[Return] ${FILE_S_GEN} ${FILE_S_HASH_GEN}
|