test: implemented the interop test with rust libp2p #1143
test: implemented the interop test with rust libp2p #1143ItshMoh wants to merge 6 commits intolibp2p:mainfrom
Conversation
|
@ItshMoh : Hi Mohan. Thanks for taking this on — this is a much-needed gap to fill, and the proposal looks solid 👍 A few important pointers to help you align this correctly, especially since you’re new to the libp2p codebase: 📍 Where interop tests should liveEven though there’s a placeholder under That repo is the canonical home for:
Please follow the structure and conventions documented here: 📦 py-libp2p PR scopePRs to
Test plans and cross-stack validation logic should stay out of the core repo and live in 🧭 On the approach
🤝 Maintainers sync (important for new contributors)Since you’re a new contributor, please try to join the libp2p maintainers meeting every Thursday.
Overall, this is a strong and well-motivated contribution. Once this is set up in CCing @sumanjeet0012 , @acul71 and @dhuseby |
summary
fixes #1142
Implements interoperability tests between
py-libp2pandrust-libp2pusing the/ipfs/ping/1.0.0protocol over TCP transport.What's Included
New Files
tests/interop/rust_libp2p/test_ping_interop.py- Python test that connects to a Rust ping server and validates RTT responsestests/interop/rust_libp2p/conftest.py- Pytest fixtures for building and managing the Rust server lifecycletests/interop/rust_libp2p/rust_node/- Rust ping server implementation usingrust-libp2ptests/interop/rust_libp2p/README.md- Documentation with prerequisites and instructionsTest Coverage
The test verifies:
/ipfs/ping/1.0.0selected via multistream-selectHow to Run
cd tests/interop/rust_libp2p pytest -v -s --log-cli-level=INFOCute Animal Picture