7702 Commits

Author SHA1 Message Date
Samuele Pedroni
0ec5a4ba90 many: preparations for revision authority cross checks including device scope
Merge pull request #11977 from pedronis/device-n-provenance-revision-authority-checks-prep

RevisionAuthority.Check should check device scope contraints if provided device information (model, store)

snapasserts helpers should take a model
2022-07-20 11:01:55 +02:00
Samuele Pedroni
bac14a21a4 many: snapasserts.CrossChecks takes a model assertion optionally
this will be used to perform the device specific part of full cross
checks for delegated authority snap-revisions
2022-07-18 14:28:46 +02:00
Philip Meulengracht
5d7d8efbc2 cmd/snap: fix visual representation of 'AxB%' cpu quota modifier. 2022-07-18 09:05:41 +02:00
Michael Vogt
96879ea52b Merge pull request #9631 from stolowski/debug-conns
cmd/snap: add snap debug connections/connection commands
2022-07-15 11:05:15 +02:00
Alfonso Sánchez-Beato
56187a6665 Merge branch 'master' into mount-gadget-in-run-folder 2022-07-13 09:13:21 +01:00
Miguel Pires
844466a81a many: rename ifacestate schema pkg and struct
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-12 17:28:49 +01:00
Miguel Pires
25096a85fb Revert "cmd/snap: require state-file arg for debug commands"
This reverts commit 7dd38752d4.
Some spread tests depend on this command assuming state.json in the
current directory if none is provided.
2022-07-12 08:48:36 +01:00
Miguel Pires
4662c1b347 cmd/snap: replace if/else with switch case
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-08 17:52:46 +01:00
Miguel Pires
7dd38752d4 cmd/snap: require state-file arg for debug commands
Return an error if a state file isn't provided instead of assuming
the state file is in the current directory (which usually results
in a less user-friendly error message stating a file can't be found).

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-08 17:50:00 +01:00
Miguel Pires
824d87a427 ifacestate: add shared iface schemas package
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-08 16:33:22 +01:00
Michael Vogt
1d6abd1327 Merge pull request #11815 from Meulengracht/feature/journal-quota-5
client,cmd/snap: add journal quota frontend (5/n)
2022-07-06 11:34:21 +02:00
Michael Vogt
07c66da717 Merge pull request #11910 from bboozzoo/bboozzoo/gadget-device-package
gadget/device: introduce package which provides helpers for locations of things
2022-07-06 11:26:45 +02:00
Philip Meulengracht
93dbbc6de7 cmd/snap: review feedback
typo fix, improve error message
2022-07-06 08:42:59 +02:00
Philip Meulengracht
a37f881671 cmd/snap: ellaborate on option format for journal-rate-limit 2022-07-05 08:52:01 +02:00
Michael Vogt
570d4dcc45 snap-bootstrap: use new device.ReadEncryptionMarkers() 2022-07-04 17:46:36 +02:00
Michael Vogt
90152b0d4b Merge pull request #11665 from mardy/snap-confine-tmpfs-compat
cmd/snap-confine: be compatible with a snap rootfs built as a tmpfs
2022-07-04 11:13:29 +02:00
Alfonso Sánchez-Beato
5b8585f26c cmd/snap-bootstrap: test that gadget is not mounted if not in modeenv 2022-07-01 15:28:46 +01:00
Alfonso Sánchez-Beato
20576213ca cmd/snap-bootstrap: fix some comments 2022-07-01 15:28:28 +01:00
Miguel Pires
5ed2c0b344 cmd/snap: simplify tests
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-01 11:55:32 +01:00
Miguel Pires
85e3005fe0 cmd/snap: improve connections debug cmd test coverage
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-01 11:35:18 +01:00
Miguel Pires
0cf90914a7 cmd/snap: refactor and document plug/slot matching and filtering
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-01 11:15:16 +01:00
Philip Meulengracht
09ced07d98 cmd/snap: fix unit test after changes to error message 2022-07-01 11:47:24 +02:00
Philip Meulengracht
52d25c6e05 multiple: review feedback
add missing unit tests, remove some redundant checks already present in server
2022-07-01 11:36:40 +02:00
Miguel Pires
03305fdf29 cmd/snap: replace err equality checks w/ errors.Is()
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-01 09:30:06 +01:00
Miguel Pires
f71f544854 cmd/snap: format code
Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2022-07-01 09:21:41 +01:00