Orchestrata Ultimate › Tests › Reference › postman › test_config
Tests reference — tests/postman/test_config.py
Module of tests/postman, split out because the directory page would be too large.
Prose pending.
tests/postman/test_config.py
source · 57 tests · 702 lines
Tests for Postman configuration dataclasses.
Covers: postman.types
| Kind | Name | Line | Description |
|---|---|---|---|
| class | TestPostmanConfig |
19 | Test PostmanConfig dataclass without mocking. |
| method | TestPostmanConfig.test_default_values |
22 | Test PostmanConfig default field values. |
| method | TestPostmanConfig.test_custom_values |
37 | Test PostmanConfig with custom values. |
| method | TestPostmanConfig.test_to_dict |
65 | Test PostmanConfig to_dict conversion. |
| method | TestPostmanConfig.test_to_dict_includes_all_fields |
88 | Test that to_dict includes all configuration fields. |
| method | TestPostmanConfig.test_retry_policy_structure |
106 | Test retry_policy dictionary structure. |
| method | TestPostmanConfig.test_custom_retry_policy |
117 | Test PostmanConfig with custom retry policy. |
| method | TestPostmanConfig.test_port_range_values |
133 | Test PostmanConfig with various port values. |
| method | TestPostmanConfig.test_message_size_values |
147 | Test PostmanConfig with various message sizes. |
| method | TestPostmanConfig.test_queue_size_values |
161 | Test PostmanConfig with various queue sizes. |
| method | TestPostmanConfig.test_ttl_values |
172 | Test PostmanConfig with various TTL values. |
| method | TestPostmanConfig.test_thread_pool_size_values |
186 | Test PostmanConfig with various thread pool sizes. |
| method | TestPostmanConfig.test_storage_path_values |
197 | Test PostmanConfig with various storage paths. |
| method | TestPostmanConfig.test_config_mutability |
208 | Test that config values can be modified (dataclass is mutable). |
| method | TestPostmanConfig.test_retry_policy_defaults_preserved |
217 | Test that default retry policy is not shared between instances. |
| method | TestPostmanConfig.test_to_dict_roundtrip |
228 | Test that to_dict produces consistent output and can recreate config. |
| class | TestQueueConfig |
258 | Test QueueConfig dataclass without mocking. |
| method | TestQueueConfig.test_default_values |
261 | Test QueueConfig default field values. |
| method | TestQueueConfig.test_custom_values |
271 | Test QueueConfig with custom values. |
| method | TestQueueConfig.test_to_dict |
287 | Test QueueConfig to_dict conversion. |
| method | TestQueueConfig.test_to_dict_includes_all_fields |
306 | Test that to_dict includes all queue configuration fields. |
| method | TestQueueConfig.test_queue_name_required |
322 | Test that queue name is required. |
| method | TestQueueConfig.test_persistence_enabled_boolean |
332 | Test persistence_enabled with boolean values. |
| method | TestQueueConfig.test_dead_letter_queue_optional |
340 | Test dead_letter_queue optional field. |
| method | TestQueueConfig.test_max_size_values |
354 | Test QueueConfig with various max_size values. |
| method | TestQueueConfig.test_max_age_seconds_values |
365 | Test QueueConfig with various max_age_seconds values. |
| method | TestQueueConfig.test_queue_name_formats |
379 | Test QueueConfig with various queue name formats. |
| method | TestQueueConfig.test_config_modification |
397 | Test that queue config can be modified after creation. |
| method | TestQueueConfig.test_to_dict_with_none_dlq |
406 | Test to_dict when dead_letter_queue is None. |
| method | TestQueueConfig.test_to_dict_consistency |
413 | Test that to_dict produces consistent output. |
| method | TestQueueConfig.test_multiple_queue_configs |
428 | Test creating multiple independent queue configs. |
| method | TestQueueConfig.test_queue_config_equality |
441 | Test queue config equality comparison. |
| method | TestQueueConfig.test_queue_config_inequality |
453 | Test queue config inequality comparison. |
| class | TestPostmanConfigValidation |
462 | Test configuration validation without mocking. |
| method | TestPostmanConfigValidation.test_valid_port_ranges |
465 | Test that valid port ranges are accepted. |
| method | TestPostmanConfigValidation.test_positive_message_size |
474 | Test that positive message sizes are accepted. |
| method | TestPostmanConfigValidation.test_positive_queue_size |
479 | Test that positive queue sizes are accepted. |
| method | TestPostmanConfigValidation.test_positive_ttl |
484 | Test that positive TTL values are accepted. |
| method | TestPostmanConfigValidation.test_positive_thread_pool_size |
489 | Test that positive thread pool sizes are accepted. |
| class | TestConfigEdgeCases |
495 | Test edge cases and boundary conditions without mocking. |
| method | TestConfigEdgeCases.test_zero_port |
498 | Test configuration with port 0. |
| method | TestConfigEdgeCases.test_negative_port |
506 | Test configuration with negative port. |
| method | TestConfigEdgeCases.test_large_port |
514 | Test configuration with port above valid range. |
| method | TestConfigEdgeCases.test_zero_message_size |
522 | Test configuration with zero message size. |
| method | TestConfigEdgeCases.test_negative_message_size |
530 | Test configuration with negative message size. |
| method | TestConfigEdgeCases.test_zero_queue_size |
538 | Test configuration with zero queue size. |
| method | TestConfigEdgeCases.test_negative_queue_size |
546 | Test configuration with negative queue size. |
| method | TestConfigEdgeCases.test_zero_ttl |
554 | Test configuration with zero TTL. |
| method | TestConfigEdgeCases.test_negative_ttl |
562 | Test configuration with negative TTL. |
| method | TestConfigEdgeCases.test_zero_thread_pool_size |
570 | Test configuration with zero thread pool size. |
| method | TestConfigEdgeCases.test_negative_thread_pool_size |
578 | Test configuration with negative thread pool size. |
| method | TestConfigEdgeCases.test_empty_storage_path |
586 | Test configuration with empty storage path. |
| method | TestConfigEdgeCases.test_empty_retry_policy |
591 | Test configuration with empty retry policy. |
| method | TestConfigEdgeCases.test_empty_queue_name |
596 | Test queue configuration with empty name. |
| method | TestConfigEdgeCases.test_zero_queue_max_size |
601 | Test queue configuration with zero max size. |
| method | TestConfigEdgeCases.test_zero_queue_max_age |
609 | Test queue configuration with zero max age. |
| method | TestConfigEdgeCases.test_very_large_values |
617 | Test configuration with very large values. |
| class | TestConfigSerialization |
634 | Test configuration serialization without mocking. |
| method | TestConfigSerialization.test_postman_config_to_dict_types |
637 | Test that to_dict returns correct types. |
| method | TestConfigSerialization.test_queue_config_to_dict_types |
650 | Test that queue config to_dict returns correct types. |
| method | TestConfigSerialization.test_postman_config_dict_completeness |
661 | Test that to_dict includes all data. |
| method | TestConfigSerialization.test_queue_config_dict_completeness |
682 | Test that queue config to_dict includes all data. |