Skip to content

Commit

Permalink
change slice to base-passwd_data
Browse files Browse the repository at this point in the history
Simpler slice with mutation scripts that is consistent across versions
of Chisel and we not forsee changes to it in the near future.
  • Loading branch information
letFunny committed Jul 15, 2024
1 parent fdecad7 commit cbe7c37
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/basic/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,18 @@ execute: |
rootfs_folder=rootfs_${RELEASE}
mkdir -p $rootfs_folder
chisel cut --release ${OS}-${RELEASE} \
--root $rootfs_folder ca-certificates_data openssl_bins
--root $rootfs_folder base-passwd_data openssl_bins
# make sure $rootfs_folder is not empty
ls ${rootfs_folder}/*
# with the ca-certificates mutation script, we can assert that:
# - etc/ssl/certs/ca-certificates.crt is not empty
# - usr/share/ca-certificates/mozilla/ does not exist
test -s ${rootfs_folder}/etc/ssl/certs/ca-certificates.crt
if [[ "${RELEASE}" != "24.04" ]]
then
test ! -d ${rootfs_folder}/usr/share/ca-certificates/mozilla
fi
# with the base-passwd mutation script, we can assert that:
# - etc/{group,passwd} are not empty and not equal to FIXME
# - usr/share/base-passwd/{group.master,passwd.master} do not exist
test -s ${rootfs_folder}/etc/group && test "$(< ${rootfs_folder}/etc/group)" != "FIXME"
test -s ${rootfs_folder}/etc/passwd && test "$(< ${rootfs_folder}/etc/passwd)" != "FIXME"
test ! -e ${rootfs_folder}/usr/share/base-passwd/group.master
test ! -e ${rootfs_folder}/usr/share/base-passwd/passwd.master
# with the openssl pkg, both internal and external dependencies need to be met, for:
# - libc6_libs
Expand Down

0 comments on commit cbe7c37

Please sign in to comment.