test: cover Bedrock Mantle in the null safeguards case and match the vendor's non-list wording

The Rust null-safeguards regression test now also runs for bedrock_mantle, whose beta is keyed on the field being present. The scripted Anthropic peer answers a non-list safeguards value with the real API's "valid array" wording.
This commit is contained in:
mateo-berri 2026-10-17 03:16:57 -07:00
parent 0906914990
commit 78e110d7eb
2 changed files with 2 additions and 2 deletions

View file

@ -385,7 +385,7 @@ async fn safeguards_add_the_dangerous_tool_use_beta_only_where_the_beta_map_has_
#[tokio::test]
async fn null_safeguards_are_dropped_instead_of_sent_without_their_beta(
call: MessagesCall,
#[values("anthropic", "azure_ai", "deepseek", "minimax")] provider: &str,
#[values("anthropic", "azure_ai", "bedrock_mantle", "deepseek", "minimax")] provider: &str,
) {
let upstream = upstream([message_response()]).await;

View file

@ -44,7 +44,7 @@ DEEPSEEK_TARGET: Final = "/anthropic/v1/messages"
SCRIPTED_TARGETS: Final = frozenset({ANTHROPIC_TARGET, DEEPSEEK_TARGET, VERTEX_TARGET, VERTEX_STREAM_TARGET})
REPLY_TEXT: Final = "safeguards beta control"
EXTRA_INPUTS_MESSAGE: Final = "safeguards: Extra inputs are not permitted"
NOT_A_LIST_MESSAGE: Final = "safeguards: Input should be a valid list"
NOT_A_LIST_MESSAGE: Final = "safeguards: Input should be a valid array"
OVERLOADED_MESSAGE: Final = "Overloaded"
SAFEGUARDS: Final[tuple[JsonValue, ...]] = (
{