Commit Graph

6 Commits

Author SHA1 Message Date
Sergio Cazzolato
68fe7eb9f7 tests: support testflinger (#13662)
* 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
2024-03-05 12:51:21 +01:00
Sergio Cazzolato
2ae54c88b2 tests: fix basic20plus test for uc22 on rpi (#13074)
* 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>
2023-11-29 20:41:29 +02:00
Alex Murray
b0c8a48341 sandbox/apparmor: don't let vendored apparmor conflict with system (#12909)
* 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>
2023-07-03 14:03:27 +02:00
Sergio Cazzolato
0078bb08f5 tests: support for ubuntu core 22 in arm architecture (#12791)
* 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
2023-05-09 09:21:16 +02:00
Miguel Pires
09cdbe55e2 tests: double quote bash vars to prevent string splitting and globbing
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-12-14 16:57:31 +01:00
Valentin David
a1321d9c4e tests/core/basic20: Enable on uc22 and rename 2022-06-20 10:55:01 +02:00