Skip to content

The agent that grows with you

fix(integration): repoint auxiliary bridge source-inspection test to generalized field loop

Tekniumdc130e54bfc0
diff --git a/tests/agent/test_auxiliary_config_bridge.py b/tests/agent/test_auxiliary_config_bridge.py
index 890e54d1a8b..3291fe28690 100644
--- a/tests/agent/test_auxiliary_config_bridge.py
+++ b/tests/agent/test_auxiliary_config_bridge.py
@@ -139,9 +139,11 @@ class TestGatewayBridgeCodeParity:
content = gateway_path.read_text(encoding="utf-8")
# Dynamic env-var derivation present
assert 'f"AUXILIARY_{_upper}_PROVIDER"' in content
- assert 'f"AUXILIARY_{_upper}_MODEL"' in content
- assert 'f"AUXILIARY_{_upper}_BASE_URL"' in content
- assert 'f"AUXILIARY_{_upper}_API_KEY"' in content
+ # MODEL / BASE_URL / API_KEY are bridged through one generalized
+ # field->suffix loop; assert the loop table and the dynamic key shape.
+ assert 'f"AUXILIARY_{_upper}_{_suffix}"' in content
+ for field, suffix in (("model", "MODEL"), ("base_url", "BASE_URL"), ("api_key", "API_KEY")):
+ assert f'("{field}", "{suffix}")' in content
# Built-in bridged keys present
assert "_aux_bridged_keys" in content
assert '"vision"' in content