4 Commits

Author SHA1 Message Date
Sergio Cazzolato
3a533b8094 tests: adding details to tests in core suite - part 1 (#13789)
* tests: adding details to tests in core suite - part 1

* Update tests/core/compat/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/basic18/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/compat/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/config-defaults-once/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/core-dump/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/create-user-2/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/create-user-2/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/create-user/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/create-user/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/fan/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/grub-no-unpacked-assets/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

* Update tests/core/core-to-snapd-failover16/task.yaml

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>

---------

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>
2024-04-09 16:09:59 -03: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
960c5030b8 Minor changes in tests to improve phases prepare and restore and docs improvemente
This change includes:
. Adding some missing docs for tests
. Improving prepare sections
. Improving restore sections
2021-03-04 10:23:18 -03:00
Ian Johnson
d4534d0830 tests: add "core" suite for UC specific tests
This will make it easier to ensure we have test coverage of all the Ubuntu Core
variants going forward.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-02-06 16:31:26 -06:00