mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-05-02 08:42:55 +00:00
Add keyring test for implicitly created identity
This commit is contained in:
parent
be479dafe9
commit
9e2eb1aea4
@ -29,6 +29,7 @@ setup() {
|
|||||||
|
|
||||||
assert_keyring_list() {
|
assert_keyring_list() {
|
||||||
assertStdoutLineCount --stdout --stderr '==' $1
|
assertStdoutLineCount --stdout --stderr '==' $1
|
||||||
|
assertStdoutGrep --stderr --matches=$1 "^[0-9a-fA-F]\{64\}:[0-9*#+]*:.*\$"
|
||||||
tfw_cat --stdout
|
tfw_cat --stdout
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -99,4 +100,12 @@ test_KeyringPinIdentityPinless() {
|
|||||||
assert_keyring_list 0
|
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 "$@"
|
runTests "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user