Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Aug 4, 2023
1 parent 0b764db commit 8a6e081
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions iot_verifier/src/poc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1028,10 +1028,15 @@ mod tests {
.try_into()
.unwrap();
assert!(verify_denylist(&PublicKeyBinary::from_str(PUBKEY1).unwrap(), &deny_list).is_ok());
assert_eq!(Err(InvalidReason::Denied), verify_denylist(&PublicKeyBinary::from_str(DENIED_PUBKEY1).unwrap(), &deny_list));
assert_eq!(
Err(InvalidReason::Denied),
verify_denylist(
&PublicKeyBinary::from_str(DENIED_PUBKEY1).unwrap(),
&deny_list
)
);
}


#[test]
fn test_verify_capability() {
assert!(verify_gw_capability(true).is_ok());
Expand Down

0 comments on commit 8a6e081

Please sign in to comment.