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:
parent
efeb2751e4
commit
ad2fecab31
1 changed files with 12 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue