8d50305982
Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
33 lines
1.6 KiB
Text
33 lines
1.6 KiB
Text
*** Settings ***
|
|
Variables ../../../variables/common.py
|
|
|
|
*** Variables ***
|
|
${RULE_FOR_ALL} = REP 2 IN X CBF 1 SELECT 4 FROM * AS X
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
Create Containers
|
|
Log Create Private Container
|
|
${PRIV_CID_GEN} = Create container ${USER_KEY} 0x18888888 ${RULE_FOR_ALL}
|
|
Container Existing ${USER_KEY} ${PRIV_CID_GEN}
|
|
|
|
Log Create Public Container
|
|
${PUBLIC_CID_GEN} = Create container ${USER_KEY} 0x1FFFFFFF ${RULE_FOR_ALL}
|
|
Container Existing ${USER_KEY} ${PUBLIC_CID_GEN}
|
|
|
|
Log Create Read-Only Container
|
|
${READONLY_CID_GEN} = Create container ${USER_KEY} 0x1FFF88FF ${RULE_FOR_ALL}
|
|
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}
|