Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 918 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 918 Bytes

Tests

These are integration tests. They're written in python, and use docker compose to orchestrate an instance of nginx containing the module under test, and other services reverse proxied by nginx.

See the readme file in cases/ for usage information.

The docker image of the tests is controlled by nginx-version-info. The WAF environment variable controls whether the tests related to AppSec are run (value ON) or skipped (otherwise).

Files

  • bin/ contains scripts for running and developing the tests. Notably, bin/run runs the tests.
  • cases/ contains the actual python test cases that run tests against the docker compose setup.
  • services/ contains the dockerfiles for the docker compose services, and other data relevant to the services.
  • docker-compose.yaml defines the services used by the tests.