diff options
Diffstat (limited to 'test/units/testsuite-75.sh')
-rwxr-xr-x | test/units/testsuite-75.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/units/testsuite-75.sh b/test/units/testsuite-75.sh index 5445c152c9..8bc9291f7a 100755 --- a/test/units/testsuite-75.sh +++ b/test/units/testsuite-75.sh @@ -593,4 +593,45 @@ else echo "nftables is not installed. Skipped serve stale feature test." fi +### Test resolvectl show-server-state ### +run resolvectl show-server-state +grep -qF "10.0.0.1" "$RUN_OUT" +grep -qF "Interface" "$RUN_OUT" + +run resolvectl show-server-state --json=short +grep -qF "10.0.0.1" "$RUN_OUT" +grep -qF "interface" "$RUN_OUT" + +run resolvectl show-server-state --json=pretty +grep -qF "10.0.0.1" "$RUN_OUT" +grep -qF "interface" "$RUN_OUT" + +### Test resolvectl statistics ### +run resolvectl statistics +grep -qF "Transactions" "$RUN_OUT" +grep -qF "Cache" "$RUN_OUT" +grep -qF "Failure Transactions" "$RUN_OUT" +grep -qF "DNSSEC Verdicts" "$RUN_OUT" + +run resolvectl statistics --json=short +grep -qF "transactions" "$RUN_OUT" +grep -qF "cache" "$RUN_OUT" +grep -qF "dnssec" "$RUN_OUT" + +run resolvectl statistics --json=pretty +grep -qF "transactions" "$RUN_OUT" +grep -qF "cache" "$RUN_OUT" +grep -qF "dnssec" "$RUN_OUT" + +### Test resolvectl reset-statistics ### +run resolvectl reset-statistics + +run resolvectl reset-statistics --json=pretty +grep -qF "success" "$RUN_OUT" +grep -qF "true" "$RUN_OUT" + +run resolvectl reset-statistics --json=short +grep -qF "success" "$RUN_OUT" +grep -qF "true" "$RUN_OUT" + touch /testok |