Skip to content
Commit ce08e135 authored by Gonçalo Pestana's avatar Gonçalo Pestana Committed by GitHub
Browse files

Integration tests for staking + election-provider-multi-phase (#12972)



* EPM and staking pallets: Adds new crate for integration tests

a

* Adds ExtBuilder and helpers with initial conditions assertions

* removes account helpers; adds staking, session, etc genesis

* Adds kusama incident test case

* Prepare for slashing test

* Adds solution submission

* slash_through_offending_threshold

* Renames e2e integration tests dir and crate

* consistently slash 10% of validator set

* finishes continous_slashes_below_offending_threshold test

* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs

Co-authored-by: default avatarAnkan <[email protected]>

* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs

Co-authored-by: default avatarAnkan <[email protected]>

* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs

Co-authored-by: default avatarKian Paimani <[email protected]>

* Update frame/election-provider-multi-phase/test-staking-e2e/src/mock.rs

Co-authored-by: default avatarKian Paimani <[email protected]>

* Update frame/election-provider-multi-phase/test-staking-e2e/src/mock.rs

Co-authored-by: default avatarKian Paimani <[email protected]>

* Update frame/election-provider-multi-phase/test-staking-e2e/src/mock.rs

Co-authored-by: default avatarKian Paimani <[email protected]>

* mock fixes

* Additional checks to delayed solution eras and mock fixes

* nits and addresses review comments; splits ext_builder into one per pallet

* helper to set balances ext builder

* bring up mock.rs to master

* integration test fixes and additions

---------

Co-authored-by: default avatarAnkan <[email protected]>
Co-authored-by: default avatarKian Paimani <[email protected]>
parent 3e73b755
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment