This directory contains the source code for a binary which can be run as a
container on a network device to run the feature/container tests. It exposes
a gRPC API that can be interacted with through ONDATRA in order to validate
connectivity to specific gRPC services.
The build directory contains a Dockerfile for building the container.
The proto/cntr directory contains a protobuf that defines the gRPC API
exposed by the container for test purposes.
Binary cntrserver implements the Cntr (Container) service which can be used to test base
functionalities of a container hosting device. It implements a service that can:
dial a remote address as specified by the Dial RPC
respond to a ping request with a specified timestamp.
By running the CNTR server on one machine, A, one can validate:
An external client can connect to a gRPC service running on A.
By running the CNTR server on two machines, A and B, one can:
Validate that A can dial B via gRPC by calling the Dial RPC on A with B's address.
Validate that A can send an RPC to B via gRPC by calling the Dial RPC on A with B's address and ping.