805 Commits

Author SHA1 Message Date
Sergio Cazzolato
67e693bf50 Merge pull request #12481 from sergiocazzolato/tests-update-nested-tests-again-p1
tests: improvements for nested tests
2023-03-09 21:54:03 -03:00
Sergio Cazzolato
b56d54ae45 Merge branch 'master' into tests-update-nested-tests-again-p1 2023-03-09 13:56:54 -03:00
Sergio Cazzolato
444ff31fcd Merge branch 'master' into tests-new-lxd-prepare-command 2023-03-09 13:56:33 -03:00
Alfonso Sánchez-Beato
0572c42991 tests/nested/manual/fde-on-classic: test appending kernel command
line arguments by using system options.
2023-03-08 17:24:06 +01:00
Sergio Cazzolato
5001aa1294 Merge branch 'master' into tests-update-nested-tests-again-p1 2023-03-08 08:53:16 -03:00
Sergio Cazzolato
01936913d7 Merge remote-tracking branch 'upstream/master' into tests-new-lxd-prepare-command 2023-03-08 08:52:39 -03:00
Valentin David
ebb3121141 tests/nested/manual/fde-on-classic: fix wrong gadget.yaml 2023-03-08 12:51:16 +01:00
Sergio Cazzolato
2a53d2deb2 Fix how params are exported in tests.nested 2023-03-07 13:51:08 -03:00
alfonsosanchezbeato
d5f47ca71f many: read system options when handling kernel command line (#12561)
* 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
2023-03-07 17:48:17 +01:00
Michael Vogt
33274758ee tests: fix typo, fix missing newline 2023-03-06 10:58:38 +01:00
Michael Vogt
10d2e6b606 tests: also check log file for ICE usage 2023-03-06 10:58:38 +01:00
Michael Vogt
4ae9ef7fda tests: add nested test for fde-setup with ice support 2023-03-06 10:58:38 +01:00
Sergio Cazzolato
1c66ce3fc6 Merge remote-tracking branch 'upstream/master' into tests-update-nested-tests-again-p1 2023-03-02 10:44:16 -03:00
Sergio Cazzolato
106ea9ca00 Merge branch 'master' into tests-new-lxd-prepare-command 2023-03-01 09:00:04 -03:00
Michael Vogt
8fd097fb85 tests: add missing "snap ack" in muinstaller-real test 2023-02-24 12:33:30 +01:00
Michael Vogt
c16d4aed59 tests: add regression check that MarkBootSuccessfl did not error 2023-02-24 12:33:30 +01:00
Michael Vogt
907e3acb84 tests: remove unneeded reboot_action= from muinstaller-real test 2023-02-24 12:33:30 +01:00
Michael Vogt
da6d8720fa tests: improve muisntaller-real pc/pc-kernel refresh test and add core22 refresh test with reboot 2023-02-24 12:33:30 +01:00
Michael Vogt
30bf1359b4 tests: check kernel refresh as well 2023-02-24 12:33:30 +01:00
Michael Vogt
0e8566c455 tests: test kernel/gadget refresh as part of muinstaller-real
To ensure the kernel/gadget refresh works correctly this commit adds
a new test that creates a new gadget and kernel snap and refreshes
those.

The test will also check that the reboot will not happen automatically.

Note that right now only the gadget refresh is enabled because the
kernel needs a newer version of snap-bootstrap that supports the
system-seed-null role.
2023-02-24 12:33:30 +01:00
Sergio Cazzolato
f0a74920cf Fix muinstaller test 2023-02-22 08:42:19 -03:00
Sergio Cazzolato
29983d8599 Merge remote-tracking branch 'upstream/master' into tests-update-nested-tests-again-p1 2023-02-18 15:48:32 -03:00
Sergio Cazzolato
beaf52f801 Fix extra-snaps path because the path has been moved to /tmp 2023-02-17 17:03:20 -03:00
Sergio Cazzolato
c90cee437f fix core20-kernel-reseal nested test 2023-02-17 12:57:10 -03:00
Sergio Cazzolato
567774bf6a Merge branch 'master' into tests-new-lxd-prepare-command 2023-02-17 10:44:15 -03:00