Files
snapd/tests/core/basic18/task.yaml
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

41 lines
1.2 KiB
YAML

summary: Check basic core18 system functionality
details: |
Validate basic functionalities are working for uc18. Check commands
like: list, changes and install. And run a basic shell snap.
systems: [ubuntu-core-18-*]
execute: |
echo "Check that the system snaps are there"
snap list core18
snap list snapd
if snap list core; then
echo "The old core snap is installed but should not"
exit 1
fi
echo "Ensure that the system is fully seeded"
snap changes | MATCH "Done.*Initialize system state"
echo "Check that a simple shell snap"
snap install test-snapd-sh-core18
test-snapd-sh-core18.sh -c 'echo hello' | MATCH hello
if python3 -m json.tool < /var/lib/snapd/system-key | grep '"build-id": ""'; then
echo "The build-id of snapd must not be empty."
exit 1
fi
echo "Ensure passwd/group is available for snaps"
test-snapd-sh-core18.sh -c 'cat /var/lib/extrausers/passwd' | MATCH test
# ensure apparmor works, see LP: 2024637
systemctl status apparmor.service
# reboot to double check that apparmor still works after the reboot
# (LP: 2024637)
if [ "$SPREAD_REBOOT" = 0 ]; then
REBOOT
fi