File: task.yaml

package info (click to toggle)
snapd 2.71-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,536 kB
  • sloc: ansic: 16,114; sh: 16,105; python: 9,941; makefile: 1,890; exp: 190; awk: 40; xml: 22
file content (14 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
summary: Check snap known --remote

details: |
    The "snap known" command allows to query the store for assertions that have
    particular properties, such as assertion type. Those assertions do not need
    to be in the snapd assertion store on the local system.

execute: |
    echo "Check getting assertion from the store"
    output=$(snap known --remote model series=16 brand-id=canonical model=pi2)
    echo "$output" |MATCH "type: model"
    echo "$output" |MATCH "series: 16"
    echo "$output" |MATCH "brand-id: canonical"
    echo "$output" |MATCH "model: pi2"