7a21456201
proccessed as JSON Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
62 lines
2.6 KiB
Text
62 lines
2.6 KiB
Text
*** Settings ***
|
|
Variables common.py
|
|
|
|
Library neofs.py
|
|
Library payment_neogo.py
|
|
Library String
|
|
Library Collections
|
|
|
|
Resource setup_teardown.robot
|
|
Resource payment_operations.robot
|
|
Resource common_steps_acl_bearer.robot
|
|
|
|
*** Variables ***
|
|
${POLICY} = REP 2 IN X CBF 1 SELECT 2 FROM * AS X
|
|
${ATTR_TIME} = Timestamp=new
|
|
${ATTR_DUPLICATE} = Size=small, Size=big
|
|
${ATTR_NONE} = NoAttribute=''
|
|
${ATTR_SINGLE} = AttrNum=one
|
|
${CONTAINER_WAIT_INTERVAL} = 1 min
|
|
|
|
*** Test Cases ***
|
|
Duplicated Container Attributes
|
|
[Documentation] Testcase to check duplicated container attributes.
|
|
[Tags] Container NeoFS NeoCLI
|
|
[Timeout] 10 min
|
|
|
|
[Setup] Setup
|
|
|
|
${_} ${ADDR} ${USER_KEY} = Init Wallet with Address ${ASSETS_DIR}
|
|
Payment Operations ${ADDR} ${USER_KEY}
|
|
|
|
######################################################
|
|
# Checking that container attributes cannot duplicate
|
|
######################################################
|
|
|
|
Run Keyword And Expect Error *
|
|
... Create container ${USER_KEY} ${EMPTY} ${POLICY} ${ATTR_TIME}
|
|
Run Keyword And Expect Error *
|
|
... Create container ${USER_KEY} ${EMPTY} ${POLICY} ${ATTR_DUPLICATE}
|
|
|
|
######################################################
|
|
# Checking that container cannot have empty attribute
|
|
######################################################
|
|
|
|
Run Keyword And Expect Error *
|
|
... Create container ${USER_KEY} ${EMPTY} ${POLICY} ${ATTR_NONE}
|
|
|
|
#####################################################
|
|
# Checking a successful step with a single attribute
|
|
#####################################################
|
|
|
|
${CID} = Create container ${USER_KEY} ${EMPTY} ${POLICY} ${ATTR_SINGLE}
|
|
Wait Until Keyword Succeeds ${MORPH_BLOCK_TIME} ${CONTAINER_WAIT_INTERVAL}
|
|
... Container Existing ${USER_KEY} ${CID}
|
|
${ATTRIBUTES} = Get container attributes ${USER_KEY} ${CID} ${EMPTY} json_output=True
|
|
&{ATTRIBUTES_DICT} = Decode Container Attributes Json ${ATTRIBUTES}
|
|
List Should Contain Value
|
|
... ${ATTRIBUTES_DICT}[Attributes]
|
|
... ${ATTR_SINGLE}
|
|
... "No expected container attributes found"
|
|
|
|
[Teardown] Teardown container_attributes
|