Orchestrata Ultimate › Tests › Reference › agents › test_postman_adapter

Tests reference — tests/agents/test_postman_adapter.py

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

Prose pending.

tests/agents/test_postman_adapter.py

source · 17 tests · 344 lines

Covers: agents.postman_adapter, agents.types, core.base.traces, core.packet/ (package)

Kind Name Line Description
class TestPacketToTask 82
method TestPacketToTask.test_basic_packet_conversion 83
method TestPacketToTask.test_correlation_id_and_thread_id_are_preserved_separately 110 REQ-012-023: both ids survive the conversion, un-conflated.
method TestPacketToTask.test_packet_without_subject_defaults_action_to_process 136
method TestPacketToTask.test_packet_without_to_agent_defaults_target_to_empty 145
method TestPacketToTask.test_packet_with_metadata_carries_into_parameters 156
class TestProcessNext 177
method TestProcessNext.test_returns_none_when_queue_empty 178
method TestProcessNext.test_processes_queued_packet 184
method TestProcessNext.test_acknowledges_on_success 197
method TestProcessNext.test_rejects_packet_on_executor_exception 205
method TestProcessNext.test_returns_failed_taskresult_with_task_id 217
class TestProcessAll 234
method TestProcessAll.test_empty_queue_returns_empty_list 235
method TestProcessAll.test_processes_all_queued_packets 242
method TestProcessAll.test_process_all_stops_when_queue_drained 258
method TestProcessAll.test_process_all_mixed_success_and_failure 270
class TestPendingCount 307
method TestPendingCount.test_empty_queue_zero 308
method TestPendingCount.test_count_reflects_queued_packets 314
method TestPendingCount.test_count_drops_as_packets_processed 328