-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description Series of tests based on the synthetic-network framework (a docker tool for simulating "real-life" network conditions). All introduced tests attempts to modify nodes connectivity (e.g. creating connected subsets of nodes) and verify if both block production and finalization are still possible. Description of how to run these tests is in `e2e-tests/README.md` in section #Running e2e-tests that depend on synthetic-network, e.g. `sync`, `high_latency` . ## Type of change - New feature (non-breaking change which adds functionality) # Checklist: <!-- delete when not applicable to your PR --> - I have added tests - I have made neccessary updates to the Infrastructure --------- Co-authored-by: Marcin <[email protected]> Co-authored-by: kostekIV <[email protected]> Co-authored-by: Mikolaj Gasior <[email protected]> Co-authored-by: Grzegorz Gawryał <[email protected]> Co-authored-by: timorl <[email protected]> Co-authored-by: timorl <[email protected]> Co-authored-by: timorl <[email protected]>
- Loading branch information
1 parent
94ed410
commit e4e9f4f
Showing
15 changed files
with
961 additions
and
36 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
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
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,83 @@ | ||
services: | ||
Node0: | ||
extends: | ||
file: docker-compose.synthetic-network.yml | ||
service: Node0 | ||
environment: | ||
- CUSTOM_ARGS="--max-nonfinalized-blocks=128" | ||
- RPC_PORT=9943 | ||
|
||
Node1: | ||
extends: | ||
file: docker-compose.synthetic-network.yml | ||
service: Node1 | ||
environment: | ||
- CUSTOM_ARGS="--max-nonfinalized-blocks=128" | ||
- RPC_PORT=9943 | ||
|
||
Node2: | ||
extends: | ||
file: docker-compose.synthetic-network.yml | ||
service: Node2 | ||
environment: | ||
- CUSTOM_ARGS="--max-nonfinalized-blocks=128" | ||
- RPC_PORT=9943 | ||
|
||
Node3: | ||
extends: | ||
file: docker-compose.synthetic-network.yml | ||
service: Node3 | ||
environment: | ||
- CUSTOM_ARGS="--max-nonfinalized-blocks=128" | ||
- RPC_PORT=9943 | ||
|
||
Node4: | ||
extends: | ||
file: docker-compose.synthetic-network.yml | ||
service: Node4 | ||
environment: | ||
- CUSTOM_ARGS="--max-nonfinalized-blocks=128" | ||
- RPC_PORT=9943 | ||
|
||
Node5: | ||
extends: | ||
file: docker-compose.base.yml | ||
service: Node5 | ||
image: aleph-node:syntheticnet | ||
networks: | ||
- synthetic-network | ||
cap_add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
- SYS_PTRACE | ||
environment: | ||
- PUBLIC_VALIDATOR_ADDRESS=Node5:30348 | ||
- BOOT_NODES=/dns4/Node0/tcp/30333/p2p/$BOOTNODE_PEER_ID | ||
- CUSTOM_ARGS="--max-nonfinalized-blocks=128" | ||
- RPC_PORT=9943 | ||
ports: | ||
- 3005:80 | ||
|
||
Node6: | ||
extends: | ||
file: docker-compose.base.yml | ||
service: Node6 | ||
image: aleph-node:syntheticnet | ||
networks: | ||
- synthetic-network | ||
cap_add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
- SYS_PTRACE | ||
environment: | ||
- PUBLIC_VALIDATOR_ADDRESS=Node6:30349 | ||
- BOOT_NODES=/dns4/Node0/tcp/30333/p2p/$BOOTNODE_PEER_ID | ||
- CUSTOM_ARGS="--max-nonfinalized-blocks=128" | ||
- RPC_PORT=9943 | ||
ports: | ||
- 3006:80 | ||
|
||
networks: | ||
synthetic-network: | ||
name: synthetic-network | ||
driver: bridge |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.