Orchestrata Ultimate › Tests › Reference › kernel › test_resource_monitor

Tests reference — tests/kernel/test_resource_monitor.py

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

Prose pending.

tests/kernel/test_resource_monitor.py

source · 26 tests · 368 lines

Tests for kernel.resource_monitor.

Covers: kernel.resource_monitor

Kind Name Line Description
class TestResourceAlert 72
method TestResourceAlert.test_post_init_message 73
method TestResourceAlert.test_custom_message 77
class TestResourceSnapshot 84
method TestResourceSnapshot.test_to_dict 85
class TestResourceMonitorInit 109
method TestResourceMonitorInit.test_default_thresholds 110
method TestResourceMonitorInit.test_custom_thresholds 116
method TestResourceMonitorInit.test_history_property 124
class TestResourceMonitorPsutilWrappers 130 Tests that exercise the real psutil wrappers against the live system.
method TestResourceMonitorPsutilWrappers.test_get_cpu_percent 133
method TestResourceMonitorPsutilWrappers.test_get_memory_stats 139
method TestResourceMonitorPsutilWrappers.test_get_disk_stats 147
class TestResourceMonitorMethods 157
method TestResourceMonitorMethods.test_check_thresholds_no_alert 158
method TestResourceMonitorMethods.test_check_thresholds_cpu_alert 175
method TestResourceMonitorMethods.test_check_thresholds_all_alerts 191
method TestResourceMonitorMethods.test_take_snapshot 208
method TestResourceMonitorMethods.test_take_snapshot_with_alert 225
method TestResourceMonitorMethods.test_take_snapshot_callback 240
method TestResourceMonitorMethods.test_take_snapshot_callback_error 256
method TestResourceMonitorMethods.test_history_limit 275
method TestResourceMonitorMethods.test_get_average_cpu_empty 293
method TestResourceMonitorMethods.test_get_average_cpu 297
method TestResourceMonitorMethods.test_get_peak_cpu_empty 312
method TestResourceMonitorMethods.test_get_peak_cpu 316
method TestResourceMonitorMethods.test_is_cpu_healthy_below_threshold 331
method TestResourceMonitorMethods.test_is_cpu_healthy_above_threshold 335
method TestResourceMonitorMethods.test_set_thresholds 339
method TestResourceMonitorMethods.test_set_thresholds_partial 346
method TestResourceMonitorMethods.test_get_system_summary 352