From c03ad7ef750647bc40fa5abd1d614689500acb16 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Mon, 21 Jul 2025 11:24:37 -0400 Subject: [PATCH] tests: add test for --sysusers Exercise the `--sysusers` path added in https://gitlab.com/fedora/bootc/base-images/-/merge_requests/242. --- .gitlab-ci.yml | 1 + tests/Containerfile.test-sysusers | 39 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 tests/Containerfile.test-sysusers diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3f33590..c4c2955 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,3 +44,4 @@ standard-build-and-test: (cd tests/rootfs && buildah build -t localhost/test --from localhost/fedora-bootc) cd tests buildah build -f Containerfile.test-derive --no-cache -t localhost/fedora-bootc-derived ${PRIV_ARGS} . + buildah build -f Containerfile.test-sysusers --no-cache -t localhost/fedora-bootc-derived ${PRIV_ARGS} . diff --git a/tests/Containerfile.test-sysusers b/tests/Containerfile.test-sysusers new file mode 100644 index 0000000..53e255b --- /dev/null +++ b/tests/Containerfile.test-sysusers @@ -0,0 +1,39 @@ +# This test case exercises --sysusers. +FROM quay.io/fedora/fedora-bootc:rawhide as repos + +# This is intentionally a locally built image +FROM localhost/fedora-bootc as builder +RUN --mount=type=bind,from=repos,src=/,dst=/repos,rw < overlay/usr/lib/sysusers.d/00-chrony.conf <