summaryrefslogtreecommitdiffstats
path: root/debian/tests/kea-ctrl-agent-debconf
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/kea-ctrl-agent-debconf')
-rw-r--r--debian/tests/kea-ctrl-agent-debconf12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/tests/kea-ctrl-agent-debconf b/debian/tests/kea-ctrl-agent-debconf
index c3456ca..5790977 100644
--- a/debian/tests/kea-ctrl-agent-debconf
+++ b/debian/tests/kea-ctrl-agent-debconf
@@ -12,6 +12,15 @@ cleanup() {
trap cleanup EXIT
+override_systemd_throttling() {
+ mkdir -p /run/systemd/system/kea-ctrl-agent.service.d
+ cat > /run/systemd/system/kea-ctrl-agent.service.d/override.conf <<EOF
+[Unit]
+StartLimitIntervalSec=0
+EOF
+ systemctl daemon-reload
+}
+
check_perms() {
local file="${1}"
local wanted_perms="${2}"
@@ -245,6 +254,9 @@ test_empty_password_via_debconf() {
}
+# we restart kea-ctrl-agent a lot during this test
+override_systemd_throttling
+
test_fresh_install
test_service_wont_start_without_pwfile
test_configured_password