The functional test is orchestrated using dockertest Implementation of the test: main.go
The test is made of three docker services:
- pong service is doing nothing, just a stub waiting to receive a ping
- dnstester service is trying to connect to pong using custom dns-names.
- dnsserver will answer all dns requests coming from dnstester and return pongs ip
Execute tests
make functional-tests
exit code will be 0 on success