* tests: use KERNEL_CHANNEL/NESTED_KERNEL_CHANNEL instead of edge for pc-kernel
* add var to define gadget channel used to create the nested vm
---------
Co-authored-by: Sergio Cazzolato <sergio.cazzolato@canonical.com>
Before it would result it being added to install mode as well, when we only set up the minimal set of snaps (gadget, kernel, base, snapd). If the validation-set contained any snaps besides these, it would fail. Wait until run mode, where we set up any non-essential snaps, and after this we expect all snaps to be present in system.
* 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
* 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
This is the first part of the improvements done for nested tests.
It includes:
. new remote.wait-for tool
. several improvements to muinstaller tests
. new secboot-remove-signature command
. other small changes
Some tests are failing because there are some directories which contain
snaps before the execution.
This is mostly for the first test executed, which contained many snaps
and directories created while the test suite is prepared.
The change cleans correctly the suite preaparation and moved the extra
tests directory to /tmp for the same raeson.
This new config option allows setting the listen-address that the ssh
daemon listens to.
Note that this option is only available on UC20+ systems because
to work during first boot it needs to write a default configuration
into the `/etc/ssh/sshd_config.d` directory. This directory is
only available in UC20+ versions of ssh.
The configuration of ssh option is more flexible by using
`service.ssh.listen-address` which allows to specify:
1. hostname or IP
2. hostname or IP with port
3. port only (via :port syntax)
E.g.
```
$ snap set system system service.ssh.listen-port=:9022
$ snap set system system service.ssh.listen-port=hostname:9022
$ snap set system system service.ssh.listen-port=host1,host2
```