Files
snapd/tests/main/debug-confinement/task.yaml
Sergio Cazzolato a6c8ceed09 tests: add tests details part 12 (#13914)
* tests: add tests details part 12

This is a set of changes to add details to spread test

* Update tests/main/debug-confinement/task.yaml

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

* Update tests/main/install-many-transactional/task.yaml

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

* Update tests/main/snap-env/task.yaml

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

* Update tests/main/snap-get/task.yaml

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

* Update tests/main/snapd-state/task.yaml

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

* Updated the details to address review comments

---------

Co-authored-by: Zygmunt Bazyli Krynicki <me@zygoon.pl>
2024-05-02 07:43:43 -03:00

20 lines
507 B
YAML

summary: Verify confinement is correctly reported
details: |
The confinement command will print the confinement mode (strict,
partial or none) the system operates in.
This test verifies the `snap debug confinement` command it strict in
ubuntu classic and core systems and it is partial in the rest.
execute: |
expected=partial
case "$SPREAD_SYSTEM" in
ubuntu-*)
expected=strict
;;
*)
;;
esac
test "$(snap debug confinement)" = "$expected"