network/tests: Add conformance testing for litep2p and libp2p (#7361)
This PR implements conformance tests between our network backends
(litep2p and libp2p).
The PR creates a setup for extending testing in the future, while
implementing the following tests:
- connectivity check: Connect litep2p -> libp2p and libp2p -> litep2p
- request response check: Send 32 requests from one backend to the other
- notification check: Send 128 ping pong notifications and 128 from one
backend to the other
cc @paritytech/networking
---------
Signed-off-by:
Alexandru Vasile <alexandru.vasile@parity.io>
Showing
- Cargo.lock 1 addition, 0 deletionsCargo.lock
- substrate/client/network/test/Cargo.toml 1 addition, 0 deletionssubstrate/client/network/test/Cargo.toml
- substrate/client/network/test/src/conformance/high_level.rs 236 additions, 0 deletionssubstrate/client/network/test/src/conformance/high_level.rs
- substrate/client/network/test/src/conformance/mod.rs 20 additions, 0 deletionssubstrate/client/network/test/src/conformance/mod.rs
- substrate/client/network/test/src/conformance/setup.rs 225 additions, 0 deletionssubstrate/client/network/test/src/conformance/setup.rs
- substrate/client/network/test/src/lib.rs 2 additions, 0 deletionssubstrate/client/network/test/src/lib.rs
Please register or sign in to comment