mirror of
https://github.com/systemd/systemd.git
synced 2026-08-12 22:17:19 +00:00
test: check that currentServer field is set in resolvectl JSON status
(cherry picked from commit e06ee11150)
This commit is contained in:
committed by
Luca Boccassi
parent
0de941f937
commit
1790788e94
@@ -959,6 +959,9 @@ testcase_10_resolvectl_json() {
|
||||
|
||||
assert_eq "$(resolvectl --json=short nta dns0 | jq -rc '.[0].negativeTrustAnchors | .[0]')" 'bar'
|
||||
assert_eq "$(jq -rc '.[0].negativeTrustAnchors | .[0]' "$status_json")" 'bar'
|
||||
|
||||
# Test that currentServer is non-empty.
|
||||
jq -rce '.[0].currentServer' "$status_json"
|
||||
}
|
||||
|
||||
# Test serve stale feature and NFTSet= if nftables is installed
|
||||
|
||||
Reference in New Issue
Block a user