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 (34 lines) | stat: -rw-r--r-- 997 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
summary: Checks for snap create-key

details: |
    Check the command `snap create-key` allows creating
    a key which is displayed through `snap keys` command. 

# slow in autopkgtest (>1m)
backends: [-autopkgtest]

# ppc64el disabled because of https://bugs.launchpad.net/snappy/+bug/1655594
# amazon: requires extra gpg-agent setup
systems: [-ubuntu-core-*, -ubuntu-*-ppc64el, -amazon-*, -centos-*]

prepare: |
    #shellcheck source=tests/lib/mkpinentry.sh
    . "$TESTSLIB"/mkpinentry.sh
    #shellcheck source=tests/lib/random.sh
    . "$TESTSLIB"/random.sh
    kill_gpg_agent

debug: |
    #shellcheck source=tests/lib/random.sh
    . "$TESTSLIB"/random.sh
    debug_random || true

execute: |
    echo "Checking passphrase mismatch error"
    expect -d -f passphrase_mismatch.exp

    echo "Checking successful default key pair generation"
    expect -d -f successful_default.exp

    echo "Checking successful non-default key pair generation"
    expect -d -f successful_non_default.exp