-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add multiple networks CI test + example
- Loading branch information
Showing
5 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Description: Multiple Networks test | ||
Network: ./0000-test-config-small-network.toml | ||
Network: ./0003-big-network.toml | ||
Creds: config | ||
|
||
# 0000-test-config-small-network - metrics | ||
alice: reports node_roles is 4 | ||
alice: reports sub_libp2p_is_major_syncing is 0 | ||
|
||
# 0000-test-config-small-network - logs | ||
bob: log line matches glob "*rted #1*" within 10 seconds | ||
bob: log line matches "Imported #[0-9]+" within 10 seconds | ||
|
||
# 0003-big-network - metrics | ||
a: reports node_roles is 4 | ||
b: reports sub_libp2p_is_major_syncing is 0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Description: Multiple Networks test | ||
Network: ./0014-network-1.toml | ||
Network: ./0014-network-2.toml | ||
Creds: config | ||
|
||
# network-1 - metrics | ||
alice: reports node_roles is 4 | ||
alice: reports sub_libp2p_is_major_syncing is 0 | ||
|
||
# network-1 - logs | ||
bob: log line matches glob "*rted #1*" within 10 seconds | ||
bob: log line matches "Imported #[0-9]+" within 10 seconds | ||
|
||
# network-2 - metrics | ||
a: reports node_roles is 4 | ||
b: reports sub_libp2p_is_major_syncing is 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[relaychain] | ||
default_image = "docker.io/parity/polkadot:latest" | ||
default_command = "polkadot" | ||
default_args = [ "-lparachain=debug" ] | ||
|
||
chain = "rococo-local" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
image = "docker.io/parity/polkadot:latest" | ||
validator = true | ||
args = ["--database=paritydb-experimental"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[relaychain] | ||
default_image = "docker.io/parity/polkadot:latest" | ||
default_command = "polkadot" | ||
default_args = [ "-lparachain=debug" ] | ||
|
||
chain = "rococo-local" | ||
|
||
[[relaychain.node_groups]] | ||
name = "a" | ||
args = [ "-lparachain=debug", "--database=paritydb-experimental" ] | ||
count = 5 | ||
|
||
[[relaychain.node_groups]] | ||
name = "b" | ||
count = 5 | ||
|
||
[[parachains]] | ||
id = 100 | ||
|
||
[[parachains.collator_groups]] | ||
count = 2 | ||
[parachains.collator_groups.collator] | ||
name = "collator" | ||
command = "polkadot-parachain" | ||
image = "docker.io/parity/polkadot-parachain:latest" |