summaryrefslogtreecommitdiffstats
path: root/manager/tests/packaging/interactive/cache-clear.sh
blob: 377cf5d329685c329459432d557ac308269c1fc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# clear full cache
kresctl cache clear
if [ "$?" -ne "0" ]; then
	echo "Could not clear full cache"
	exit 1
fi

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