STATE: Sandbox, not ready at all!!
Let’s automate tests on webplatform.org services, what’s expected so we can ensure consistency during maintenance and refactoring.
Idea is that we declare à-la-TDD what’s exposed as a "run book" so it both documents what’s expected AND helps us ensure it remains so.
This repository leverages ServerSpec to describe configuration and tests if they are consistent.
If you have the Requirements, you can run in two commands;
make build
make run
Run within the container, note that its basically what Makefile does at run
target but without asking rake
to run;
docker run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp renoirb-serverspec
// ... in container, in the repository mounted as a volume, you can run rake
- yaml reader to describe HTTP requests parameters and expectations
- Test in a way such that we can make requests with direct IP address and what Host header to use
- Organize tests by domain names
- Ensure tests covers both direct origin server AND Varnish/Fastly
- Setup Travis CI?