diff options
author | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-03-14 15:49:31 +0100 |
---|---|---|
committer | Aleš Mrázek <ales.mrazek@nic.cz> | 2024-09-09 14:28:32 +0200 |
commit | 39e45bc40a70fd81ab3205a8ae1fa8420b89efb1 (patch) | |
tree | 3061838deadc84a0cc926a9b21924158aab5b029 /tests | |
parent | datamodel: additional headers for json-schema (diff) | |
download | knot-resolver-39e45bc40a70fd81ab3205a8ae1fa8420b89efb1.tar.xz knot-resolver-39e45bc40a70fd81ab3205a8ae1fa8420b89efb1.zip |
tests: JSON schema packaging tests
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/packaging/interactive/schema.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/packaging/interactive/schema.sh b/tests/packaging/interactive/schema.sh new file mode 100755 index 00000000..3ea45d52 --- /dev/null +++ b/tests/packaging/interactive/schema.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +kresctl schema +if [ "$?" -ne "0" ]; then + echo "Failed to generate JSON schema with 'kresctl'" + exit 1 +fi + +kresctl schema --live +if [ "$?" -ne "0" ]; then + echo "Failed to get JSON schema from the running resolver" + exit 1 +fi |