Orchestrata Ultimate › Tests › Reference › agents › test_runtime
Tests reference — tests/agents/test_runtime.py
Module of tests/agents, split out because the directory page would be too large.
Prose pending.
tests/agents/test_runtime.py
source · 51 tests · 612 lines
Covers: agents.exceptions, agents.runtime, agents.types, agents.volk_registry, core.interfaces/ (package)
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestIComponentLifecycle |
106 | |
| method | TestIComponentLifecycle.test_initialize_sets_flag |
108 | |
| method | TestIComponentLifecycle.test_start_sets_running |
114 | |
| method | TestIComponentLifecycle.test_stop_sets_running_false |
119 | |
| method | TestIComponentLifecycle.test_stop_terminates_active_instances |
125 | |
| method | TestIComponentLifecycle.test_stop_handles_terminate_errors |
135 | |
| method | TestIComponentLifecycle.test_get_health_unknown_before_initialize |
160 | |
| method | TestIComponentLifecycle.test_get_health_stopped_when_not_running |
164 | |
| method | TestIComponentLifecycle.test_get_health_healthy_when_running_no_failures |
169 | |
| method | TestIComponentLifecycle.test_get_health_degraded_with_failed_and_active |
175 | |
| method | TestIComponentLifecycle.test_get_health_unhealthy_when_all_failed |
186 | |
| method | TestIComponentLifecycle.test_get_metadata_returns_component_metadata |
193 | |
| class | TestSpawn |
206 | |
| method | TestSpawn.test_spawn_returns_ready_instance |
208 | |
| method | TestSpawn.test_spawn_tracks_instance |
216 | |
| method | TestSpawn.test_spawn_populates_alias_index |
224 | |
| method | TestSpawn.test_spawn_uses_custom_instance_id |
229 | |
| method | TestSpawn.test_spawn_propagates_metadata |
234 | |
| method | TestSpawn.test_spawn_persists_to_redis |
239 | |
| method | TestSpawn.test_spawn_unknown_alias_raises |
246 | |
| method | TestSpawn.test_spawn_registration_denied_raises |
253 | |
| method | TestSpawn.test_spawn_start_denied_raises |
277 | |
| method | TestSpawn.test_spawn_without_redis_state |
297 | |
| method | TestSpawn.test_spawn_persistence_error_is_swallowed |
305 | |
| class | TestTerminate |
332 | |
| method | TestTerminate.test_terminate_sets_status |
334 | |
| method | TestTerminate.test_terminate_clears_alias_entry |
341 | |
| method | TestTerminate.test_terminate_idempotent |
347 | |
| method | TestTerminate.test_terminate_unknown_raises |
354 | |
| method | TestTerminate.test_terminate_graceful_denied_by_governance |
360 | |
| method | TestTerminate.test_terminate_force_bypasses_drain |
380 | |
| method | TestTerminate.test_terminate_drains_instance_with_current_task |
400 | |
| method | TestTerminate.test_force_terminate_success |
408 | |
| method | TestTerminate.test_force_terminate_unknown_raises |
415 | |
| method | TestTerminate.test_force_terminate_denied |
420 | |
| class | TestQuery |
445 | |
| method | TestQuery.test_get_instance_unknown_returns_none |
447 | |
| method | TestQuery.test_list_instances_no_filter |
451 | |
| method | TestQuery.test_list_instances_filter_alias |
459 | |
| method | TestQuery.test_list_instances_filter_status |
467 | |
| method | TestQuery.test_list_instances_combined_filter |
477 | |
| class | TestInstanceHealth |
492 | |
| method | TestInstanceHealth.test_unknown_returns_unknown |
494 | |
| method | TestInstanceHealth.test_terminated_returns_stopped |
498 | |
| method | TestInstanceHealth.test_failed_returns_unhealthy |
506 | |
| method | TestInstanceHealth.test_draining_returns_degraded |
515 | |
| method | TestInstanceHealth.test_healthy_via_prolog |
523 | |
| class | TestStateManagement |
535 | |
| method | TestStateManagement.test_mark_busy_sets_task |
537 | |
| method | TestStateManagement.test_mark_busy_unknown_is_noop |
543 | |
| method | TestStateManagement.test_mark_ready_clears_task |
548 | |
| method | TestStateManagement.test_mark_ready_unknown_is_noop |
555 | |
| method | TestStateManagement.test_mark_failed_clears_task_and_sets_failed |
559 | |
| method | TestStateManagement.test_mark_failed_unknown_is_noop |
566 | |
| class | TestCounters |
575 | |
| method | TestCounters.test_instance_count_and_active_count |
577 | |
| class | TestAgentRuntimeAlias |
600 | |
| method | TestAgentRuntimeAlias.test_alias_is_subclass |
601 | |
| method | TestAgentRuntimeAlias.test_alias_behaves_identically |
605 |