PDOK Docker image for OGC API - Features Compliance Test Suite for command-line use, with additional features:
- pass service url as command-line argument
- when passing
-exitOnFail
flag, return code0
if test suite passes all tests, otherwise1
(instead of always returning0
)
docker run -t -v "$(pwd):/mnt" pdok/ets-ogcapi-features10-docker:latest https://api.pdok.nl/geonovum/oaf/v1_0/ --generateHtmlReport true --outputDir /mnt/output --exitOnFail --prettyPrint
URL=https://api.pdok.nl/geonovum/oaf/v1_0/
cat > ./test-run-props.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties version="1.0">
<comment>Test run arguments</comment>
<entry key="iut">${URL}</entry>
</properties>
EOF
docker run -v "$(pwd):/mnt" pdok/ets-ogcapi-features10-docker:latest /mnt/test-run-props.xml --generateHtmlReport true --outputDir /mnt/output