forked from TrueCloudLab/frostfs-testcases
ea6a01b3de
Signed-off-by: EliChin <elizaveta@nspcc.ru>
30 lines
1.6 KiB
Text
30 lines
1.6 KiB
Text
*** Settings ***
|
|
Variables ../../../variables/common.py
|
|
Variables ../../../variables/acl.py
|
|
|
|
*** Keywords ***
|
|
|
|
Create Containers
|
|
Log Create Private Container
|
|
${PRIV_CID_GEN} = Create container ${USER_KEY} ${PRIVATE_ACL} ${COMMON_PLACEMENT_RULE}
|
|
Container Existing ${USER_KEY} ${PRIV_CID_GEN}
|
|
|
|
Log Create Public Container
|
|
${PUBLIC_CID_GEN} = Create container ${USER_KEY} ${PUBLIC_ACL} ${COMMON_PLACEMENT_RULE}
|
|
Container Existing ${USER_KEY} ${PUBLIC_CID_GEN}
|
|
|
|
Log Create Read-Only Container
|
|
${READONLY_CID_GEN} = Create container ${USER_KEY} ${READONLY_ACL} ${COMMON_PLACEMENT_RULE}
|
|
Container Existing ${USER_KEY} ${READONLY_CID_GEN}
|
|
|
|
Set Global Variable ${PRIV_CID} ${PRIV_CID_GEN}
|
|
Set Global Variable ${PUBLIC_CID} ${PUBLIC_CID_GEN}
|
|
Set Global Variable ${READONLY_CID} ${READONLY_CID_GEN}
|
|
|
|
Generate file
|
|
[Arguments] ${SIZE}
|
|
${FILE_S_GEN} = Generate file of bytes ${SIZE}
|
|
${FILE_S_HASH_GEN} = Get file hash ${FILE_S_GEN}
|
|
|
|
Set Global Variable ${FILE_S} ${FILE_S_GEN}
|
|
Set Global Variable ${FILE_S_HASH} ${FILE_S_HASH_GEN}
|