Orchestrata Ultimate › Tests › Reference › postman › test_routing_rules
Tests reference — tests/postman/test_routing_rules.py
Module of tests/postman, split out because the directory page would be too large.
Prose pending.
tests/postman/test_routing_rules.py
source · 39 tests · 994 lines
Tests for Routing Rules Engine.
Covers: postman.exceptions, postman.filter, postman.routing_rules, postman.types
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_add_rule_basic |
124 | Test adding a basic routing rule. |
| function | test_add_rule_multiple |
138 | Test adding multiple routing rules. |
| function | test_add_rule_empty_name_rejected |
150 | Test that rules with empty names are rejected. |
| function | test_add_rule_no_destinations_rejected |
167 | Test that rules without destinations are rejected. |
| function | test_add_rule_with_complex_criteria |
183 | Test adding rule with complex filter criteria. |
| function | test_remove_rule_success |
212 | Test successfully removing a routing rule. |
| function | test_remove_rule_nonexistent |
229 | Test removing a non-existent rule returns False. |
| function | test_remove_rule_multiple |
235 | Test removing one rule from multiple rules. |
| function | test_remove_rule_twice |
251 | Test removing the same rule twice. |
| function | test_update_rule_success |
269 | Test successfully updating a routing rule. |
| function | test_update_rule_nonexistent |
295 | Test updating a non-existent rule returns False. |
| function | test_update_rule_forces_rule_id |
308 | Test that update_rule forces the correct rule_id. |
| function | test_list_rules_empty |
335 | Test listing rules when none exist. |
| function | test_list_rules_single |
341 | Test listing a single rule. |
| function | test_list_rules_multiple |
350 | Test listing multiple rules. |
| function | test_evaluate_no_rules |
374 | Test evaluation with no rules returns empty list. |
| function | test_evaluate_single_matching_rule |
380 | Test evaluation with a single matching rule. |
| function | test_evaluate_no_matching_rules |
398 | Test evaluation when no rules match. |
| function | test_evaluate_disabled_rule_ignored |
417 | Test that disabled rules are not evaluated. |
| function | test_evaluate_multiple_matching_rules |
435 | Test evaluation with multiple matching rules. |
| function | test_evaluate_priority_ordering |
468 | Test that rules are evaluated in priority order. |
| function | test_evaluate_same_priority_sorted_by_name |
508 | Test that rules with same priority are sorted by name. |
| function | test_evaluate_sender_pattern_match |
552 | Test rule matching based on sender pattern. |
| function | test_evaluate_recipient_pattern_match |
575 | Test rule matching based on recipient pattern. |
| function | test_evaluate_content_pattern_match |
598 | Test rule matching based on content pattern. |
| function | test_evaluate_wildcard_patterns |
621 | Test wildcard pattern matching. |
| function | test_evaluate_and_logic |
647 | Test AND logic in filter criteria. |
| function | test_evaluate_or_logic |
674 | Test OR logic in filter criteria. |
| function | test_evaluate_multiple_destinations |
711 | Test rule with multiple destinations. |
| function | test_evaluate_stop_on_match_true |
729 | Test stop_on_match=True stops further evaluation. |
| function | test_evaluate_stop_on_match_false |
759 | Test stop_on_match=False continues evaluation. |
| function | test_evaluate_stop_on_match_only_if_matched |
790 | Test stop_on_match only stops if rule actually matches. |
| function | test_concurrent_add_rules |
824 | Test concurrent rule additions. |
| function | test_concurrent_remove_rules |
849 | Test concurrent rule removals. |
| function | test_concurrent_evaluate |
879 | Test concurrent rule evaluations. |
| function | test_evaluate_empty_envelope_content |
909 | Test evaluation with empty envelope fields. |
| function | test_evaluate_rule_with_no_criteria |
928 | Test rule with no filter criteria matches all messages. |
| function | test_custom_message_filter |
945 | Test using custom message filter instance. |
| function | test_duplicate_destinations_preserved |
965 | Test that duplicate destinations from multiple rules are preserved. |