Merge ~ahasenack/ubuntu/+source/php-net-ldap2:lunar-php-net-ldap2-apparmor-dep8 into ubuntu/+source/php-net-ldap2:ubuntu/devel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | git-ubuntu bot | ||||
Approved revision: | not available | ||||
Merged at revision: | 163c47f2cd0134fc23b30d14e3776f9fe4dce7db | ||||
Proposed branch: | ~ahasenack/ubuntu/+source/php-net-ldap2:lunar-php-net-ldap2-apparmor-dep8 | ||||
Merge into: | ubuntu/+source/php-net-ldap2:ubuntu/devel | ||||
Diff against target: |
82 lines (+44/-1) 3 files modified
debian/changelog (+8/-0) debian/control (+2/-1) debian/tests/upstream-testsuite (+34/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
git-ubuntu bot | Approve | ||
Sergio Durigan Junior (community) | Approve | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+438144@code.launchpad.net |
Description of the change
Adjust the slapd apparmor profile to allow slapd to read/write/lock files in the autopkgtest temporary directory.
There is the usual "apparmor on armhf in the ubuntu dep8 infrastructure" issue. I copied the approach I used in the rsyslog package[2].
While I was writing up this MP, I wondered about another way to fix this problem. Instead of adjusting the apparmor profile, we could also just make the test use a directory under /var/tmp, because that is allowed by the existing apparmor profile. Well, almost: it misses[1] the lock (k) permission I'm afraid :/ :
/var/tmp/ rw,
/var/tmp/** rw,
And in my testing, "k" was needed.
PPA: https:/
DEP8 is green:
Results: (from http://
php-net-ldap2 @ amd64:
01.03.23 20:16:36 Log 🗒️ ✅ Triggers: php-net-
PHPUnit 9.6.3 by Sebastian Bergmann and contributors.
.......
IIIIIIIIIIIIIII
Time: 00:01.429, Memory: 14.00 MB
OK, but incomplete, skipped, or risky tests!
Tests: 99, Assertions: 1117, Incomplete: 45.
autopkgtest [20:16:12]: test upstream-testsuite: -------
upstream-testsuite PASS
autopkgtest [20:16:13]: test upstream-testsuite: - - - - - - - - - - results - - - - - - - - - -
autopkgtest [20:16:14]: @@@@@@@
upstream-testsuite PASS
Note: when running the DEP8 tests in a local lunar container, or even vm, with the autopkgtest runner, they fail, but in the DEP8 infrastructure (as above), they pass. ¯\_(ツ)_/¯
1. https:/
2. https:/
LGTM. Unfortunately I don't see Debian accepting such a change easily, but it's worth trying submitting it to them, I guess.
I built the package and ran autopkgtest locally, and it actually passed.
autopkgtest [16:25:00]: @@@@@@@ @@@@@@@ @@@@@@ summary
upstream-testsuite PASS
+1