Orchestrata Ultimate › Tests › Reference › orchestrator › test_intent_broker_extended

Tests reference — tests/orchestrator/test_intent_broker_extended.py

Module of tests/orchestrator, split out because the directory page would be too large.

Prose pending.

tests/orchestrator/test_intent_broker_extended.py

source · 14 tests · 459 lines

Extended coverage tests for orchestrata_ultimate.orchestrator.intent_broker.

Covers: agents.volk_registry, orchestrator.impact.analyzer, orchestrator.intent_broker, orchestrator.intent_lifecycle, orchestrator.intent_router, orchestrator.intent_types, orchestrator.intent_validator, postman.postman

Kind Name Line Description
class TestIntentBrokerExtended 168
method TestIntentBrokerExtended.test_process_intent_impact_analysis_exception_propagates 169 Impact analyzer raising inside analyze() hits broker except block.
method TestIntentBrokerExtended.test_process_intent_dispatch_failure 197 Dispatcher returning success=False exercises the broker else-branch.
method TestIntentBrokerExtended.test_process_tool_call_with_session_and_priority 223 process_tool_call forwards session_id and priority into the intent.
method TestIntentBrokerExtended.test_process_intent_with_explicit_target_volk 248 An intent with target_volk already set routes explicitly.
method TestIntentBrokerExtended.test_build_intent_text_no_resource_path 276 _build_intent_text omits the resource_path when empty.
method TestIntentBrokerExtended.test_build_intent_text_no_parameters 301 _build_intent_text omits parameters when empty.
method TestIntentBrokerExtended.test_build_intent_text_parameter_truncation 328 _build_intent_text includes at most the first 3 parameters.
method TestIntentBrokerExtended.test_get_metrics_after_rejected 355 get_metrics reflects a rejected intent.
method TestIntentBrokerExtended.test_intent_broker_error_is_exception 383 IntentBrokerError is a proper Exception subclass.
method TestIntentBrokerExtended.test_intent_broker_config_defaults 389 IntentBrokerConfig fills None for optional dependencies.
class TestBrokerMetricsExtended 409
method TestBrokerMetricsExtended.test_multiple_successes_avg_latency 410 avg_latency_ms averages across multiple successful records.
method TestBrokerMetricsExtended.test_failed_only_avg_latency_zero 423 avg_latency_ms stays 0.0 when only failures are recorded.
method TestBrokerMetricsExtended.test_uptime_seconds_positive 434 uptime_seconds is non-negative and increases over time.
method TestBrokerMetricsExtended.test_all_record_methods 445 Record every metric type and verify totals.