/ops-test-services

Test publicly exposed services to ensure consistency

Primary LanguageRuby

WebPlatform operations services test runner

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

TODO

  1. yaml reader to describe HTTP requests parameters and expectations
  2. Test in a way such that we can make requests with direct IP address and what Host header to use
  3. Organize tests by domain names
  4. Ensure tests covers both direct origin server AND Varnish/Fastly
  5. Setup Travis CI?

Requirements

Reference