summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAleš Mrázek <ales.mrazek@nic.cz>2024-03-14 15:49:31 +0100
committerAleš Mrázek <ales.mrazek@nic.cz>2024-09-09 14:28:32 +0200
commit39e45bc40a70fd81ab3205a8ae1fa8420b89efb1 (patch)
tree3061838deadc84a0cc926a9b21924158aab5b029 /tests
parentdatamodel: additional headers for json-schema (diff)
downloadknot-resolver-39e45bc40a70fd81ab3205a8ae1fa8420b89efb1.tar.xz
knot-resolver-39e45bc40a70fd81ab3205a8ae1fa8420b89efb1.zip
tests: JSON schema packaging tests
Diffstat (limited to 'tests')
-rwxr-xr-xtests/packaging/interactive/schema.sh15
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