I wanted to define a “ghost-node” which would allow testing both pub-sub and 1-1 communication between nodes of different type. The ghost-node would behave as a node type X and help in testing node type Y that expects certain messages from X and publishes certain messages to X via pub-sub and 1-1 commn.
This is similar to the wire-tap pattern (https://www.enterpriseintegrationpatterns.com/patterns/messaging/WireTap.html).
All nodes are docker containers. I was wondering if there is something out-of-the-box that libp2p already for such integration testing with dockers.