File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed
polkadot/zombienet_tests/functional Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ [settings ]
2+ timeout = 1000
3+ bootnode = true
4+
5+ [relaychain .genesis .runtime .configuration .config ]
6+ max_validators_per_core = 1
7+ needed_approvals = 2
8+ group_rotation_frequency = 10
9+
10+ [relaychain ]
11+ default_image = " {{ZOMBIENET_INTEGRATION_TEST_IMAGE}}"
12+ chain = " westend-local" # for the disabling to take an effect
13+ default_command = " polkadot"
14+
15+ [relaychain .default_resources ]
16+ limits = { memory = " 4G" , cpu = " 2" }
17+ requests = { memory = " 2G" , cpu = " 1" }
18+
19+ [[relaychain .node_groups ]]
20+ name = " honest-validator"
21+ count = 3
22+ args = [" -lparachain=debug" ]
23+
24+ [[relaychain .node_groups ]]
25+ image = " {{MALUS_IMAGE}}"
26+ name = " malus-validator"
27+ command = " malus suggest-garbage-candidate"
28+ args = [" -lMALUS=trace" ]
29+ count = 1
30+
31+ [[parachains ]]
32+ id = 1000
33+ cumulus_based = true
34+
35+ [parachains .collator ]
36+ name = " alice"
37+ command = " polkadot-parachain"
38+ image = " {{CUMULUS_IMAGE}}"
39+ args = [" -lparachain=debug" ]
Original file line number Diff line number Diff line change 1+ Description: Test validator disabling effects
2+ Network: ./0007-validator-disabling.toml
3+ Creds: config
4+
5+ # Ensure nodes are up and running
6+ honest-validator: reports node_roles is 4
7+
8+ # Ensure parachain is registered
9+ honest-validator: parachain 1000 is registered within 100 seconds
10+
11+ # Ensure parachain made progress
12+ honest-validator: parachain 1000 block height is at least 1 within 300 seconds
13+
14+ # Wait for the dispute
15+ honest-validator-1: reports parachain_candidate_disputes_total is at least 1 within 300 seconds
16+
17+ # Disputes should conclude
18+ honest-validator: reports polkadot_parachain_candidate_dispute_concluded{validity="invalid"} is at least 1 within 200 seconds
19+
20+ # Wait for a few blocks for the disabling to take place.
21+ honest-validator: log line contains "Disabled validators detected" within 180 seconds
You can’t perform that action at this time.
0 commit comments