2021-04-26 17:48:43 +00:00
|
|
|
*** Settings ***
|
|
|
|
Variables ../../../variables/common.py
|
|
|
|
|
2021-05-07 12:14:37 +00:00
|
|
|
Library ${KEYWORDS}/wallet_keywords.py
|
|
|
|
Library ${KEYWORDS}/rpc_call_keywords.py
|
2021-04-26 17:48:43 +00:00
|
|
|
|
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
|
2021-02-10 18:53:26 +00:00
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
|
2021-04-06 14:18:48 +00:00
|
|
|
Payment operations
|
2021-06-01 12:07:31 +00:00
|
|
|
${WALLET} ${ADDR} ${WIF} = Init Wallet with Address ${TEMP_DIR}
|
2021-05-07 12:14:37 +00:00
|
|
|
${TX} = Transfer Mainnet Gas ${MAINNET_WALLET_WIF} ${ADDR} ${TRANSFER_AMOUNT}
|
|
|
|
Wait Until Keyword Succeeds ${MAINNET_TIMEOUT} ${MAINNET_BLOCK_TIME}
|
2021-04-06 14:18:48 +00:00
|
|
|
... Transaction accepted in block ${TX}
|
2021-05-07 12:14:37 +00:00
|
|
|
|
2021-06-01 12:07:31 +00:00
|
|
|
${MAINNET_BALANCE} = Get Mainnet Balance ${ADDR}
|
|
|
|
Should Be Equal As Numbers ${MAINNET_BALANCE} ${TRANSFER_AMOUNT}
|
2021-04-06 14:18:48 +00:00
|
|
|
|
2021-06-01 12:07:31 +00:00
|
|
|
${TX_DEPOSIT} = NeoFS Deposit ${WIF} ${DEPOSIT_AMOUNT}
|
2021-05-07 12:14:37 +00:00
|
|
|
Wait Until Keyword Succeeds ${MAINNET_TIMEOUT} ${MAINNET_BLOCK_TIME}
|
2021-04-06 14:18:48 +00:00
|
|
|
... Transaction accepted in block ${TX_DEPOSIT}
|
|
|
|
|
2021-06-01 12:07:31 +00:00
|
|
|
${NEOFS_BALANCE} = Get NeoFS Balance ${WIF}
|
2021-05-07 12:14:37 +00:00
|
|
|
Should Be Equal As Numbers ${NEOFS_BALANCE} ${DEPOSIT_AMOUNT}
|
2021-04-06 14:18:48 +00:00
|
|
|
|
2021-06-01 12:07:31 +00:00
|
|
|
Set Global Variable ${PRIV_KEY} ${WIF}
|
2021-04-06 14:18:48 +00:00
|
|
|
Set Global Variable ${ADDR} ${ADDR}
|
|
|
|
|
|
|
|
Prepare container
|
2021-05-26 14:14:46 +00:00
|
|
|
${CID} = Create container ${PRIV_KEY} ${EMPTY} ${COMMON_PLACEMENT_RULE}
|
2021-05-04 09:27:43 +00:00
|
|
|
Container Existing ${PRIV_KEY} ${CID}
|
2021-04-26 17:48:43 +00:00
|
|
|
|
2021-05-07 12:14:37 +00:00
|
|
|
${NEOFS_BALANCE} = Get NeoFS Balance ${PRIV_KEY}
|
|
|
|
Should Be True ${NEOFS_BALANCE} < ${DEPOSIT_AMOUNT}
|
|
|
|
${CONTAINER_FEE} = Evaluate ${DEPOSIT_AMOUNT} - ${NEOFS_BALANCE}
|
|
|
|
Log Container fee is ${CONTAINER_FEE}
|
2021-04-06 14:18:48 +00:00
|
|
|
|
|
|
|
Set Global Variable ${CID} ${CID}
|