~alexmurray/qa-regression-testing:update-test-samba-to-run-under-apparmor

Last commit made on 2024-05-03
Get this branch:
git clone -b update-test-samba-to-run-under-apparmor https://git.launchpad.net/~alexmurray/qa-regression-testing
Only Alex Murray can upload to this branch. If you are Alex Murray please log in for upload directions.

Branch merges

Branch information

Name:
update-test-samba-to-run-under-apparmor
Repository:
lp:~alexmurray/qa-regression-testing

Recent commits

5efb927... by Alex Murray

scripts/test-samba.py: skip more tests in lpci that use mount

Signed-off-by: Alex Murray <email address hidden>

Succeeded
[SUCCEEDED] imagemagick:0 (build)
[SUCCEEDED] imagemagick:1 (build)
[SUCCEEDED] imagemagick:2 (build)
[SUCCEEDED] gcc-security:0 (build)
[SUCCEEDED] gcc-security:1 (build)
[SUCCEEDED] gcc-security:2 (build)
[SUCCEEDED] glibc:0 (build)
[SUCCEEDED] glibc:1 (build)
[SUCCEEDED] glibc:2 (build)
[SUCCEEDED] glibc-security:0 (build)
[SUCCEEDED] glibc-security:1 (build)
[SUCCEEDED] glibc-security:2 (build)
[SUCCEEDED] gnupg:0 (build)
[SUCCEEDED] gnupg:1 (build)
[SUCCEEDED] gnupg:2 (build)
[SUCCEEDED] sudo:0 (build)
[SUCCEEDED] sudo:1 (build)
[SUCCEEDED] sudo:2 (build)
[SUCCEEDED] git:0 (build)
[SUCCEEDED] git:1 (build)
[SUCCEEDED] git:2 (build)
[SUCCEEDED] ghostscript:0 (build)
[SUCCEEDED] ghostscript:1 (build)
[SUCCEEDED] ghostscript:2 (build)
[SUCCEEDED] busybox:0 (build)
[SUCCEEDED] busybox:1 (build)
[SUCCEEDED] busybox:2 (build)
[SUCCEEDED] coreutils:0 (build)
[SUCCEEDED] coreutils:1 (build)
[SUCCEEDED] coreutils:2 (build)
[SUCCEEDED] util-linux:0 (build)
[SUCCEEDED] util-linux:1 (build)
[SUCCEEDED] util-linux:2 (build)
[SUCCEEDED] ecdsautils:0 (build)
[SUCCEEDED] ecdsautils:1 (build)
[SUCCEEDED] ecdsautils:2 (build)
[SUCCEEDED] python-urllib3:0 (build)
[SUCCEEDED] python-urllib3:1 (build)
[SUCCEEDED] python-urllib3:2 (build)
[SUCCEEDED] amanda:0 (build)
[SUCCEEDED] amanda:1 (build)
[SUCCEEDED] samba:0 (build)
[SUCCEEDED] samba:1 (build)
[SUCCEEDED] samba:2 (build)
144 of 44 results
da83729... by Alex Murray

scripts/test-samba.py: use assertShellExitSuccess() as suggest by sbeattie

Signed-off-by: Alex Murray <email address hidden>

c7edc74... by Alex Murray

.launchpad.yaml: add samba to lpci

Also skip a few tests in the lpci environment since we don't have permission to
mount there

Signed-off-by: Alex Murray <email address hidden>

71f83c1... by Alex Murray

scripts/test-samba.py: add local fix for upstream issue #386

To fix https://gitlab.com/apparmor/apparmor/-/issues/386 in noble manually add
some rules based on those in
https://gitlab.com/apparmor/apparmor/-/merge_requests/1219

Signed-off-by: Alex Murray <email address hidden>

96b9f5b... by Alex Murray

scripts/test-samba.py: test with apparmor profiles installed

To do this we then need to add some support for manually patching the apparmor
profile to allow the required path accesses by smbd.

Signed-off-by: Alex Murray <email address hidden>

9a73a0c... by Alex Murray

scripts/test-samba.py: robustify handling of command-line args

Won't bork if run without -v now and should handle things more gracefully in
general

Signed-off-by: Alex Murray <email address hidden>

d1402ed... by Steve Beattie

lpci: run `apt upgrade` before exercising tests

Merge lp:~sbeattie/qa-regression-testing:lpci-apply_updates_before_testing

Signed-off-by: Steve Beattie <email address hidden>
MR: https://code.launchpad.net/~sbeattie/qa-regression-testing/+git/qa-regression-testing/+merge/465105
Approved-by: Emilia Torino <email address hidden>

6de1429... by Steve Beattie

lpci: run `apt upgrade` before exercising tests

The automatic runs of qa-regression-testing were failing in
the util-linux tests, even though the most recent util-linux
security update had been published to the ubuntu archive, because
lpci explicitly does not apply updates to the spawned test
environments that the jobs are run in. Furthermore, there is no
specific job configuration to tell lpci to apply updates first in
https://lpci.readthedocs.io/en/latest/configuration.html#job-definitions

To work around this limitation, add a run-before step in each job to run
`apt upgrade` so that the most up-to-date version of a package is tested
against.

An open question here is whether it would be more appropriate to use
`dist-upgrade` rather than a simple `upgrade`.

- v1: initial attempt
- v2: disable interactive prompts when upgrading

Signed-off-by: Steve Beattie <email address hidden>
Bug: https://bugs.launchpad.net/lpci/+bug/2063880
MR: https://code.launchpad.net/~sbeattie/qa-regression-testing/+git/qa-regression-testing/+merge/465105

fa332d0... by Steve Beattie

test-kernel-panic.py: report progress to stderr

Signed-off-by: Steve Beattie <email address hidden>

7958850... by Steve Beattie

install audits: add get_file_info results for 24.04

Signed-off-by: Steve Beattie <email address hidden>