Skip to content

Commit

Permalink
Add access key checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dacut committed Oct 3, 2022
1 parent e0e511f commit 6a70c97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions principal/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,5 +321,12 @@ mod test {
assert_eq!(prefixes[i].to_string().as_str(), prefixes[i].as_ref());
}
}

#[test]
fn check_access_key() {
// Miscellaneous bits for AKIA/access key.
assert_eq!(IamIdPrefix::AccessKey.as_ref(), "AKIA");
assert_eq!(format!("{}", IamIdPrefix::AccessKey).as_str(), "AKIA");
}
}
// end tests -- do not delete; needed for coverage.

0 comments on commit 6a70c97

Please sign in to comment.