e489b43d63
tests slightly refactored Signed-off-by: anastasia prasolova <anastasia@nspcc.ru>
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
*** Settings ***
|
|
Variables common.py
|
|
|
|
Resource setup_teardown.robot
|
|
Resource payment_operations.robot
|
|
|
|
Library container.py
|
|
Library session_token.py
|
|
|
|
*** Test Cases ***
|
|
|
|
Session Token for Container
|
|
[Documentation] Testcase to check container session token
|
|
[Tags] Container SessionToken
|
|
[Timeout] 5 min
|
|
|
|
[Setup] Setup
|
|
|
|
${OWNER_WALLET} ${OWNER} ${_} = Prepare Wallet And Deposit
|
|
${SESSION_WALLET} ${_} ${_} = Prepare Wallet And Deposit
|
|
|
|
${SESSION_TOKEN} = Generate Session Token ${OWNER} ${SESSION_WALLET}
|
|
${SIGNED_FILE} = Sign Session token ${SESSION_TOKEN} ${OWNER_WALLET}
|
|
|
|
${CID} = Create Container ${OWNER_WALLET}
|
|
... session_token=${SIGNED_FILE} session_wallet=${SESSION_WALLET}
|
|
|
|
########################
|
|
# Check container owner
|
|
########################
|
|
|
|
&{ATTRS} = Get Container ${SESSION_WALLET} ${CID}
|
|
Should Be Equal As Strings ${OWNER} ${ATTRS}[ownerID]
|
|
|
|
[Teardown] Teardown container_session_token
|