Report keychain signature status
This commit is contained in:
parent
48a83c5a26
commit
788522404d
7 changed files with 20 additions and 4 deletions
|
|
@ -709,6 +709,7 @@ fn keychain_init_and_status_use_local_keychain_log() {
|
|||
geth_control::ControlResponse::KeychainStatus(status) => {
|
||||
assert!(status.initialized);
|
||||
assert_eq!(status.admin_keys, 1);
|
||||
assert_eq!(status.signatures, 0);
|
||||
assert_eq!(status.users, 0);
|
||||
}
|
||||
other => panic!("unexpected response: {other:?}"),
|
||||
|
|
@ -762,6 +763,15 @@ fn keychain_init_can_record_openssh_signatures() {
|
|||
.list_keychain_signatures()
|
||||
.expect("list signatures");
|
||||
assert_eq!(signatures.len(), 2);
|
||||
|
||||
let response = geth_node::handle_request(&node, geth_control::ControlRequest::KeychainStatus)
|
||||
.expect("keychain status");
|
||||
match response {
|
||||
geth_control::ControlResponse::KeychainStatus(status) => {
|
||||
assert_eq!(status.signatures, 2);
|
||||
}
|
||||
other => panic!("unexpected response: {other:?}"),
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue