Merge pull request #30203 from yuwata/resolve-dump-cache
resolve: fix varlink message verification
This commit is contained in:
@@ -14,7 +14,6 @@ ExecStart=sh -xec 'echo 0 >/sys/fs/selinux/enforce; fixfiles -f -F relabel; rm /
|
||||
Type=oneshot
|
||||
TimeoutSec=infinity
|
||||
RemainAfterExit=yes
|
||||
StandardOutput=journal+console
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
||||
|
||||
@@ -7,5 +7,5 @@ OnFailureJobMode=replace-irreversibly
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -x -c 'systemctl poweroff --no-block'
|
||||
ExecStart=/usr/lib/systemd/tests/testdata/units/end.sh
|
||||
TimeoutStartSec=5m
|
||||
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
set -eux
|
||||
set -o pipefail
|
||||
|
||||
(! journalctl -q -o short-monotonic --grep "didn't pass validation" >>/failed)
|
||||
|
||||
systemctl poweroff --no-block
|
||||
exit 0
|
||||
@@ -63,9 +63,6 @@ report_result() {
|
||||
echo "$name OK"
|
||||
echo "$name" >>/testok
|
||||
fi
|
||||
|
||||
systemd-cat echo "--- $name ---"
|
||||
systemd-cat cat "/$name.log"
|
||||
}
|
||||
|
||||
set +x
|
||||
|
||||
@@ -6,5 +6,3 @@ Description=Tests for systemd-resolved
|
||||
ExecStartPre=rm -f /failed /testok
|
||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
||||
Type=oneshot
|
||||
StandardOutput=journal+console
|
||||
StandardError=journal+console
|
||||
|
||||
@@ -530,6 +530,11 @@ grep -qF "fd00:dead:beef:cafe::123" "$RUN_OUT"
|
||||
#run dig +dnssec this.does.not.exist.untrusted.test
|
||||
#grep -qF "status: NXDOMAIN" "$RUN_OUT"
|
||||
|
||||
### Test resolvectl show-cache
|
||||
run resolvectl show-cache
|
||||
run resolvectl show-cache --json=short
|
||||
run resolvectl show-cache --json=pretty
|
||||
|
||||
# Issue: https://github.com/systemd/systemd/issues/29580 (part #1)
|
||||
dig @127.0.0.54 signed.test
|
||||
|
||||
|
||||
@@ -6,5 +6,3 @@ Description=TEST-80-NOTIFYACCESS
|
||||
ExecStartPre=rm -f /failed /testok
|
||||
ExecStart=/usr/lib/systemd/tests/testdata/units/%N.sh
|
||||
Type=oneshot
|
||||
StandardOutput=journal+console
|
||||
StandardError=journal+console
|
||||
|
||||
@@ -65,7 +65,7 @@ EOF
|
||||
chmod +x "$MYSCRIPT"
|
||||
|
||||
MYUNIT="myunit$RANDOM.service"
|
||||
systemd-run -u "$MYUNIT" -p Type=notify -p StandardOutput=journal+console -p StandardError=journal+console -p FileDescriptorStoreMax=7 "$MYSCRIPT"
|
||||
systemd-run -u "$MYUNIT" -p Type=notify -p FileDescriptorStoreMax=7 "$MYSCRIPT"
|
||||
|
||||
test "$(systemd-analyze fdstore "$MYUNIT" | wc -l)" -eq 2
|
||||
systemd-analyze fdstore "$MYUNIT" --json=short
|
||||
|
||||
Reference in New Issue
Block a user