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

28 lines
835 B
YAML

summary: Check basic core18 system functionality
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