Skip to content

Commit

Permalink
test: speed up stake_supplier.feature
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Sep 11, 2024
1 parent 3a7315c commit 9706877
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions e2e/tests/stake_supplier.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ Feature: Stake Supplier Namespace

Scenario: User can unstake a Supplier
Given the user has the pocketd binary installed
# Reduce the application unbonding period to avoid timeouts and speed up scenarios.
And an authz grant from the "gov" "module" account to the "pnf" "user" account for each module MsgUpdateParam message exists
# NB: If new parameters are added to the shared module, they
# MUST be included here; otherwise, this step will fail.
And the "pnf" account sends an authz exec message to update all "shared" module params
| name | value | type |
| num_blocks_per_session | 2 | int64 |
| grace_period_end_offset_blocks | 0 | int64 |
| claim_window_open_offset_blocks | 0 | int64 |
| claim_window_close_offset_blocks | 1 | int64 |
| proof_window_open_offset_blocks | 0 | int64 |
| proof_window_close_offset_blocks | 1 | int64 |
| supplier_unbonding_period_sessions | 1 | int64 |
| application_unbonding_period_sessions | 1 | int64 |
And all "shared" module params should be updated
And the "supplier" for account "supplier2" is staked with "1000070" uPOKT
And an account exists for "supplier2"
When the user unstakes a "supplier" from the account "supplier2"
Expand All @@ -27,6 +42,21 @@ Feature: Stake Supplier Namespace

Scenario: User can restake a Supplier waiting for it to become active again
Given the user has the pocketd binary installed
# Reduce the application unbonding period to avoid timeouts and speed up scenarios.
And an authz grant from the "gov" "module" account to the "pnf" "user" account for each module MsgUpdateParam message exists
# NB: If new parameters are added to the shared module, they
# MUST be included here; otherwise, this step will fail.
And the "pnf" account sends an authz exec message to update all "shared" module params
| name | value | type |
| num_blocks_per_session | 2 | int64 |
| grace_period_end_offset_blocks | 0 | int64 |
| claim_window_open_offset_blocks | 0 | int64 |
| claim_window_close_offset_blocks | 1 | int64 |
| proof_window_open_offset_blocks | 0 | int64 |
| proof_window_close_offset_blocks | 1 | int64 |
| supplier_unbonding_period_sessions | 1 | int64 |
| application_unbonding_period_sessions | 1 | int64 |
And all "shared" module params should be updated
And the user verifies the "supplier" for account "supplier2" is not staked
Then the user stakes a "supplier" with "1000070" uPOKT for "anvil" service from the account "supplier2"
And the user should wait for the "supplier" module "StakeSupplier" message to be submitted
Expand Down

0 comments on commit 9706877

Please sign in to comment.