Skip to content

Commit a4934c7

Browse files
alesmrazekOto Šťáva
authored and
Oto Šťáva
committed
manager/tests: validate JSON output from "kresctl cache clear --json" command
1 parent 34edbd6 commit a4934c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manager/tests/packaging/interactive/cache-clear.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ if [ "$?" -ne "0" ]; then
77
exit 1
88
fi
99

10-
# clear just example.com. AAAA record
11-
kresctl cache clear --exact-name --rr-type AAAA example.com.
10+
# clear just example.com. AAAA record, get JSON output
11+
kresctl cache clear --json --exact-name --rr-type AAAA example.com. | python3 -m json.tool
1212
if [ "$?" -ne "0" ]; then
13-
echo "Could not clear example.com. AAAA record"
13+
echo "Could not clear example.com. AAAA record or output is not a valid JSON"
1414
exit 1
1515
fi

0 commit comments

Comments
 (0)