Files
snapd/tests/lib/assertions
Samuele Pedroni 26a9ebba4b tests: match auto-import system-user to the model authority
auto-import if it exists <model-authority-id>.auto-import.assert
2020-11-30 14:06:57 +01:00
..
2017-01-11 10:19:50 +01:00

Generating model assertions

Signed model assertions for use in the spread tests can be generated using gendeveloper1model tool. The assertion is signed by developer1 key, which is built-into the snapd binary used during the tests.

To build the tool:

$ export GO111MODULE=off
$ go install ./tests/lib/gendeveloper1model

Generating the assertions is done like this:

$ cd tests/lib/assertions
$ gendeveloper1model < developer1-pc-18.model.json > developer1-pc-18.model