mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* 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>
20 lines
507 B
YAML
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"
|