* Add logic to support testflinger backend in spread tests
This change won't make tests fail and allow to start using testflinger
backend until it is merged into spread
* create user on testflinger backend
* skip adding user group on testflinger backend
* Fix basic20plus test for uc22 on arm
This test is failing because uc22 on arm is not using grub, it uses
piboot instead. The test is failing to find the kernel.efi
* spli arm scenarios
* add details to basic20plus test
---------
Co-authored-by: Ernest Lotter <ernest.lotter@canonical.com>
* sandbox/apparmor: don't let vendored apparmor conflict with system
Don't enable the vendored apparmor if the system installed apparmor will try and
load policy that would be generated by the vendored apparmor and hence may
conflict with that by using newer features not supported by the system installed
apparmor (LP: 2024637)
Signed-off-by: Alex Murray <alex.murray@canonical.com>
* apparmor: add unit testing for SystemAppArmorLoadsSnapPolicy()
* tests: add test that checks regression in lp-2024637
* apparmor: only log non ENOENT errors in systemAppArmorLoadsSnapPolicy
* tests: fix snapd-snap test on 14.04-18.04
This commit will skip apparmor vendor testing if /lib/apparmor/functions
still references /var/lib/snapd/apparmor/.
See LP:2024637
* tests: fix typo in snapd-snap test
Signed-off-by: Alex Murray <alex.murray@canonical.com>
* i/apparmor: allow read of /lib/apparmor/functions in snap-update-ns
Snapd at startup will inspect this file now to ensure that the
vendored apparmor can be used. So the snap-update-ns profile
also needs to get updated as this happens during an early init().
---------
Signed-off-by: Alex Murray <alex.murray@canonical.com>
Co-authored-by: Michael Vogt <mvo@ubuntu.com>
* Tests support for ubuntu core 22 in arm architecture
This change includes the bits needed to run ubuntu-core in arm devices
and also the nested tests.
A new backend is added google-nested-arm.
Changes in tests to support the new system are also included.
* skip removing test-snapd-arm-tools
this is not needed anymore as focal is not being supported
* Use host machine for arch
* tests fixes
* skip nested arm xecution in github workflow