Skip to content
Snippets Groups Projects
Commit 466a2039 authored by Aleš Mrázek's avatar Aleš Mrázek
Browse files

manager/tests: simple test for /cache-clear API endpoint

parent 13449aa8
No related branches found
No related tags found
1 merge request!1491manager: cache-clear command via HTTP API
#!/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
kresctl cache-clear --exact-name --rr-type AAAA example.com.
if [ "$?" -ne "0" ]; then
echo "Could not clear example.com. AAAA record"
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment