Skip to content

Commit

Permalink
[GS] Update regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorzs committed Apr 14, 2015
1 parent 31ca5a0 commit a749442
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 69 deletions.
2 changes: 0 additions & 2 deletions tests/regression_tests/vote_delegates_recommended/client1.log
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ default (unlocked) >>> debug_wait 2
OK
default (unlocked) >>> debug_advance_time 1 blocks
OK
default (unlocked) >>> debug_wait 2
OK
default (unlocked) >>> wallet_account_balance account1
ACCOUNT BALANCE
============================================================
Expand Down
114 changes: 47 additions & 67 deletions tests/regression_tests/wallet_uia_flags/wallet_uia_flags.log
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ TIMESTAMP BLOCK FROM TO AMOUNT
<d-ign>2014-06-20T14:40:30</d-ign>PENDING delegate0 delegate0 0.00000 XTS create XMO (DIGITAL_DEVICE1) 500,000.00000 XTS <d-ign> e2973d09</d-ign>
default (unlocked) >>> debug_wait_for_block_by_number 1 relative
OK
default (unlocked) >>> wallet_account_register test delegate0
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
======================================================================================================================================================================
<d-ign>2014-06-20T14:40:30</d-ign>PENDING delegate0 test 0.00000 XTS register test 0.50000 XTS <d-ign> 47a35cc9</d-ign>
default (unlocked) >>> blockchain_list_assets
ID SYMBOL NAME DESCRIPTION ISSUER ISSUED SUPPLY
===========================================================================================================================================================
Expand Down Expand Up @@ -47,7 +51,7 @@ Activate or deactivate one of the special flags for the specified user-issued as
Parameters:
paying_account (account_name, required): the account that will pay the transaction fee
asset_symbol (asset_symbol, required): the user-issued asset to update
flag (asset_flag_enum, required): the special flag to enable or disable; one of {dynamic_max_supply, dynamic_fees, halted_markets, halted_withdrawals, retractable_balances, restricted_deposits}
flag (asset_flag_enum, required): the special flag to enable or disable; one of {dynamic_max_supply, dynamic_fees, halted_markets, halted_withdrawals, retractable_balances, restricted_accounts}
enable_instead_of_disable (bool, required): true to enable, or false to disable

Returns:
Expand All @@ -70,6 +74,12 @@ TIMESTAMP BLOCK FROM TO AMOUNT
<d-ign>2014-06-20T14:40:50</d-ign>PENDING delegate0 UNKNOWN 0.00000 XTS add halted_markets to authority permsfor... 0.50000 XTS <d-ign> fa89a184</d-ign>
default (unlocked) >>> debug_wait_for_block_by_number 1 relative
OK
default (unlocked) >>> wallet_uia_update_active_flags delegate0 XMO restricted_accounts true
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
======================================================================================================================================================================
<d-ign>2014-06-20T14:41:00</d-ign>PENDING delegate0 UNKNOWN 0.00000 XTS add restricted_accounts to authority per... 0.50000 XTS <d-ign> 2da23410</d-ign>
default (unlocked) >>> debug_wait_for_block_by_number 1 relative
OK
default (unlocked) >>> blockchain_get_asset XMO
{
"id": 1,
Expand All @@ -82,7 +92,7 @@ default (unlocked) >>> blockchain_get_asset XMO
]
},
"authority_flag_permissions": 4294967295,
"active_flags": 7,
"active_flags": 39,
"whitelist": [],
"name": "DIGITAL_DEVICE1",
"description": "CREATING AN ASSET",
Expand All @@ -94,7 +104,7 @@ default (unlocked) >>> blockchain_get_asset XMO
"collected_fees": 0,
"current_supply": 0,
"registration_date": "2014-06-20T14:40:20",
"last_update": "2014-06-20T14:40:50"
"last_update": "2014-06-20T14:41:00"
}
default (unlocked) >>> wallet_uia_update_active_flags delegate0 XMO dynamic_fees false
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
Expand All @@ -114,7 +124,7 @@ default (unlocked) >>> blockchain_get_asset XMO
]
},
"authority_flag_permissions": 4294967295,
"active_flags": 5,
"active_flags": 37,
"whitelist": [],
"name": "DIGITAL_DEVICE1",
"description": "CREATING AN ASSET",
Expand All @@ -126,45 +136,25 @@ default (unlocked) >>> blockchain_get_asset XMO
"collected_fees": 0,
"current_supply": 0,
"registration_date": "2014-06-20T14:40:20",
"last_update": "2014-06-20T14:41:00"
"last_update": "2014-06-20T14:41:10"
}
default (unlocked) >>> help wallet_uia_update_whitelist
Usage:
wallet_uia_update_whitelist <paying_account> <asset_symbol> <address_or_public_key> <add_to_whitelist> Add or remove the specified address or public key from the specified user-issued asset's whitelist
Add or remove the specified address or public key from the specified user-issued asset's whitelist
wallet_uia_update_whitelist <paying_account> <asset_symbol> <account_name> <add_to_whitelist> Add or remove the specified registered account from the specified user-issued asset's whitelist
Add or remove the specified registered account from the specified user-issued asset's whitelist

Parameters:
paying_account (account_name, required): the account that will pay the transaction fee
asset_symbol (asset_symbol, required): the user-issued asset that will have its whitelist updated
address_or_public_key (string, required): the address or public key to add or remove from the whitelist
account_name (string, required): the name of the account to add or remove from the whitelist
add_to_whitelist (bool, required): true to add to whitelist, or false to remove

Returns:
transaction_record
default (unlocked) >>> wallet_uia_update_whitelist delegate0 XMO XTS6nLGSU7AJwvY8WmgQ6y2kmqhwyT6DWKo4bPvBohXnWZR4hUXZt true
Command failed with exception: Assert Exception (10)
current_asset_record->flag_is_active( asset_record::restricted_deposits ):











default (unlocked) >>> wallet_uia_update_active_flags delegate0 XMO restricted_deposits true
default (unlocked) >>> wallet_uia_update_whitelist delegate0 XMO test true
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
======================================================================================================================================================================
<d-ign>2014-06-20T14:41:10</d-ign>PENDING delegate0 UNKNOWN 0.00000 XTS add restricted_deposits to authority per... 0.50000 XTS <d-ign> fa89a184</d-ign>
default (unlocked) >>> debug_wait_for_block_by_number 1 relative
OK
default (unlocked) >>> wallet_uia_update_whitelist delegate0 XMO XTS6nLGSU7AJwvY8WmgQ6y2kmqhwyT6DWKo4bPvBohXnWZR4hUXZt true
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
======================================================================================================================================================================
<d-ign>2014-06-20T14:41:10</d-ign>PENDING delegate0 UNKNOWN 0.00000 XTS add XTSEz7eoMUssHQBeeH5xLr38Rg8RSJXYBebN... 0.50000 XTS <d-ign> 60a9e67c</d-ign>
<d-ign>2014-06-20T14:41:20</d-ign>PENDING delegate0 UNKNOWN 0.00000 XTS add test towhitelist for XMO 0.50000 XTS <d-ign> ba32e0cd</d-ign>
default (unlocked) >>> debug_wait_for_block_by_number 1 relative
OK
default (unlocked) >>> blockchain_get_asset XMO
Expand All @@ -181,7 +171,7 @@ default (unlocked) >>> blockchain_get_asset XMO
"authority_flag_permissions": 4294967295,
"active_flags": 37,
"whitelist": [
"XTSEz7eoMUssHQBeeH5xLr38Rg8RSJXYBebN"
102
],
"name": "DIGITAL_DEVICE1",
"description": "CREATING AN ASSET",
Expand All @@ -195,9 +185,13 @@ default (unlocked) >>> blockchain_get_asset XMO
"registration_date": "2014-06-20T14:40:20",
"last_update": "2014-06-20T14:41:10"
}
default (unlocked) >>> wallet_uia_issue 1000 XMO test "Sending some assets"
Command failed with exception: over issue (35007)

default (unlocked) >>> wallet_uia_issue 100 XMO test "Sending some assets"
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
======================================================================================================================================================================
<d-ign>2014-06-20T14:41:30</d-ign>PENDING delegate0 test 100.00 XMO Sending some assets 0.50000 XTS <d-ign> 59d7818b</d-ign>
default (unlocked) >>> wallet_uia_issue 20 XMO test2 "Sending some assets"
Command failed with exception: Assert Exception (10)
asset_rec->address_is_approved( *eval_state.pending_state(), owner ):



Expand All @@ -209,15 +203,9 @@ Command failed with exception: over issue (35007)



default (unlocked) >>> wallet_uia_issue 20 XMO test2 "Sending some assets"
default (unlocked) >>> wallet_uia_update_whitelist delegate0 XMO test2 true
Command failed with exception: Assert Exception (10)
asset_rec->address_is_whitelisted( owner ):






account_record.valid():



Expand All @@ -231,15 +219,15 @@ Update the authority's special flag permissions for the specified user-issued as
Parameters:
paying_account (account_name, required): the account that will pay the transaction fee
asset_symbol (asset_symbol, required): the user-issued asset to update
permission (asset_flag_enum, required): the special permission to enable or disable; one of {dynamic_max_supply, dynamic_fees, halted_markets, halted_withdrawals, retractable_balances, restricted_deposits}
permission (asset_flag_enum, required): the special permission to enable or disable; one of {dynamic_max_supply, dynamic_fees, halted_markets, halted_withdrawals, retractable_balances, restricted_accounts}
add_instead_of_remove (bool, required): True to add, or false to remove. Use with extreme caution!

Returns:
transaction_record
default (unlocked) >>> wallet_uia_update_authority_permissions delegate0 XMO restricted_deposits false
default (unlocked) >>> wallet_uia_update_authority_permissions delegate0 XMO restricted_accounts false
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
======================================================================================================================================================================
<d-ign>2014-06-20T14:41:20</d-ign>PENDING delegate0 UNKNOWN 0.00000 XTS remove restricted_deposits from active f... 0.50000 XTS <d-ign> ee6b58d0</d-ign>
<d-ign>2014-06-20T14:41:40</d-ign>PENDING delegate0 UNKNOWN 0.00000 XTS remove restricted_accounts from active f... 0.50000 XTS <d-ign> a680b5f6</d-ign>
default (unlocked) >>> debug_wait_for_block_by_number 1 relative
OK
default (unlocked) >>> blockchain_get_asset XMO
Expand All @@ -256,7 +244,7 @@ default (unlocked) >>> blockchain_get_asset XMO
"authority_flag_permissions": 4294967263,
"active_flags": 37,
"whitelist": [
"XTSEz7eoMUssHQBeeH5xLr38Rg8RSJXYBebN"
102
],
"name": "DIGITAL_DEVICE1",
"description": "CREATING AN ASSET",
Expand All @@ -266,42 +254,34 @@ default (unlocked) >>> blockchain_get_asset XMO
"withdrawal_fee": 0,
"market_fee_rate": 0,
"collected_fees": 0,
"current_supply": 0,
"current_supply": 10000,
"registration_date": "2014-06-20T14:40:20",
"last_update": "2014-06-20T14:41:30"
}
default (unlocked) >>> wallet_uia_issue 1000 XMO test "Sending some assets"
Command failed with exception: over issue (35007)












default (unlocked) >>> wallet_uia_issue 100 XMO test "Sending some assets"
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
======================================================================================================================================================================
<d-ign>2014-06-20T14:41:40</d-ign>PENDING delegate0 test 100.00 XMO Sending some assets 0.50000 XTS <d-ign> 59d7818b</d-ign>
default (unlocked) >>> wallet_uia_issue 20 XMO test2 "Sending some assets"
TIMESTAMP BLOCK FROM TO AMOUNT MEMO FEE ID
======================================================================================================================================================================
<d-ign>2014-06-20T14:41:00</d-ign>PENDING delegate0 test2 20.00 XMO Sending some assets 0.50000 XTS <d-ign> 0d86ed61</d-ign>
<d-ign>2014-06-20T14:41:40</d-ign>PENDING delegate0 test2 20.00 XMO Sending some assets 0.50000 XTS <d-ign> 0d86ed61</d-ign>
default (unlocked) >>> debug_wait_for_block_by_number 2 relative
OK
default (unlocked) >>> blockchain_list_assets
ID SYMBOL NAME DESCRIPTION ISSUER ISSUED SUPPLY
===========================================================================================================================================================
1 XMO DIGITAL_DEVICE1 CREATING AN ASSET delegate0 4.00 % 20.00 XMO
1 XMO DIGITAL_DEVICE1 CREATING AN ASSET delegate0 44.00 % 220.00 XMO
0 XTS BitShares XTS BitShares Test Network GENESIS N/A 2,000,000,499.99901 XTS
default (unlocked) >>> wallet_account_balance test
No balances found.
ACCOUNT BALANCE
============================================================
test 200.00 XMO
default (unlocked) >>> wallet_account_balance test2
ACCOUNT BALANCE
============================================================
test2 20.00 XMO
default (unlocked) >>> wallet_uia_update_active_flags delegate0 XMO dynamic_fees true
default (unlocked) >>> wallet_uia_update_active_flags delegate0 XMO dynamic_fees false
Command failed with exception: permission not available (35016)


Expand Down Expand Up @@ -331,7 +311,7 @@ default (unlocked) >>> blockchain_get_asset XMO
"authority_flag_permissions": 4294967263,
"active_flags": 37,
"whitelist": [
"XTSEz7eoMUssHQBeeH5xLr38Rg8RSJXYBebN"
102
],
"name": "DIGITAL_DEVICE1",
"description": "CREATING AN ASSET",
Expand All @@ -341,7 +321,7 @@ default (unlocked) >>> blockchain_get_asset XMO
"withdrawal_fee": 0,
"market_fee_rate": 0,
"collected_fees": 0,
"current_supply": 2000,
"current_supply": 22000,
"registration_date": "2014-06-20T14:40:20",
"last_update": "2014-06-20T14:41:40"
}
Expand Down

0 comments on commit a749442

Please sign in to comment.