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
|