tree: dd78ec906672d0bd86ccf89d9d17d9e0ae8911dd [path history] [tgz]
  1. docker-integration-tests/
  2. README.md
  3. run-docker-integration-test.sh
infrastructure/test/integration/README.md

Docker Integration Tests

The Docker Integration Tests are designed to run in a Docker container with Traffic Ops. Traffic Ops has the locations of all other CDN components.

Thus, an integration test for Traffic Ops should simply query localhost; an integration test for any other component should get that component's IP from Traffic Ops, and subsequently query that IP.

Running the Integration Tests

To run the integration tests, set up Traffic Ops in Docker (see https://github.com/apache/trafficcontrol/tree/master/infrastructure/docker/README.md), and run run-docker-integration-test.sh.

Creating a Test

To create a new integration test, create an executable file -- it can be a shell script, Go binary, Perl script, etc -- and place it in /infrastructure/test/integration/docker-integration-tests/.

Your executable should:

That's it! The run-docker-integration-test.sh script will automatically run your executable in the Docker Traffic Ops container, and report its failures.