()
| 797 | |
| 798 | #[test] |
| 799 | fn creds_fail_when_keypair_cannot_load() { |
| 800 | // Identity resolved but its signing key can't be loaded — no token can |
| 801 | // be minted. This stands in for an "expired"/unusable credential, which |
| 802 | // in this self-signed-JWT model means "cannot sign right now". |
| 803 | let issue = evaluate_push_credentials(false, Some("alice"), Some("alice"), |_| false); |
| 804 | assert_eq!( |
| 805 | issue, |
| 806 | Some(CredentialIssue::KeypairUnavailable { |
| 807 | name: "alice".to_string() |
| 808 | }) |
| 809 | ); |
| 810 | } |
| 811 | |
| 812 | #[test] |
| 813 | fn credential_issue_messages_are_actionable() { |
nothing calls this directly
no test coverage detected