Skip to content
Snippets Groups Projects
Commit 38c6838f authored by ale's avatar ale
Browse files

Add a small document on testing

parent 394be7af
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ and in README files for individual Ansible roles: ...@@ -42,6 +42,7 @@ and in README files for individual Ansible roles:
* [Service discovery protocol](docs/service_mesh.md) * [Service discovery protocol](docs/service_mesh.md)
* [HTTP router](docs/http_router.md) * [HTTP router](docs/http_router.md)
* [Docker usage](roles/docker/README.md) * [Docker usage](roles/docker/README.md)
* [Testing](docs/testing.md)
### Built-in services documentation ### Built-in services documentation
......
Testing
===
This repository contains some integration tests that use Vagrant to
spin up virtual machines and run Ansible against them. The virtual
machines will be destroyed and re-created every time the tests run, so
it would be a good idea to use a local caching proxy for Debian
packages (such as *apt-cacher-ng*).
## Networking
The virtual machines used in tests make use of the 192.168.10.0/24
network. If it is already in use by your local environment, you're
going to have trouble unfortunately. On this network, the local (host)
machine will have the address 192.168.10.1.
## Running tests
To run a test, go to the *test* subdirectory of this repository, and
run the *run-test.sh* command, with the name of the subdirectory
containing the test environment:
```
cd test
./run-test.sh --apt-proxy 192.168.10.1:3142 test-base
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment