2021-11-03 12:48:31 +00:00
|
|
|
*** Settings ***
|
2021-12-09 10:58:51 +00:00
|
|
|
Variables common.py
|
2021-11-03 12:48:31 +00:00
|
|
|
|
|
|
|
Resource payment_operations.robot
|
|
|
|
|
2022-04-25 09:53:20 +00:00
|
|
|
Library container.py
|
2022-05-27 14:42:42 +00:00
|
|
|
Library session_token.py
|
2021-11-03 12:48:31 +00:00
|
|
|
|
|
|
|
*** Test Cases ***
|
|
|
|
|
|
|
|
Session Token for Container
|
|
|
|
[Documentation] Testcase to check container session token
|
|
|
|
[Tags] Container SessionToken
|
|
|
|
[Timeout] 5 min
|
|
|
|
|
|
|
|
|
2022-05-27 14:42:42 +00:00
|
|
|
${OWNER_WALLET} ${OWNER} ${_} = Prepare Wallet And Deposit
|
|
|
|
${SESSION_WALLET} ${_} ${_} = Prepare Wallet And Deposit
|
2021-11-03 12:48:31 +00:00
|
|
|
|
2022-05-27 14:42:42 +00:00
|
|
|
${SESSION_TOKEN} = Generate Session Token ${OWNER} ${SESSION_WALLET}
|
|
|
|
${SIGNED_FILE} = Sign Session token ${SESSION_TOKEN} ${OWNER_WALLET}
|
2021-11-03 12:48:31 +00:00
|
|
|
|
2022-05-27 14:42:42 +00:00
|
|
|
${CID} = Create Container ${OWNER_WALLET}
|
|
|
|
... session_token=${SIGNED_FILE} session_wallet=${SESSION_WALLET}
|
2021-11-03 12:48:31 +00:00
|
|
|
|
|
|
|
########################
|
2022-04-25 09:53:20 +00:00
|
|
|
# Check container owner
|
2021-11-03 12:48:31 +00:00
|
|
|
########################
|
|
|
|
|
2022-05-27 14:42:42 +00:00
|
|
|
&{ATTRS} = Get Container ${SESSION_WALLET} ${CID}
|
|
|
|
Should Be Equal As Strings ${OWNER} ${ATTRS}[ownerID]
|
2021-11-03 12:48:31 +00:00
|
|
|
|