2021-04-26 17:48:43 +00:00
|
|
|
*** Settings ***
|
|
|
|
Variables ../../../variables/common.py
|
|
|
|
|
|
|
|
Library ${KEYWORDS}/wallet.py
|
|
|
|
|
2021-02-10 18:53:26 +00:00
|
|
|
*** Variables ***
|
2021-04-06 14:18:48 +00:00
|
|
|
${FILE_USR_HEADER} = key1=1,key2=abc
|
2021-02-10 18:53:26 +00:00
|
|
|
${FILE_USR_HEADER_OTH} = key1=2
|
2021-05-04 09:27:43 +00:00
|
|
|
${UNEXIST_OID} = B2DKvkHnLnPvapbDgfpU1oVUPuXQo5LTfKVxmNDZXQff
|
2021-04-06 14:18:48 +00:00
|
|
|
${TRANSFER_AMOUNT} = 15
|
2021-05-04 09:27:43 +00:00
|
|
|
${DEPOSIT_AMOUNT} = 10
|
|
|
|
${EMPTY_ACL} = ""
|
2021-02-10 18:53:26 +00:00
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
|
2021-04-06 14:18:48 +00:00
|
|
|
Payment operations
|
2021-04-26 17:48:43 +00:00
|
|
|
${WALLET} ${ADDR} ${PRIV_KEY} = Init Wallet with Address ${TEMP_DIR}
|
2021-04-06 14:18:48 +00:00
|
|
|
${TX} = Transfer Mainnet Gas ${MAINNET_WALLET_PATH} ${DEF_WALLET_ADDR} ${ADDR} ${TRANSFER_AMOUNT}
|
|
|
|
|
2021-04-26 17:48:43 +00:00
|
|
|
Wait Until Keyword Succeeds ${BASENET_WAIT_TIME} ${BASENET_BLOCK_TIME}
|
2021-04-06 14:18:48 +00:00
|
|
|
... Transaction accepted in block ${TX}
|
|
|
|
Get Transaction ${TX}
|
|
|
|
Expected Mainnet Balance ${ADDR} ${TRANSFER_AMOUNT}
|
|
|
|
|
2021-04-26 17:48:43 +00:00
|
|
|
${SCRIPT_HASH} = Get ScriptHash ${PRIV_KEY}
|
2021-04-06 14:18:48 +00:00
|
|
|
|
|
|
|
${TX_DEPOSIT} = NeoFS Deposit ${WALLET} ${ADDR} ${SCRIPT_HASH} ${DEPOSIT_AMOUNT}
|
2021-04-26 17:48:43 +00:00
|
|
|
Wait Until Keyword Succeeds ${BASENET_WAIT_TIME} ${BASENET_BLOCK_TIME}
|
2021-04-06 14:18:48 +00:00
|
|
|
... Transaction accepted in block ${TX_DEPOSIT}
|
|
|
|
Get Transaction ${TX_DEPOSIT}
|
|
|
|
|
2021-04-26 17:48:43 +00:00
|
|
|
${BALANCE} = Wait Until Keyword Succeeds ${NEOFS_EPOCH_TIMEOUT} ${MORPH_BLOCK_TIME}
|
2021-04-06 14:18:48 +00:00
|
|
|
... Expected Balance ${PRIV_KEY} 0 ${DEPOSIT_AMOUNT}
|
|
|
|
|
|
|
|
Set Global Variable ${PRIV_KEY} ${PRIV_KEY}
|
|
|
|
Set Global Variable ${ADDR} ${ADDR}
|
|
|
|
|
|
|
|
Prepare container
|
2021-05-04 09:27:43 +00:00
|
|
|
${CID} = Create container ${PRIV_KEY} ${EMPTY_ACL} ${COMMON_PLACEMENT_RULE}
|
|
|
|
Container Existing ${PRIV_KEY} ${CID}
|
2021-04-26 17:48:43 +00:00
|
|
|
|
2021-04-06 14:18:48 +00:00
|
|
|
Wait Until Keyword Succeeds ${NEOFS_EPOCH_TIMEOUT} ${MORPH_BLOCK_TIME}
|
|
|
|
... Expected Balance ${PRIV_KEY} ${DEPOSIT_AMOUNT} ${NEOFS_CREATE_CONTAINER_GAS_FEE}
|
|
|
|
|
|
|
|
Set Global Variable ${CID} ${CID}
|