Skip to content

Commit

Permalink
Updated fees in cucumber tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdbondi committed Oct 18, 2021
1 parent 411f209 commit 90e21f5
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 67 deletions.
42 changes: 21 additions & 21 deletions integration_tests/features/Mempool.feature
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ Feature: Mempool
When I mine a block on SENDER with coinbase CB2
When I mine a block on SENDER with coinbase CB3
When I mine 4 blocks on SENDER
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX2 spending CB2 to UTX2 with fee 100
When I create a custom fee transaction TX3 spending CB3 to UTX3 with fee 90
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 16
When I create a custom fee transaction TX2 spending CB2 to UTX2 with fee 20
When I create a custom fee transaction TX3 spending CB3 to UTX3 with fee 18
When I submit transaction TX1 to SENDER
When I submit transaction TX2 to SENDER
When I submit transaction TX3 to SENDER
Expand All @@ -68,8 +68,8 @@ Feature: Mempool
And I have a base node SENDER connected to all seed nodes
When I mine a block on SENDER with coinbase CB1
When I mine 4 blocks on SENDER
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX2 spending CB1 to UTX2 with fee 100
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 16
When I create a custom fee transaction TX2 spending CB1 to UTX2 with fee 20
When I submit transaction TX1 to SENDER
When I submit transaction TX2 to SENDER
Then SENDER has TX1 in MEMPOOL state
Expand All @@ -85,8 +85,8 @@ Feature: Mempool
And I have a base node SENDER connected to all seed nodes
When I mine a block on SENDER with coinbase CB1
When I mine 4 blocks on SENDER
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX2 spending CB1 to UTX2 with fee 100
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 16
When I create a custom fee transaction TX2 spending CB1 to UTX2 with fee 20
When I submit transaction TX1 to SENDER
When I submit transaction TX2 to SENDER
Then SENDER has TX1 in MEMPOOL state
Expand All @@ -106,8 +106,8 @@ Feature: Mempool
And I have a base node NODE_B connected to seed SEED_B
When I mine a block on NODE_B with coinbase CB_B
When I mine 10 blocks on NODE_B
When I create a custom fee transaction TXA spending CB_A to UTX1 with fee 80
When I create a custom fee transaction TXB spending CB_B to UTX1 with fee 80
When I create a custom fee transaction TXA spending CB_A to UTX1 with fee 16
When I create a custom fee transaction TXB spending CB_B to UTX1 with fee 16
When I submit transaction TXA to NODE_A
When I submit transaction TXB to NODE_B
Then NODE_A has TXA in MEMPOOL state
Expand All @@ -126,12 +126,12 @@ Feature: Mempool
When I mine a block on SENDER with coinbase CB1
When I mine a block on SENDER with coinbase CB2
When I mine 4 blocks on SENDER
When I create a custom fee transaction TX01 spending CB1 to UTX01 with fee 100
When I create a custom fee transaction TX02 spending UTX01 to UTX02 with fee 100
When I create a custom fee transaction TX03 spending UTX02 to UTX03 with fee 100
When I create a custom fee transaction TX11 spending CB2 to UTX11 with fee 100
When I create a custom fee transaction TX12 spending UTX11 to UTX12 with fee 100
When I create a custom fee transaction TX13 spending UTX12 to UTX13 with fee 100
When I create a custom fee transaction TX01 spending CB1 to UTX01 with fee 20
When I create a custom fee transaction TX02 spending UTX01 to UTX02 with fee 20
When I create a custom fee transaction TX03 spending UTX02 to UTX03 with fee 20
When I create a custom fee transaction TX11 spending CB2 to UTX11 with fee 20
When I create a custom fee transaction TX12 spending UTX11 to UTX12 with fee 20
When I create a custom fee transaction TX13 spending UTX12 to UTX13 with fee 20
When I submit transaction TX01 to SENDER
When I submit transaction TX02 to SENDER
When I submit transaction TX03 to SENDER
Expand All @@ -157,11 +157,11 @@ Feature: Mempool
And I have a base node BN1 connected to all seed nodes
When I mine a block on BN1 with coinbase CB1
When I mine 5 blocks on BN1
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX2 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX3 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX4 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX5 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 16
When I create a custom fee transaction TX2 spending CB1 to UTX1 with fee 16
When I create a custom fee transaction TX3 spending CB1 to UTX1 with fee 16
When I create a custom fee transaction TX4 spending CB1 to UTX1 with fee 16
When I create a custom fee transaction TX5 spending CB1 to UTX1 with fee 16
When I submit transaction TX1 to BN1
When I submit transaction TX2 to BN1
When I submit transaction TX3 to BN1
Expand All @@ -174,7 +174,7 @@ Feature: Mempool
And I have a base node BN1 connected to all seed nodes
When I mine a block on BN1 with coinbase CB1
When I mine 2 blocks on BN1
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 80
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 16
When I submit transaction TX1 to BN1
Then I wait until base node BN1 has 1 unconfirmed transactions in its mempool
When I mine 1 blocks on BN1
Expand Down
12 changes: 6 additions & 6 deletions integration_tests/features/Reorgs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ Feature: Reorgs
When I mine 14 blocks on NODE1
When I mine a block on NODE1 with coinbase CB1
When I mine 4 blocks on NODE1
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 100
When I create a custom fee transaction TX11 spending UTX1 to UTX11 with fee 100
When I create a custom fee transaction TX1 spending CB1 to UTX1 with fee 20
When I create a custom fee transaction TX11 spending UTX1 to UTX11 with fee 20
When I submit transaction TX1 to NODE1
When I submit transaction TX11 to NODE1
When I mine 1 blocks on NODE1
Expand All @@ -113,8 +113,8 @@ Feature: Reorgs
And node NODE2 is at height 20
When I mine a block on NODE2 with coinbase CB2
When I mine 3 blocks on NODE2
When I create a custom fee transaction TX2 spending CB2 to UTX2 with fee 100
When I create a custom fee transaction TX21 spending UTX2 to UTX21 with fee 100
When I create a custom fee transaction TX2 spending CB2 to UTX2 with fee 20
When I create a custom fee transaction TX21 spending UTX2 to UTX21 with fee 20
When I submit transaction TX2 to NODE2
When I submit transaction TX21 to NODE2
When I mine 1 blocks on NODE2
Expand All @@ -126,8 +126,8 @@ Feature: Reorgs
And node NODE1 is at height 20
When I mine a block on NODE1 with coinbase CB3
When I mine 3 blocks on NODE1
When I create a custom fee transaction TX3 spending CB3 to UTX3 with fee 100
When I create a custom fee transaction TX31 spending UTX3 to UTX31 with fee 100
When I create a custom fee transaction TX3 spending CB3 to UTX3 with fee 20
When I create a custom fee transaction TX31 spending UTX3 to UTX31 with fee 20
When I submit transaction TX3 to NODE1
When I submit transaction TX31 to NODE1
When I mine 1 blocks on NODE1
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/features/TransactionInfo.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Scenario: Get Transaction Info
Then all nodes are at height 4
Then I list all COINBASE transactions for wallet WALLET_A
When I wait for wallet WALLET_A to have at least 1002000 uT
And I send 1000000 uT from wallet WALLET_A to wallet WALLET_B at fee 100
And I send 1000000 uT from wallet WALLET_A to wallet WALLET_B at fee 20
Then wallet WALLET_A detects all transactions are at least Pending
Then wallet WALLET_B detects all transactions are at least Pending
Then wallet WALLET_A detects all transactions are at least Completed
Expand Down
10 changes: 5 additions & 5 deletions integration_tests/features/WalletFFI.feature
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ Feature: Wallet FFI
And mining node MINER mines 10 blocks
Then I wait for wallet SENDER to have at least 1000000 uT
And I have a ffi wallet FFI_WALLET connected to base node BASE
And I send 2000000 uT from wallet SENDER to wallet FFI_WALLET at fee 100
And I send 2000000 uT from wallet SENDER to wallet FFI_WALLET at fee 20
And wallet SENDER detects all transactions are at least Broadcast
And mining node MINER mines 10 blocks
Then I wait for ffi wallet FFI_WALLET to have at least 1000000 uT
And I have wallet RECEIVER connected to base node BASE
And I stop wallet RECEIVER
And I send 1000000 uT from ffi wallet FFI_WALLET to wallet RECEIVER at fee 100
And I send 1000000 uT from ffi wallet FFI_WALLET to wallet RECEIVER at fee 20
Then I wait for ffi wallet FFI_WALLET to have 1 pending outbound transaction
Then I cancel all outbound transactions on ffi wallet FFI_WALLET and it will cancel 1 transaction
And I stop ffi wallet FFI_WALLET
Expand All @@ -84,11 +84,11 @@ Feature: Wallet FFI
And mining node MINER mines 10 blocks
Then I wait for wallet SENDER to have at least 1000000 uT
And I have a ffi wallet FFI_WALLET connected to base node BASE
And I send 2000000 uT from wallet SENDER to wallet FFI_WALLET at fee 100
And I send 2000000 uT from wallet SENDER to wallet FFI_WALLET at fee 20
And mining node MINER mines 10 blocks
Then I wait for ffi wallet FFI_WALLET to have at least 1000000 uT
And I have wallet RECEIVER connected to base node BASE
And I send 1000000 uT from ffi wallet FFI_WALLET to wallet RECEIVER at fee 100
And I send 1000000 uT from ffi wallet FFI_WALLET to wallet RECEIVER at fee 20
And mining node MINER mines 10 blocks
Then I wait for wallet RECEIVER to have at least 1000000 uT
And I have 1 received and 1 send transaction in ffi wallet FFI_WALLET
Expand All @@ -107,7 +107,7 @@ Feature: Wallet FFI
And I have a ffi wallet FFI_WALLET connected to base node BASE
And I stop ffi wallet FFI_WALLET
And I wait 10 seconds
And I send 2000000 uT from wallet SENDER to wallet FFI_WALLET at fee 100
And I send 2000000 uT from wallet SENDER to wallet FFI_WALLET at fee 20
And I wait 5 seconds
# Broken step with reason base node is not persisted
# Log:
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/features/WalletMonitoring.feature
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Feature: Wallet Monitoring
Then node NODE_A1 is at height 10
Then wallet WALLET_A1 detects at least 7 coinbase transactions as Mined_Confirmed
# Use 7 of the 10 coinbase UTXOs in transactions (others require 3 confirmations)
And I multi-send 7 transactions of 1000000 uT from wallet WALLET_A1 to wallet WALLET_A2 at fee 100
And I multi-send 7 transactions of 1000000 uT from wallet WALLET_A1 to wallet WALLET_A2 at fee 20
Then wallet WALLET_A1 detects all transactions are at least Broadcast
When I mine 100 blocks on SEED_A
Then node SEED_A is at height 110
Expand All @@ -88,7 +88,7 @@ Feature: Wallet Monitoring
Then node NODE_B1 is at height 10
Then wallet WALLET_B1 detects at least 7 coinbase transactions as Mined_Confirmed
# Use 7 of the 10 coinbase UTXOs in transactions (others require 3 confirmations)
And I multi-send 7 transactions of 1000000 uT from wallet WALLET_B1 to wallet WALLET_B2 at fee 100
And I multi-send 7 transactions of 1000000 uT from wallet WALLET_B1 to wallet WALLET_B2 at fee 20
Then wallet WALLET_B1 detects all transactions are at least Broadcast
When I mine 100 blocks on SEED_B
Then node SEED_B is at height 110
Expand Down
10 changes: 5 additions & 5 deletions integration_tests/features/WalletRecovery.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Feature: Wallet Recovery
When I recover wallet WALLET_A into wallet WALLET_B connected to all seed nodes
Then wallet WALLET_A and wallet WALLET_B have the same balance
And I have wallet WALLET_C connected to all seed nodes
And I send 100000 uT from wallet WALLET_B to wallet WALLET_C at fee 100
And I send 100000 uT from wallet WALLET_B to wallet WALLET_C at fee 20
Then wallet WALLET_B detects all transactions are at least Broadcast
When I mine 5 blocks on NODE
Then all nodes are at height 20
Expand Down Expand Up @@ -54,19 +54,19 @@ Feature: Wallet Recovery
And I have wallet WALLET_B connected to all seed nodes
And I stop wallet WALLET_B
# Send 2 one-sided payments to WALLET_B so it can spend them in two cases
Then I send a one-sided transaction of 1000000 uT from WALLET_A to WALLET_B at fee 100
Then I send a one-sided transaction of 1000000 uT from WALLET_A to WALLET_B at fee 100
Then I send a one-sided transaction of 1000000 uT from WALLET_A to WALLET_B at fee 20
Then I send a one-sided transaction of 1000000 uT from WALLET_A to WALLET_B at fee 20
When mining node MINER mines 5 blocks
Then all nodes are at height 15
When I recover wallet WALLET_B into wallet WALLET_C connected to all seed nodes
Then I wait for wallet WALLET_C to have at least 2000000 uT
# Send one of the recovered outputs back to Wallet A as a one-sided transactions
Then I send a one-sided transaction of 900000 uT from WALLET_C to WALLET_A at fee 100
Then I send a one-sided transaction of 900000 uT from WALLET_C to WALLET_A at fee 20
When mining node MINER mines 5 blocks
Then all nodes are at height 20
Then I wait for wallet WALLET_C to have less than 1100000 uT
# Send the remaining recovered UTXO to self in standard MW transaction
Then I send 1000000 uT from wallet WALLET_C to wallet WALLET_C at fee 100
Then I send 1000000 uT from wallet WALLET_C to wallet WALLET_C at fee 20
Then I wait for wallet WALLET_C to have less than 100000 uT
When mining node MINER mines 5 blocks
Then all nodes are at height 25
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/features/WalletRoutingMechanism.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Scenario Outline: Wallets transacting via specified routing mechanism only
When I wait 1 seconds
When I wait for wallet WALLET_A to have at least 100000000 uT
#When I print the world
And I multi-send 1000000 uT from wallet WALLET_A to all wallets at fee 100
And I multi-send 1000000 uT from wallet WALLET_A to all wallets at fee 20
Then all wallets detect all transactions are at least Pending
Then all wallets detect all transactions are at least Completed
Then all wallets detect all transactions are at least Broadcast
Expand Down
Loading

0 comments on commit 90e21f5

Please sign in to comment.