debian-forge-composer/test/cases
Tomas Hozza bce603586e image-info: changes related to reading SELinux labels unknown to host
When `image-info` inspects ostree images, the `/usr/etc` is bind-mounted
to `/etc`. This results in conflicting SELinux policy specification for
these files and makes the outcome dependent on the `setfiles` build.
All the files in `/etc` have mismatch in the expected vs. actual SELinux
context.

Exclude `/etc` from the check of SELinux ctx mismatches in case the
analysed tree is from an ostree-based image.

Sort the list returned `read_selinux_ctx_mismatch()` based on the item's
`filename` key, to make the result consistent across runs.

`image-info` can not read SELinux labels from the images, which are not
known to the host. This makes the report content depend on the host
environment. As a temporary workaround, relabel the image-info script with
osbuild_exec_t label to allow it to read unknown SELinux labels.

Modify documentation in `test/README.md` to explain the issue with
`image-info` and unknown SELinux labels.

Modify the `generate-all-test-cases` to relabel `image-info` before
generating test cases.

Modify the `image_tests.sh` to relabel `image-info` before running image
test cases.

Add 'tar' image for 'rhel-8' on 's390x' back to the matrix of generated
test cases, as it was removed by mistake. Regenerate the image test
case. Remove 'tar' image from 'rhel-84' on 's390x' from the matrix of
generated test cases, as it is not supported.

Regenerate all affected image test cases.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2021-06-22 13:25:59 +03:00
..
api.sh test: add API test for S3 upload target 2021-06-18 14:02:09 +01:00
aws.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00
azure.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00
base_tests.sh base_tests.sh: make the test self-contained 2020-11-10 10:44:13 +00:00
image_tests.sh image-info: changes related to reading SELinux labels unknown to host 2021-06-22 13:25:59 +03:00
koji.sh tests: move some integration tests to gitlab CI 2021-05-12 15:38:30 +03:00
libvirt.sh test/libvirt: don't test vhd images 2021-05-17 14:55:50 +02:00
ostree-ng.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00
ostree.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00
regression-include-excluded-packages.sh test/cases: Introduce common "regression" test for all distros 2021-05-20 13:07:07 +03:00
regression.sh test/cases: Introduce common "regression" test for all distros 2021-05-20 13:07:07 +03:00
vmware.sh tests: fix journalctl killing once again 2021-06-10 07:40:36 +02:00