2021-12-28 07:08:16 +00:00
|
|
|
*** Settings ***
|
|
|
|
Variables common.py
|
|
|
|
|
|
|
|
Library payment_neogo.py
|
2022-07-04 19:49:14 +00:00
|
|
|
Library utility_keywords.py
|
2021-12-28 07:08:16 +00:00
|
|
|
Library Process
|
|
|
|
|
|
|
|
Resource setup_teardown.robot
|
|
|
|
|
|
|
|
*** Variables ***
|
|
|
|
|
|
|
|
${DEPOSIT_AMOUNT} = ${25}
|
|
|
|
${DEPOSIT} = ${60}
|
|
|
|
@{INCLUDE_SVC} = ir
|
|
|
|
&{CONFIG_CHANGE} = NEOFS_IR_EMIT_GAS_BALANCE_THRESHOLD=${10**16}
|
|
|
|
|
|
|
|
*** Test cases ***
|
|
|
|
IR GAS emission threshold value
|
|
|
|
[Documentation] Testcase to check sidechain balance when emission threshold is exceeded.
|
|
|
|
[Tags] GAS Sidechain
|
|
|
|
[Timeout] 5 min
|
|
|
|
|
|
|
|
|
2022-07-04 19:49:14 +00:00
|
|
|
${WALLET} ${ADDR} ${_} = Generate Wallet
|
2021-12-28 07:08:16 +00:00
|
|
|
|
|
|
|
${SC_BALANCE} = Get Sidechain Balance ${ADDR}
|
2022-06-13 20:33:09 +00:00
|
|
|
Transfer Mainnet Gas ${WALLET} ${DEPOSIT}
|
2021-12-28 07:08:16 +00:00
|
|
|
|
|
|
|
##########################################################################################
|
|
|
|
# Threshold is set to default 0 and sidechain balance has changed after deposit operation
|
|
|
|
##########################################################################################
|
|
|
|
|
2022-06-13 20:33:09 +00:00
|
|
|
NeoFS Deposit ${WALLET} ${DEPOSIT_AMOUNT}
|
2021-12-28 07:08:16 +00:00
|
|
|
Sleep ${MAINNET_BLOCK_TIME}
|
|
|
|
|
|
|
|
${BALANCE_CHANGED} = Get Sidechain Balance ${ADDR}
|
|
|
|
Should Not Be Equal ${SC_BALANCE} ${BALANCE_CHANGED}
|
|
|
|
|
|
|
|
Make Down ${INCLUDE_SVC}
|
|
|
|
Make Up ${INCLUDE_SVC} ${CONFIG_CHANGE}
|
|
|
|
|
|
|
|
######################################################################################
|
|
|
|
# Threshold is exceeded and sidechain balance has not changed after deposit operation
|
|
|
|
######################################################################################
|
|
|
|
|
2022-06-13 20:33:09 +00:00
|
|
|
NeoFS Deposit ${WALLET} ${DEPOSIT_AMOUNT}
|
2021-12-28 07:08:16 +00:00
|
|
|
Sleep ${MAINNET_BLOCK_TIME}
|
|
|
|
|
|
|
|
${BALANCE_UNCHANGED} = Get Sidechain Balance ${ADDR}
|
|
|
|
Should Be Equal ${BALANCE_UNCHANGED} ${BALANCE_CHANGED}
|
|
|
|
|