Files
snapd/tests/lib/assertions/classic-model.json
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

41 lines
1003 B
JSON

{
"type": "model",
"series": "16",
"authority-id": "<YOUR_ID_HERE>",
"brand-id": "<YOUR_ID_HERE>",
"model": "ubuntu-core-22-pc-amd64",
"architecture": "amd64",
"timestamp": "2023-11-09T07:50:10+00:00",
"base": "core22",
"grade": "dangerous",
"classic": "true",
"distribution": "ubuntu",
"serial-authority": [
"generic"
],
"snaps": [
{
"name": "pc",
"type": "gadget",
"default-channel": "22/edge"
},
{
"name": "pc-kernel",
"type": "kernel",
"default-channel": "22/edge"
},
{
"name": "core22",
"type": "base",
"default-channel": "latest/edge",
"id": "amcUKQILKXHHTlmSa7NMdnXSx02dNeeT"
},
{
"name": "snapd",
"type": "snapd",
"default-channel": "latest/edge",
"id": "PMrrV4ml8uWuEUDBT8dSGnKUYbevVhc4"
}
]
}