* Tests support for ubuntu core 22 in arm architecture
This change includes the bits needed to run ubuntu-core in arm devices
and also the nested tests.
A new backend is added google-nested-arm.
Changes in tests to support the new system are also included.
* skip removing test-snapd-arm-tools
this is not needed anymore as focal is not being supported
* Use host machine for arch
* tests fixes
* skip nested arm xecution in github workflow
* many: remove all `device-setup` fde-setup code
When we initially worked on the inline-cryto-engine (ICE) code we
had a design based on the fde-setup hook that would return a
`device-setup` feature as a hint that ICE should be used. It
turned out this design was impractical and we moved to a much
better approach that got merged in
https://github.com/snapcore/snapd/pull/12589
and relies on support for ICE in the kernel and cryptsetup.
With that new approach all the code that was supporting the
`device-setup` approach can be removed now.
* daemon: consider again the fde-setup hook case
* client: consider the ICE encryption type
* osu/disks,kernel: remove device-unlock support as well
---------
Co-authored-by: Samuele Pedroni <pedronis@lucediurna.net>
* Repleace the systemd.sh helper by the tests.systemd tool in tests/lib
This is the first part of the migration to start using the tests.systemd
tool instead of the systemd.sh helper
* Fix shellcheck issues
* move function to get active snapd units to state.sh
It is the only place where the function is used
* Update missing functions in nested.sh
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 1c8efb77e1..14aa43a405
14aa43a405 new feature to re-run failed spread tests (#39)
604cb782db Fix shellcheck in systemd tool
bfc71082c8 Update the tests.systemd to allow parameters waiting for service status
8a2d0a99df Adding quiet tool and removing set +-x from tests.pkgs
d90935d2a4 A comment explaining about the default values for wait-for
3232c5dba7 Add support for ubuntu 23.04
a7164fba07 remove fedora 35 support, add fedora 37 support
89b9eb5301 Update systems supported
92bb6a0664 Include snap-sufix in the snaps.name tool
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 14aa43a405f344b056db4fec7aee78709c41959a
* use -n for tests.systemd wait-for-service
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 14aa43a405..162e93bd35
162e93bd35 update tests.systemd CLI options to be the same than retry command
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 162e93bd356f202b68408d0391b34e93a4f98755
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 162e93bd35..01a2a83b4b
01a2a83b4b Update tests.systemd to have stop units as systemd.sh
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 01a2a83b4b58262e13ca2578ac286a41b780fa7d
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 01a2a83b4b..9089ff5c02
9089ff5c02 Update tests to use the new tests.systemd stop-unit
44ecd5e56a Move tests.systemd stop-units to stop-unit
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 9089ff5c02a1cf074a05fb7c58af93274f63a446
* Use the new tests.systemd stop-unit command
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 9089ff5c02..75e8a426a5
75e8a426a5 make sure the unit is removed in tests.systemd test
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 75e8a426a59fb02ee74d5bb7c60c19403c9146a0
* Fix error in test muinstaller-real
the vm needs to be removed before creating a new one
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 75e8a426a5..63540b845a
63540b845a Fix error messages in remote pull and push
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 63540b845a542ee0a71257e0a726a618201ebb5d
* update how stop is used in muinstaller-real nested test
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 63540b845a..e5ae22a5d4
e5ae22a5d4 systemd units can be overwritten
git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: e5ae22a5d42b55d6b33c3f692968e72c62a619dc
* New store-state tool to replace the store.sh helper
This is the new store tool inclusing a new test.
Also it is included a network took
* Fix store-state test and tool
Based on errors found in test results
* Fix refresh test
That part of the restore was missing
* Testing missing functions for store-state
Commands included:
make-snap-installable command with snap-id
make-snap-installable command without snap-id
init-fake-refreshes command
* Skip test in ubuntu 14.04
* Reduce the time we wait for a service to became active
This is needed to make the nested tests fail faster when the nested-vm
service fails to start
* Increase the time we wait for service inactive in core20-install-mode-shutdown-via-hook
* o/devicestate: read system options when handling kernel command line
Use the kernel command line options when building the kernel command
line.
* tests: add cmdline-option test
cmdline-option checks that we can change the kernel command line using
the kernel system options.
* overlord: make task keys for the update cmdline task constants
* o/devicestate: export CurrentGadgetInfo so it can be used from configcore
* o/configcore: validate kernel command line against allow list
* o/devicestate: use the full string when looking for the kernel command
line options.
* tests/nested/manual/cmdline-option: run remotely all commands
* overlord: copy strings instead of using constants for task keys
Until some better way is found.
* gadget,overlord: change checking allowed parameters to a filter function
* o/devicestate: filter out unallowed arguments when building the kernel cmdline
Filter arguments not allowed by the gadget.
* gadget: name return params in FilterKernelCmdline and add test cases
* overlord: address review comments
* gadget,overlord: address review comments