mirror of
https://github.com/ovh/debian-cis.git
synced 2025-09-09 07:50:54 +02:00
feat: add trixie docker build
Ensure the current debian12 scripts are going to run on trixie
This commit is contained in:
@@ -19,18 +19,26 @@ test_audit() {
|
||||
register_test retvalshouldbe 0
|
||||
run resolved "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
||||
|
||||
describe Prepare test package dependencies
|
||||
# try to install a package that depends on 'tftpd-hpa'
|
||||
apt install -y tftp-hpa-dbg
|
||||
# running on a container, we can only test the package installation, not the service management
|
||||
# trixie: apt-cache rdepends tfptd-hpa -> # E: No packages found
|
||||
tests_get_debian_major_version
|
||||
if [ "$DEB_MAJ_VER" -lt 13 ]; then
|
||||
|
||||
describe Running successfull test
|
||||
register_test retvalshouldbe 0
|
||||
# shellcheck disable=2154
|
||||
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
||||
describe Prepare test package dependencies
|
||||
# try to install a package that depends on 'tftpd-hpa'
|
||||
apt install -y tftp-hpa-dbg
|
||||
# running on a container, we can only test the package installation, not the service management
|
||||
|
||||
describe Running successfull test
|
||||
register_test retvalshouldbe 0
|
||||
# shellcheck disable=2154
|
||||
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
|
||||
|
||||
apt remove -y tftp-hpa-dbg
|
||||
|
||||
fi
|
||||
|
||||
describe clean installation
|
||||
apt remove -y tftp-hpa-dbg tftpd-hpa
|
||||
apt remove -y tftpd-hpa
|
||||
apt autoremove -y
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user