1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

test: exercise bypass mode on the sd-resolved stub

A basic test will verify that we provide the right flags.
This commit is contained in:
Ronan Pigott 2024-10-10 22:40:03 -07:00
parent fa02d04ee9
commit b7b1c50c6a

View File

@ -517,8 +517,17 @@ testcase_08_resolved() {
grep -qF "fd00:dead:beef:cafe::11" "$RUN_OUT"
grep -qF "authenticated: yes" "$RUN_OUT"
run dig +short signed.test
run dig +nostats signed.test
grep -qF "10.0.0.10" "$RUN_OUT"
grep -q "flags:[^;]* ad" "$RUN_OUT"
run dig +nostats +cd signed.test
grep -qF "10.0.0.10" "$RUN_OUT"
grep -q "flags:[^;]* cd" "$RUN_OUT"
grep -qv "flags:[^;]* ad" "$RUN_OUT"
run dig +nostats +do signed.test
grep -qF "10.0.0.10" "$RUN_OUT"
grep -q "flags:[^;]* ad" "$RUN_OUT"
grep -qv "flags:[^;]* cd" "$RUN_OUT"
run resolvectl query signed.test
grep -qF "signed.test: 10.0.0.10" "$RUN_OUT"
grep -qF "authenticated: yes" "$RUN_OUT"