Elastic scaling: add e2e test (#3929)

On top of https://github.com/paritytech/polkadot-sdk/pull/3879

I've also moved the previous test where we ensure multiple cores per
para doesn't break non elastic parachains.

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: Javier Viola <363911+pepoviola@users.noreply.github.com>
This commit is contained in:
Andrei Sandu
2024-04-05 12:06:43 +03:00
committed by GitHub
parent 5fb4397810
commit 0dc0d407c1
6 changed files with 86 additions and 7 deletions
@@ -0,0 +1,20 @@
Description: Test that a paraid acquiring multiple cores does not brick itself if ElasticScalingMVP feature is enabled in genesis
Network: ./0002-elastic-scaling-doesnt-break-parachains.toml
Creds: config
# Check authority status.
validator: reports node_roles is 4
validator: reports substrate_block_height{status="finalized"} is at least 10 within 100 seconds
# Ensure parachain was able to make progress.
validator: parachain 2000 block height is at least 10 within 200 seconds
# Register the second core assigned to this parachain.
alice: js-script ./assign-core.js with "2000,0" return is 0 within 600 seconds
alice: js-script ./assign-core.js with "2000,1" return is 0 within 600 seconds
validator: reports substrate_block_height{status="finalized"} is at least 35 within 100 seconds
# Ensure parachain is now making progress.
validator: parachain 2000 block height is at least 30 within 200 seconds