claude-connector: Messages API backend for API-key auth (tools, thinking, caching) #4

Merged
eureka merged 7 commits from hands/connector-messages-backend into main 2026-11-29 20:25:20 +00:00
Showing only changes of commit ad2fecab31 - Show all commits

claude-connector messages test: an endpoint that is no URI is no outage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Meta Vens 2026-11-29 21:17:48 +01:00

View file

@ -751,6 +751,18 @@ fn a_dead_endpoint_and_a_slow_one_are_typed() {
drop(silent);
}
#[test]
fn an_endpoint_that_is_no_uri_is_a_provider_failure_not_an_outage() {
let (events, outcome) = backend("not a uri".to_string(), Some(KEY)).run(&request());
assert!(events.is_empty());
let (kind, message, _) = failure_of(&outcome);
assert_eq!(kind, FailureKind::Provider);
assert_eq!(
message,
"anthropic-messages: the request could not be built"
);
}
#[test]
fn a_response_over_its_cap_is_a_provider_failure() {
let reply = answer(