Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
bkioshn committed Nov 29, 2024
1 parent eea1afa commit 6da8f96
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions rust/rbac-registration/src/cardano/cip509/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,13 @@ mod tests {

let mut decoder = Decoder::new(aux_data.as_slice());
let cip509 = Cip509::decode(&mut decoder, &mut ()).expect("Failed to decode Cip509");
assert!(validate_role_singing_key(
&cip509.x509_chunks.0.role_set.as_ref().unwrap()[0],
&mut validation_report
));
if let Some(role_set) = &cip509.x509_chunks.0.role_set {
for role in role_set {
if role.role_number == 0 {
assert!(validate_role_singing_key(role, &mut validation_report,));
}
}
}
}

#[test]
Expand Down

0 comments on commit 6da8f96

Please sign in to comment.