mirror of
https://github.com/systemd/systemd.git
synced 2025-08-30 05:49:54 +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:
@ -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"
|
||||
|
Reference in New Issue
Block a user