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:
parent
fa02d04ee9
commit
b7b1c50c6a
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user