Files
snapd/tests/lib/assertions/classic-model.assert
Andrew Phelps 8c247eaf5a overlord, o/devicestate: support remodeling on hybrid models (#13464)
* o/snapstatetest, o/devicestate, overlord: add param to InstallSnap and InstallEssentialSnaps for setting up gadget files

* o/devicestate: allow remodeling on hybrid models

When remodeling on a hybrid model, check to make sure that we have a
seed partition before creating a new recovery system as a part of the
remodel. Creating the new system is skipped if we don't see a seed
partition.

* tests/nested/manual/hybrid-remodel: new test for remodeling on a hybrid model

* o/snapstate/snapstatetest: forward gadget files to InstallSnap for gadget

* o/devicestate: add check for if the system is core-boot in undoCreateRecoverySystem

* gadget: add Info.HasRole method that checks for a role in an Info struct

* o/devicestate: replace manual role lookup with gadget.Info.HasRole incovation

* tests/nested/manual/hybrid-remodel: add TODO about testing system seeds on hybrid systems

* tests/nested/manual/hybrid-remodel: properly wait for reboot

* tests/nested/manual/hybrid-remodel: use change_id to make assertions more specific

* o/devicestate: do not attempt to finalize seed install when there is no seed partition

* tests: put muinstaller use into script for use in multiple tests

* o/devicestate: add comment explaining reason for explicitly checking classic systems

* tests: rename muinstaller.sh to setup_nested_hybrid_system.sh to clarify functionality

* tests/lib/tools/setup_nested_hybrid_system.sh: tell shellcheck where to find sourced files

* tests/lib/tools: rename --fake-disk to --disk in setup_nested_hybrid_system.sh

* tests/nested/manual/muinstaller-real: fix missing usage of $label variable in setup_nested_hybrid_system.sh

* tests/nested/manual/muinstaller-real: fix check for pre-existing gpt partition

* tests/nested/manual/muinstaller-real: use proper quoting on path with escaped chars
2024-02-22 07:47:52 +01:00

45 lines
1.4 KiB
Plaintext

type: model
authority-id: test-snapd
series: 16
brand-id: test-snapd
model: ubuntu-core-22-pc-amd64
architecture: amd64
base: core22
classic: true
distribution: ubuntu
grade: dangerous
serial-authority:
- generic
snaps:
-
default-channel: 22/edge
name: pc
type: gadget
-
default-channel: 22/edge
name: pc-kernel
type: kernel
-
default-channel: latest/edge
id: amcUKQILKXHHTlmSa7NMdnXSx02dNeeT
name: core22
type: base
-
default-channel: latest/edge
id: PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4
name: snapd
type: snapd
timestamp: 2023-11-09T07:50:10+00:00
sign-key-sha3-384: 7qWG-Uwck6Dji43a3Z8ZZrm7rAziZAch3xf76iFvqe4GaD0LI7U9lYPWMSJAsEgu
AcLBcwQAAQoAHRYhBGESvKlz1RXG1IBOC0MdJKf2hr9ABQJlnGDnAAoJEEMdJKf2hr9A6VQQAJcm
YNtmWEfa1lkCmCeAPEgN62fYHoE+hj1MrnkeZ8vj7bM+yJyGu5WiDkK99KQV2ZcrsURebIp+fz3f
C1B/X361vUoqKDppZoyybrl4pCZPiLGR2/sESble+jIxFAJlmhvgSchAvjrqsQGeOLyib8hbLyyi
ueK1OiF9ra3lLkF+AaIDmBTsDirj6EkZ649h5WBWoj0D70cMYdIqg8GA99bgI9KzLO0z/twFzui1
Lj1cPbnSj3bv8ky5fUYoRJGHWd+RhEtfMPTdqy9MQB8H8KanIJLYGtYqKMHCsbU+SAyo4CEvVDBl
Set23/6m1yj1pZGWW6cDwWvRBq4ZQCTnyr+RnhEULrw41ONngAFuHgTHKwkMCCwgeYF0KbOjpYgq
+Eu7HxCbqNs9UhnjcAwQLIjhDULMCM5OlDlneo9UurILbUXUyznGTDKGgu4qvR9Xty8NQ0PF/OJp
jZLMwnFo8z8VXfPD2Sxuzxa0auTkxJqf6MpHKX4dw6bxzMsG9TrGgn9UDKm8MHrs8rIHcGkUtHGE
oIDlaMOFBkjuXWNpYpA9jpOiBUqT/om7nY1shfctUrhOo4ZQDMhDHbNZlRKhFgByhOLYANGvl54C
P4yFgKGgAahKi3gatWd0M/zjiTmOTaAZrQ/9xbu+P3NKtE3CzK299WbjSTKdnHYuBHahVB2U