Orchestrata Ultimate › Tests › Reference › postman › test_guarantees

Tests reference — tests/postman/test_guarantees.py

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

Prose pending.

tests/postman/test_guarantees.py

source · 44 tests · 1031 lines

Tests for Postman Delivery Guarantees.

Covers: postman.constants, postman.exceptions, postman.guarantees, postman.types

Kind Name Line Description
function test_initialization_default_values 48 Test manager initialization with default values.
function test_initialization_custom_values 59 Test manager initialization with custom values.
function test_at_most_once_single_destination 79 Test AT_MOST_ONCE delivery to single destination.
function test_at_most_once_multiple_destinations 105 Test AT_MOST_ONCE delivery to multiple destinations.
function test_at_most_once_no_retry_on_nack 126 Test AT_MOST_ONCE does not retry on NACK.
function test_at_least_once_tracks_pending_acks 155 Test AT_LEAST_ONCE tracks pending acknowledgments.
function test_at_least_once_acknowledge_removes_pending 176 Test acknowledging removes destination from pending.
function test_at_least_once_all_acks_cleanup 196 Test all ACKs trigger cleanup.
function test_at_least_once_nack_increments_retries 222 Test NACK increments retry counter.
function test_at_least_once_max_retries_exceeded 245 Test max retries exceeded raises error.
function test_at_least_once_partial_nack 280 Test NACK for one destination while others succeed.
function test_exactly_once_first_delivery 316 Test EXACTLY_ONCE allows first delivery.
function test_exactly_once_duplicate_detection 337 Test EXACTLY_ONCE detects and filters duplicates.
function test_exactly_once_is_duplicate_check 364 Test is_duplicate() method.
function test_exactly_once_different_destinations 385 Test EXACTLY_ONCE tracks per message-destination pair.
function test_exactly_once_multiple_destinations_mixed 407 Test EXACTLY_ONCE with mix of new and duplicate destinations.
function test_exactly_once_idempotency_persists 431 Test idempotency tokens persist after ACK.
function test_retry_returns_true_under_max 456 Test retry() returns True when under max retries.
function test_retry_returns_false_at_max 474 Test retry() returns False when at max retries.
function test_retry_exponential_backoff 494 Test retry implements exponential backoff delay.
function test_retry_nonexistent_message 522 Test retry() with nonexistent message returns False.
function test_check_timeouts_none_timed_out 535 Test check_timeouts() returns empty when no timeouts.
function test_check_timeouts_detects_timeout 550 Test check_timeouts() detects timed out ACKs.
function test_check_timeouts_multiple_destinations 569 Test check_timeouts() with multiple timed out destinations.
function test_check_timeouts_removes_at_most_once 591 Test check_timeouts() removes AT_MOST_ONCE from pending.
function test_get_stats_basic 633 Test get_stats() returns correct information.
function test_get_stats_after_ack 651 Test get_stats() updates after acknowledgment.
function test_get_stats_nonexistent_message 668 Test get_stats() for nonexistent message.
function test_acknowledge_nonexistent_message 683 Test acknowledging nonexistent message does not raise error.
function test_acknowledge_already_acked 692 Test acknowledging already ACK'd destination.
function test_nack_nonexistent_message 714 Test NACK for nonexistent message does not raise error.
function test_concurrent_acks 732 Test concurrent acknowledgments are handled safely.
function test_concurrent_send_and_ack 753 Test concurrent send and acknowledge operations.
function test_cleanup_after_all_acks 783 Test cleanup removes all tracking data.
function test_cleanup_preserves_idempotency 806 Test cleanup preserves idempotency tokens.
function test_cleanup_after_max_retries 824 Test cleanup after max retries exceeded.
function test_check_timeouts_acked_not_in_pending 851 Test that ACK'd destinations are not in pending even if timeout reported.
function test_idempotency_token_format 877 Test idempotency token format is message_id:destination.
function test_delivery_result_receipts 898 Test delivery result includes proper receipts.
function test_empty_destinations_list 918 Test sending with empty destinations list.
function test_multiple_messages_isolation 935 Test multiple messages don't interfere with each other.
function test_exactly_once_empty_after_dedup 963 Test EXACTLY_ONCE with all destinations deduplicated.
function test_nack_updates_retry_count 990 Test NACK properly updates retry count in stats.
function test_delivery_modes_tracked 1014 Test delivery modes are tracked per message.