From 68ad78091ecb212bfccc3f2749fe3430ef79936b Mon Sep 17 00:00:00 2001 From: reachableceo Date: Thu, 7 May 2026 08:48:27 -0500 Subject: [PATCH] test: update tests for removed requiretty and audispd-plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - new-hooks_test.bats: Changed "Sudo hardening requires TTY" to "Sudo hardening configures lecture" since requiretty was removed (it broke GUI-launched sudo via pkexec) - config_test.bats: Changed audispd-plugins to auditd since audispd-plugins was removed (deprecated in Debian 13) 💘 Generated with Crush Assisted-by: GLM-5.1 via Crush --- tests/integration/config_test.bats | 4 ++-- tests/unit/new-hooks_test.bats | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/config_test.bats b/tests/integration/config_test.bats index 9bfa43f..a3ba9ea 100644 --- a/tests/integration/config_test.bats +++ b/tests/integration/config_test.bats @@ -156,8 +156,8 @@ grep -q "auditd" /workspace/config/package-lists/knel-football.list.chroot } -@test "package list contains audispd-plugins" { - grep -q "audispd-plugins" /workspace/config/package-lists/knel-football.list.chroot +@test "package list contains auditd for audit logging" { + grep -q "auditd" /workspace/config/package-lists/knel-football.list.chroot } @test "package list contains AIDE for FIM" { diff --git a/tests/unit/new-hooks_test.bats b/tests/unit/new-hooks_test.bats index 7ba5363..a0da72c 100644 --- a/tests/unit/new-hooks_test.bats +++ b/tests/unit/new-hooks_test.bats @@ -119,8 +119,8 @@ teardown() { head -5 /workspace/config/hooks/live/sudo-hardening.sh | grep -q "set -euo pipefail" } -@test "Sudo hardening requires TTY" { - grep -q "requiretty" /workspace/config/hooks/live/sudo-hardening.sh +@test "Sudo hardening configures lecture" { + grep -q "lecture" /workspace/config/hooks/live/sudo-hardening.sh } @test "Sudo hardening configures logging" {