Philip Meulengracht
4f18d968a9
asserts: update username regex allowed by system-user assertion ( #13590 )
...
* asserts: update username regex allowed by system-user assertion
* asserts: drop the second '-' from the regex
2024-02-16 12:24:21 +01:00
Philip Meulengracht
2afc347391
asserts: reverse logic check
2022-10-19 09:26:01 +02:00
Philip Meulengracht
957f45b5af
asserts: review feedback
...
update doc and error text, update unit tests
2022-10-19 09:13:29 +02:00
Philip Meulengracht
30cbadccf5
asserts: require header format 2 to use the new user-presence variable
2022-10-19 09:10:36 +02:00
Philip Meulengracht
ae9eee9ee5
asserts: rename user-valid-for to user-presence, add unit test specifically to verify that the member is optional, fix current logic determining this
2022-10-18 08:29:06 +02:00
Philip Meulengracht
a22d1b8b41
asserts: review feedback
...
remove the duration part of the functionality after discussions on this subject. This cleans up a bit a code. Folded all unit tests into the DecodeOK/Invalid
2022-10-13 12:47:56 +02:00
Philip Meulengracht
bc6f4eac85
asserts: corrections to error messages, and corrections to docs
2022-10-10 09:18:41 +02:00
Philip Meulengracht
b0c7ae1e69
asserts: add support in system user assertion for keyword 'user-valid-for'
2022-10-10 09:10:14 +02:00
Michael Vogt
439f267378
many: replace use of "sanity" for interface implementation checks
...
This commit replaces the use of "sanity" with more inclusive
naming. When `// sanity` is used to check if an interface is
implemented the comment `expected interface is implemented`
is used.
2022-03-14 17:35:33 +01:00
Michael Vogt
50a2d9dc18
asserts: add missing systemUserFormatAnalyze() (thanks Samuele)
2020-06-15 12:12:12 +02:00
Michael Vogt
ed6f0c2096
asserts: improve error messages from assembleSystemUser() (thanks Samuele)
2020-06-15 11:58:56 +02:00
Michael Vogt
1d20b3cf88
asserts,daemon: add support for "serials" field in system-user assertion
...
This will allow to hand out system-user assertions limited to a
limited set of serial assertions.
Implements the spec in https://forum.snapcraft.io/t/18163
2020-06-15 09:31:51 +02:00
Samuele Pedroni
484881a787
drive-by: these are actually about system-user assertion
2019-08-20 14:39:08 +02:00