mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-20 21:53:12 +00:00
Add explicit set did test
This commit is contained in:
parent
e00c945fd1
commit
534b01ba2a
@ -56,6 +56,21 @@ test_KeyringCreate() {
|
||||
assert_keyring_list 0
|
||||
}
|
||||
|
||||
doc_DidName="Create an identity & set the name and number"
|
||||
test_DidName() {
|
||||
executeOk_servald keyring add ''
|
||||
assertStdoutGrep --matches=1 "^sid:"
|
||||
assertStdoutLineCount '==' 1
|
||||
extract_stdout_keyvalue SID sid "$rexp_sid"
|
||||
executeOk_servald keyring set did "$SID" '123456' 'Display Name'
|
||||
assertStdoutGrep --matches=1 "^sid:$SID\$"
|
||||
assertStdoutGrep --matches=1 "^did:123456\$"
|
||||
assertStdoutGrep --matches=1 "^name:Display Name\$"
|
||||
assertStdoutLineCount '==' 3
|
||||
executeOk_servald keyring list
|
||||
assertStdoutGrep --stderr --matches=1 "^$SID:123456:Display Name\$"
|
||||
}
|
||||
|
||||
doc_Pinless="No keyring PIN with PIN-less identities"
|
||||
test_Pinless() {
|
||||
executeOk_servald keyring add ''
|
||||
|
Loading…
Reference in New Issue
Block a user