MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / creds_fail_when_keypair_cannot_load

Function creds_fail_when_keypair_cannot_load

atomic-remote/src/auth/mod.rs:799–810  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected