automation: Verify Hive Deposit #253

Closed
opened 2022-01-17 11:19:59 +00:00 by pavel.baykov · 7 comments
pavel.baykov commented 2022-01-17 11:19:59 +00:00 (Migrated from gitlab.com)

Consider an peerplays user account with hive deposit and withdraw address mapped.

Get the balance of peerplays user account (from Peerplays cli wallet)

  • list_account_balances <<user_account>>

Get the balance of mapped Hive account (from Hive cli wallet)

  • get_account <hive_account>

Get the balance of Hive son-account account (from Hive cli wallet)

  • get_account son-account

Send some funds from Hive mapped account to Hive son-account (from Hive cli wallet)

  • transfer <hive_account> son-account "100.000 TESTS" null true
  • transfer <hive_account> son-account "200.000 TBD" null true

Verify the log and SONs should detect the deposit
and equivalent peerplays token (HIVE/HBD) is credited to the peerplays account.

Note: check the log instantly or parallel with transaction

Verify the account balances after the transaction

Get the balance of peerplays user account

  • list_account_balances <<user_account>>

Get the balance of mapped Hive account

  • get_account <hive_account>

Get the balance of Hive son-account account

  • get_account son-account
Consider an peerplays user account with hive deposit and withdraw address mapped. Get the balance of peerplays user account (from Peerplays cli wallet) - list_account_balances <<user_account>> Get the balance of mapped Hive account (from Hive cli wallet) - get_account <hive_account> Get the balance of Hive son-account account (from Hive cli wallet) - get_account son-account Send some funds from Hive mapped account to Hive son-account (from Hive cli wallet) - transfer <hive_account> son-account "100.000 TESTS" null true - transfer <hive_account> son-account "200.000 TBD" null true Verify the log and SONs should detect the deposit and equivalent peerplays token (HIVE/HBD) is credited to the peerplays account. Note: check the log instantly or parallel with transaction Verify the account balances after the transaction Get the balance of peerplays user account - list_account_balances <<user_account>> Get the balance of mapped Hive account - get_account <hive_account> Get the balance of Hive son-account account - get_account son-account
pavel.baykov commented 2022-01-17 11:19:59 +00:00 (Migrated from gitlab.com)

assigned to @pavel.baykov

assigned to @pavel.baykov
hbelakon commented 2022-01-21 05:20:44 +00:00 (Migrated from gitlab.com)

@pavel.baykov please assign to proper EPIC

@pavel.baykov please assign to proper EPIC
pavel.baykov commented 2022-01-21 09:11:50 +00:00 (Migrated from gitlab.com)

to test:
pytest -s -v test.py::test_Verify_Hive_Deposit

to test: pytest -s -v test.py::test_Verify_Hive_Deposit
pavel.baykov commented 2022-01-21 09:12:48 +00:00 (Migrated from gitlab.com)

most of this ticket is done, but there is one TODO:
#TODO
#Verify the log and SONs should detect the deposit and equivalent peerplays token (HIVE/HBD) is credited to the peerplays account.
#Note: check the log instantly or parallel with transaction

most of this ticket is done, but there is one TODO: #TODO #Verify the log and SONs should detect the deposit and equivalent peerplays token (HIVE/HBD) is credited to the peerplays account. #Note: check the log instantly or parallel with transaction
pavel.baykov commented 2022-01-21 09:14:12 +00:00 (Migrated from gitlab.com)

also last step of the test
#Get the balance of Hive son-account account
does not show adjustment in the balance, could be a bug

also last step of the test #Get the balance of Hive son-account account does not show adjustment in the balance, could be a bug
pavel.baykov commented 2022-01-21 09:14:40 +00:00 (Migrated from gitlab.com)

require to enable verbosity logs

require to enable verbosity logs
serkixenos commented 2022-01-31 03:34:13 +00:00 (Migrated from gitlab.com)
test.py::test_Verify_Hive_Deposit 1. list_account_balances peerplays607c996b-74ea-47ac-8a90-f9bd73a43fcd
19858.89063 TEST


2. hive_get_account hive1630b44c-4357-4e74-966e-670ca31e2ce6
1157155ms websocket_api.cpp:102         on_message           ] message: {"jsonrpc":"2.0","result":[],"id":1} 
10 assert_exception: Assert Exception
!accounts.empty(): Unknown account
    {}
    wallet.cpp:356 get_account

FAILED
``` test.py::test_Verify_Hive_Deposit 1. list_account_balances peerplays607c996b-74ea-47ac-8a90-f9bd73a43fcd 19858.89063 TEST 2. hive_get_account hive1630b44c-4357-4e74-966e-670ca31e2ce6 1157155ms websocket_api.cpp:102 on_message ] message: {"jsonrpc":"2.0","result":[],"id":1} 10 assert_exception: Assert Exception !accounts.empty(): Unknown account {} wallet.cpp:356 get_account FAILED ```
serkixenos (Migrated from gitlab.com) closed this issue 2022-03-04 21:56:26 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#253
No description provided.