Add keyring test for implicitly created identity

This commit is contained in:
Jeremy Lakeman 2013-02-28 16:27:26 +10:30
parent be479dafe9
commit 9e2eb1aea4

View File

@ -29,6 +29,7 @@ setup() {
assert_keyring_list() {
assertStdoutLineCount --stdout --stderr '==' $1
assertStdoutGrep --stderr --matches=$1 "^[0-9a-fA-F]\{64\}:[0-9*#+]*:.*\$"
tfw_cat --stdout
}
@ -99,4 +100,12 @@ test_KeyringPinIdentityPinless() {
assert_keyring_list 0
}
doc_KeyringAutoCreate="Starting a server with no keyring creates a valid identity"
test_KeyringAutoCreate() {
executeOk_servald start
executeOk_servald keyring list
assert_keyring_list 1
executeOk_servald stop
}
runTests "$@"