]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests: JSON schema packaging tests
authorAleš Mrázek <ales.mrazek@nic.cz>
Thu, 14 Mar 2024 14:49:31 +0000 (15:49 +0100)
committerAleš Mrázek <ales.mrazek@nic.cz>
Mon, 9 Sep 2024 12:28:32 +0000 (14:28 +0200)
tests/packaging/interactive/schema.sh [new file with mode: 0755]

diff --git a/tests/packaging/interactive/schema.sh b/tests/packaging/interactive/schema.sh
new file mode 100755 (executable)
index 0000000..3ea45d5
--- /dev/null
@@ -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