Orchestrata Ultimate › Tests › Reference › kernel › test_performance_manager_expanded

Tests reference — tests/kernel/test_performance_manager_expanded.py

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

Prose pending.

tests/kernel/test_performance_manager_expanded.py

source · 129 tests · 1432 lines

Covers: core.redis_factory, kernel.performance_manager

Kind Name Line Description
function test_utc_now 63
class TestSLATarget 73
method TestSLATarget.test_all_members 74
class TestSLAThreshold 87
method TestSLAThreshold.test_is_met_lt 88
method TestSLAThreshold.test_is_met_lte 94
method TestSLAThreshold.test_is_met_gt 99
method TestSLAThreshold.test_is_met_gte 104
method TestSLAThreshold.test_is_met_unknown_comparison 109
method TestSLAThreshold.test_default_thresholds 113
class TestLatencyTracker 125
method TestLatencyTracker.test_record_failure 126
method TestLatencyTracker.test_get_percentile 133
method TestLatencyTracker.test_get_p99 141
method TestLatencyTracker.test_get_mean_empty 149
method TestLatencyTracker.test_ring_buffer_overflow 153
method TestLatencyTracker.test_reset_clears_counts 160
method TestLatencyTracker.test_get_stats_with_samples 170
class TestThroughputTracker 188
method TestThroughputTracker.test_record_multiple 189
method TestThroughputTracker.test_get_rate_prunes_old 194
method TestThroughputTracker.test_total_independent_of_window 201
class TestMemoryTracker 213
method TestMemoryTracker.test_get_average_mb_empty 214
method TestMemoryTracker.test_get_average_mb 218
method TestMemoryTracker.test_get_total_mb_empty 224
method TestMemoryTracker.test_remove_missing_session 228
class TestUptimeTracker 238
method TestUptimeTracker.test_uptime_before_start 239
method TestUptimeTracker.test_multiple_downtime_intervals 243
method TestUptimeTracker.test_mark_up_without_down 258
method TestUptimeTracker.test_mark_down_while_already_down 264
class TestLRUCache 280
method TestLRUCache.test_get_missing 281
method TestLRUCache.test_ttl_expiry 287
method TestLRUCache.test_put_overwrite 294
method TestLRUCache.test_invalidate_missing 300
method TestLRUCache.test_invalidate_existing 304
method TestLRUCache.test_clear 310
method TestLRUCache.test_hit_rate 317
method TestLRUCache.test_eviction_order 327
class TestConnectionPool 345
method TestConnectionPool.test_acquire_and_release 347
method TestConnectionPool.test_acquire_closed_raises 360
method TestConnectionPool.test_reuse_pooled_connection 370
method TestConnectionPool.test_acquire_timeout 381
method TestConnectionPool.test_release_to_closed_pool 391
method TestConnectionPool.test_stale_connection_discarded 401
method TestConnectionPool.test_health_check_failure 413
method TestConnectionPool.test_health_check_exception 427
method TestConnectionPool.test_close_with_aclose 441
method TestConnectionPool.test_close_with_sync_close 458
class TestBatchProcessor 480
method TestBatchProcessor.test_flush_on_size 482
method TestBatchProcessor.test_force_flush 498
method TestBatchProcessor.test_flush_empty_no_processor_call 514
method TestBatchProcessor.test_timed_flush 525
method TestBatchProcessor.test_stats 539
class TestRingBuffer 557
method TestRingBuffer.test_push_and_pop 558
method TestRingBuffer.test_eviction_on_full 566
method TestRingBuffer.test_peek 574
method TestRingBuffer.test_is_empty_is_full 581
method TestRingBuffer.test_to_list 589
method TestRingBuffer.test_wraparound 595
method TestRingBuffer.test_len 603
class TestBackpressureController 615
method TestBackpressureController.test_normal_state 616
method TestBackpressureController.test_warning_state 622
method TestBackpressureController.test_critical_state 628
method TestBackpressureController.test_shedding_state 635
method TestBackpressureController.test_recovery_to_normal 644
method TestBackpressureController.test_load_clamping 651
method TestBackpressureController.test_state_callback 658
method TestBackpressureController.test_callback_exception_logged 670
method TestBackpressureController.test_get_stats 680
class TestConsistentHash 694
method TestConsistentHash.test_add_and_get_node 695
method TestConsistentHash.test_remove_node 702
method TestConsistentHash.test_remove_missing_node 709
method TestConsistentHash.test_add_duplicate 713
method TestConsistentHash.test_get_node_empty_ring 719
method TestConsistentHash.test_get_nodes 723
method TestConsistentHash.test_get_nodes_count_zero 731
method TestConsistentHash.test_get_nodes_empty_ring 736
class TestLeaderElection 746
method TestLeaderElection.test_local_fallback_first_wins 748
method TestLeaderElection.test_local_fallback_reacquire 755
method TestLeaderElection.test_release_leadership 763
method TestLeaderElection.test_release_when_not_leader 771
method TestLeaderElection.test_leader_callback 776
method TestLeaderElection.test_follower_callback 788
method TestLeaderElection.test_callback_exception 801
method TestLeaderElection.test_redis_path_setnx_success 829
method TestLeaderElection.test_redis_path_already_leader 841
method TestLeaderElection.test_redis_path_another_leader 855
method TestLeaderElection.test_redis_release 869
method TestLeaderElection.test_redis_error_during_acquire 885
class TestClusterManager 907
method TestClusterManager.test_start_stop 909
method TestClusterManager.test_register_and_get_node 917
method TestClusterManager.test_get_healthy_nodes 935
method TestClusterManager.test_update_node_health_recovery 954
method TestClusterManager.test_cluster_stats 982
method TestClusterManager.test_node_added_callback 991
method TestClusterManager.test_node_removed_callback 1014
method TestClusterManager.test_rebalance_callback 1043
method TestClusterManager.test_callback_exception 1057
class TestAutoScaler 1084
method TestAutoScaler.test_scale_up 1085
method TestAutoScaler.test_scale_down 1091
method TestAutoScaler.test_no_op 1098
method TestAutoScaler.test_max_instances_cap 1105
method TestAutoScaler.test_min_instances_floor 1111
method TestAutoScaler.test_cooldown 1117
method TestAutoScaler.test_set_current_instances_clamping 1124
method TestAutoScaler.test_recent_decisions 1131
method TestAutoScaler.test_recent_decisions_default_count 1138
class TestChaosController 1151
method TestChaosController.test_enable_disable 1152
method TestChaosController.test_add_remove_fault 1160
method TestChaosController.test_inject_latency 1174
method TestChaosController.test_inject_error 1190
method TestChaosController.test_inject_timeout 1203
method TestChaosController.test_no_inject_when_disabled 1216
method TestChaosController.test_no_inject_when_probability_zero 1222
method TestChaosController.test_target_mismatch 1235
method TestChaosController.test_target_match 1250
method TestChaosController.test_disabled_fault 1265
method TestChaosController.test_inject_count_tracked 1279
class TestPerformanceManager 1298
method TestPerformanceManager.test_init_defaults 1299
method TestPerformanceManager.test_init_with_config 1305
method TestPerformanceManager.test_start_stop 1322
method TestPerformanceManager.test_record_and_get_latency 1329
method TestPerformanceManager.test_throughput 1338
method TestPerformanceManager.test_session_memory 1345
method TestPerformanceManager.test_uptime 1351
method TestPerformanceManager.test_cache 1358
method TestPerformanceManager.test_backpressure 1368
method TestPerformanceManager.test_cluster_methods 1376
method TestPerformanceManager.test_leader 1387
method TestPerformanceManager.test_scaling 1391
method TestPerformanceManager.test_chaos 1399
method TestPerformanceManager.test_sla_compliance 1412
method TestPerformanceManager.test_all_stats 1421