resolved: fixed bugs reported in varlink statistics (#28796)

Fixes https://github.com/systemd/systemd/issues/28791

Follow-up for bc837621a3
This commit is contained in:
Kiran Vemula
2023-08-15 11:45:58 +01:00
committed by GitHub
parent 5007942477
commit a67e5c6e37
7 changed files with 45 additions and 65 deletions
+2 -6
View File
@@ -600,11 +600,11 @@ 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"
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"
grep -qF "Interface" "$RUN_OUT"
### Test resolvectl statistics ###
run resolvectl statistics
@@ -627,11 +627,7 @@ grep -qF "dnssec" "$RUN_OUT"
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