1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-09 09:57:26 +03:00

test: drop old DS records if present

This makes the test re-runnable without having to go through the cleanup
and setup phases again.
This commit is contained in:
Frantisek Sumsal 2022-08-26 18:40:53 +02:00
parent 528ba54bbe
commit ad3d0c8a30

View File

@ -72,9 +72,14 @@ resolvectl log-level debug
# We need to manually propagate the DS records of onlinesign.test. to the parent
# zone, since they're generated online
knotc zone-begin test.
if knotc zone-get test. onlinesign.test. ds | grep .; then
# Drop any old DS records, if present (e.g. on test re-run)
knotc zone-unset test. onlinesign.test. ds
fi
# Propagate the new DS records
while read -ra line; do
knotc zone-set test. "${line[@]}"
done < <(keymgr onlinesign.test ds)
done < <(keymgr onlinesign.test. ds)
knotc zone-commit test.
### SETUP END ###