From: Nick Rosbrook Date: Mon, 19 Jan 2026 18:48:07 +0000 (-0500) Subject: test: check that currentServer field is set in resolvectl JSON status X-Git-Tag: v260-rc1~353^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F40396%2Fhead;p=thirdparty%2Fsystemd.git test: check that currentServer field is set in resolvectl JSON status --- diff --git a/test/units/TEST-75-RESOLVED.sh b/test/units/TEST-75-RESOLVED.sh index 31023ca17a3..47b5fa66601 100755 --- a/test/units/TEST-75-RESOLVED.sh +++ b/test/units/TEST-75-RESOLVED.sh @@ -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