2021-07-20 15:24:52 +00:00
|
|
|
*** Settings ***
|
2021-12-09 10:58:51 +00:00
|
|
|
Variables common.py
|
2021-07-20 15:24:52 +00:00
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
Library container.py
|
|
|
|
Library String
|
|
|
|
Library Collections
|
2021-07-20 15:24:52 +00:00
|
|
|
|
2021-12-09 10:58:51 +00:00
|
|
|
Resource setup_teardown.robot
|
|
|
|
Resource payment_operations.robot
|
|
|
|
Resource common_steps_acl_bearer.robot
|
2021-07-20 15:24:52 +00:00
|
|
|
|
|
|
|
*** Variables ***
|
2022-04-25 09:53:20 +00:00
|
|
|
&{ATTR_TIME} = Timestamp=new
|
|
|
|
&{ATTR_NONE} = NoAttribute=
|
|
|
|
&{ATTR_SINGLE} = AttrNum=one
|
|
|
|
${ERROR_MSG} = invalid container attribute
|
2021-07-20 15:24:52 +00:00
|
|
|
|
|
|
|
*** Test Cases ***
|
2021-07-29 07:49:50 +00:00
|
|
|
Duplicated Container Attributes
|
2021-07-20 15:24:52 +00:00
|
|
|
[Documentation] Testcase to check duplicated container attributes.
|
2022-04-25 09:53:20 +00:00
|
|
|
[Tags] Container
|
|
|
|
[Timeout] 5 min
|
2021-07-20 15:24:52 +00:00
|
|
|
|
|
|
|
[Setup] Setup
|
|
|
|
|
2022-02-01 13:42:41 +00:00
|
|
|
${WALLET} ${_} ${_} = Prepare Wallet And Deposit
|
2021-07-20 15:24:52 +00:00
|
|
|
|
|
|
|
######################################################
|
|
|
|
# Checking that container attributes cannot duplicate
|
|
|
|
######################################################
|
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
# TODO: unstable case, the behaviour needs to be defined
|
|
|
|
# https://github.com/nspcc-dev/neofs-node/issues/1339
|
|
|
|
#Run Keyword And Expect Error *
|
|
|
|
#... Create container ${WALLET} attributes=${ATTR_TIME}
|
|
|
|
|
|
|
|
${ERR} = Run Keyword And Expect Error *
|
|
|
|
... Create Container ${WALLET} options=--attributes Size=small, Size=big
|
|
|
|
Should Contain ${ERR} ${ERROR_MSG}
|
2021-07-20 15:24:52 +00:00
|
|
|
|
2021-07-29 07:49:50 +00:00
|
|
|
######################################################
|
|
|
|
# Checking that container cannot have empty attribute
|
|
|
|
######################################################
|
2021-07-20 15:24:52 +00:00
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
# TODO: the same unstable case, referenced in the above issue
|
|
|
|
#${ERR} = Run Keyword And Expect Error *
|
|
|
|
# ... Create Container ${WALLET} attributes=${ATTR_NONE}
|
|
|
|
# Should Contain ${ERR} ${ERROR_MSG}
|
2021-07-20 15:24:52 +00:00
|
|
|
|
|
|
|
#####################################################
|
|
|
|
# Checking a successful step with a single attribute
|
|
|
|
#####################################################
|
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
${CID} = Create Container ${WALLET} attributes=${ATTR_SINGLE}
|
2022-05-27 14:42:42 +00:00
|
|
|
&{ATTRIBUTES} = Get Container ${WALLET} ${CID}
|
2022-04-25 09:53:20 +00:00
|
|
|
Dictionary Should Contain Sub Dictionary
|
2022-05-27 14:42:42 +00:00
|
|
|
... ${ATTRIBUTES}[attributes]
|
2022-03-15 11:58:59 +00:00
|
|
|
... ${ATTR_SINGLE}
|
2022-04-25 09:53:20 +00:00
|
|
|
... msg="No expected container attributes found"
|
2021-07-20 15:24:52 +00:00
|
|
|
|
2021-08-31 15:16:19 +00:00
|
|
|
[Teardown] Teardown container_attributes
|