2020-11-29 04:28:01 +00:00
|
|
|
*** Settings ***
|
2021-02-08 05:05:17 +00:00
|
|
|
Variables ../../../variables/common.py
|
2020-11-29 04:28:01 +00:00
|
|
|
|
2021-02-08 05:05:17 +00:00
|
|
|
Library ../${RESOURCES}/neofs.py
|
|
|
|
Library ../${RESOURCES}/payment_neogo.py
|
2020-11-29 04:28:01 +00:00
|
|
|
|
|
|
|
*** Test cases ***
|
2020-11-29 04:30:45 +00:00
|
|
|
NeoFS Deposit and Withdraw
|
2020-11-29 04:28:01 +00:00
|
|
|
[Documentation] Testcase to validate NeoFS Withdraw operation.
|
|
|
|
[Tags] Withdraw NeoFS NeoCLI
|
|
|
|
[Timeout] 10 min
|
|
|
|
|
|
|
|
${WALLET} = Init wallet
|
|
|
|
Generate wallet ${WALLET}
|
|
|
|
${ADDR} = Dump Address ${WALLET}
|
|
|
|
${PRIV_KEY} = Dump PrivKey ${WALLET} ${ADDR}
|
|
|
|
|
|
|
|
${TX} = Transfer Mainnet Gas wallets/wallet.json NTrezR3C4X8aMLVg7vozt5wguyNfFhwuFx ${ADDR} 55
|
|
|
|
Wait Until Keyword Succeeds 1 min 15 sec
|
|
|
|
... Transaction accepted in block ${TX}
|
|
|
|
Get Transaction ${TX}
|
|
|
|
Expexted Mainnet Balance ${ADDR} 55
|
|
|
|
|
|
|
|
${SCRIPT_HASH} = Get ScripHash ${PRIV_KEY}
|
|
|
|
|
2020-12-02 23:08:05 +00:00
|
|
|
${TX_DEPOSIT} = NeoFS Deposit ${WALLET} ${ADDR} ${SCRIPT_HASH} 50
|
2020-11-29 04:28:01 +00:00
|
|
|
Wait Until Keyword Succeeds 1 min 15 sec
|
|
|
|
... Transaction accepted in block ${TX_DEPOSIT}
|
|
|
|
Get Transaction ${TX_DEPOSIT}
|
|
|
|
|
|
|
|
Sleep 1 min
|
|
|
|
|
2020-12-29 19:55:33 +00:00
|
|
|
Expexted Mainnet Balance ${ADDR} 4.85019610
|
2020-11-29 04:28:01 +00:00
|
|
|
${NEOFS_BALANCE} = Get Balance ${PRIV_KEY}
|
|
|
|
|
2020-12-02 23:08:05 +00:00
|
|
|
${TX} = Withdraw Mainnet Gas ${WALLET} ${ADDR} ${SCRIPT_HASH} 50
|
2020-11-29 04:28:01 +00:00
|
|
|
Wait Until Keyword Succeeds 1 min 15 sec
|
|
|
|
... Transaction accepted in block ${TX}
|
|
|
|
|
|
|
|
Sleep 1 min
|
|
|
|
Get Balance ${PRIV_KEY}
|
2020-12-02 23:08:05 +00:00
|
|
|
Expected Balance ${PRIV_KEY} ${NEOFS_BALANCE} -50
|
2020-12-29 19:55:33 +00:00
|
|
|
Expexted Mainnet Balance ${ADDR} 54.81699450
|
|
|
|
|
|
|
|
[Teardown] Cleanup
|
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
|
|
|
|
Cleanup
|
|
|
|
Get Docker Logs withdraw
|