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-08-24 11:13:36 +00:00
|
|
|
${PLACEMENT_RULE} = REP 2 IN X CBF 1 SELECT 2 FROM * AS X
|
2021-02-10 18:53:26 +00:00
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
|
2021-06-01 12:07:31 +00:00
|
|
|
Prepare container
|
|
|
|
[Arguments] ${WIF}
|
2021-06-01 12:07:31 +00:00
|
|
|
${NEOFS_BALANCE} = Get NeoFS Balance ${WIF}
|
2021-04-06 14:18:48 +00:00
|
|
|
|
2021-08-24 11:13:36 +00:00
|
|
|
${CID} = Create container ${WIF} ${EMPTY} ${PLACEMENT_RULE}
|
2021-06-01 12:07:31 +00:00
|
|
|
Container Existing ${WIF} ${CID}
|
2021-04-26 17:48:43 +00:00
|
|
|
|
2021-06-01 12:07:31 +00:00
|
|
|
${NEW_NEOFS_BALANCE} = Get NeoFS Balance ${WIF}
|
|
|
|
Should Be True ${NEW_NEOFS_BALANCE} < ${NEOFS_BALANCE}
|
|
|
|
${CONTAINER_FEE} = Evaluate ${NEOFS_BALANCE} - ${NEW_NEOFS_BALANCE}
|
2021-05-07 12:14:37 +00:00
|
|
|
Log Container fee is ${CONTAINER_FEE}
|
2021-04-06 14:18:48 +00:00
|
|
|
|
2021-06-01 12:07:31 +00:00
|
|
|
Set Global Variable ${CID} ${CID}
|