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

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

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(