API tests for the demo configuration.
These tests are data-specific, so it does not make sense to use them with other configurations or APIs.
- filter-queries
Validates the correct implementation of filters using the Daraa API and CShapes API.
The easiest way to execute the tests is by running the docker image:
docker run --rm -t ghcr.io/ldproxy/demo-tests:nextBy default the tests are executed against the official deployment at https://demo.ldproxy.net.
The default can be overriden using the environment variable CATS_API:
docker run --rm -t \
-e CATS_API=https://my-ldproxy/demo \
ghcr.io/ldproxy/demo-tests:nextTo only execute a single test project, for example filter-queries:
docker run --rm -t \
-e CATS_API=https://my-ldproxy/demo \
-e FILTER_QUERIES=true \
ghcr.io/ldproxy/demo-tests:nextIf you want to access the generated HTML report, you can use a volume or a bind mount, for example to the current directory:
docker run --rm -t \
-e CATS_API=https://my-ldproxy/demo \
-e FILTER_QUERIES=true \
-v ./reports:/reports \
ghcr.io/ldproxy/demo-tests:nextTo execute the tests from the source you need Node.js. First install the dependencies:
npm installTo execute all test projects against a local ldproxy:
CATS_API=http://localhost:7080/rest/services npm run allTo execute a single test project, for example filter-queries:
npm run filter-queriesAn HTML report will be saved to the reports directory.