MCPcopy Create free account

hub / github.com/fabriziosalmi/proxmox-lxc-autoscale / endpoints

Endpoints109 in github.com/fabriziosalmi/proxmox-lxc-autoscale

Routeget_full_log
app.route('/get_full_log')
lxc_autoscale/ui/lxc_autoscale_ui.py:None
Routeget_scaling_log
app.route('/get_scaling_log')
lxc_autoscale/ui/lxc_autoscale_ui.py:None
Routeindex
app.route('/')
lxc_autoscale/ui/lxc_autoscale_ui.py:None
Routetest_aggressive
patch('scaling_manager._current_hour', return_value=14)
tests/test_scaling_manager.py:None
Routetest_all_methods_fail
patch('lxc_utils._read_cgroup_memory', new_callable=AsyncMock, return_value=None)
tests/test_coverage_boost.py:None
Routetest_applies_cpu_pinning
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Routetest_boost_applied_on_saturation
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_boost.py:None
Routetest_boost_revert_on_expiry
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_boost.py:None
Routetest_builds_message
patch('scaling_manager.log_json_event', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Routetest_clone
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_clone_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_collects_data_successfully
patch.object(lxc_utils, 'get_memory_usage', new_callable=AsyncMock, return_value=55.0)
tests/test_resource_manager.py:None
Routetest_conservative
patch('scaling_manager._current_hour', return_value=14)
tests/test_scaling_manager.py:None
Routetest_decrease_memory
patch('scaling_manager.run_command', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Routetest_detect_non_hybrid
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_empty_containers
patch.object(lxc_utils, 'get_containers', new_callable=AsyncMock, return_value=[])
tests/test_resource_manager.py:None
Routetest_empty_output
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_energy_mode_reduces
patch.object(sm, 'is_off_peak', return_value=True)
tests/test_scaling_full.py:None
Routetest_error_event_sends_notification
patch('scaling_manager.log_json_event', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Routetest_error_handling
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_explicit_range
patch.object(lxc_utils, 'detect_cpu_topology', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_failed_command_returns_none
patch('lxc_utils.asyncio.create_subprocess_exec')
tests/test_lxc_utils.py:None
Routetest_filters_invalid_ids
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_gathers_all_containers
patch.object(resource_manager, 'collect_data_for_container', new_callable=AsyncMock)
tests/test_resource_manager.py:None
Routetest_get_config_empty
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
Routetest_get_container_config
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_get_container_config_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_get_node_cached
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_get_status
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
Routetest_get_status
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_get_status_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_get_total_cores
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_get_total_memory
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_get_total_memory_none
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_handles_exceptions_gracefully
patch.object(resource_manager, 'collect_data_for_container', new_callable=AsyncMock)
tests/test_resource_manager.py:None
Routetest_handles_missing_config
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock, return_value=None)
tests/test_resource_manager.py:None
Routetest_handles_missing_cores
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_resource_manager.py:None
Routetest_increase_memory
patch('scaling_manager.run_command', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Routetest_info_event
patch('scaling_manager.log_json_event', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Routetest_insufficient_memory
patch('scaling_manager.run_command', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Routetest_invalid_value
patch.object(lxc_utils, 'detect_cpu_topology', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_is_running
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_is_running_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_is_running_false
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_is_running_true
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_list_cmd_uses_shell_false
patch('lxc_utils.asyncio.create_subprocess_exec')
tests/test_security.py:None
Routetest_list_containers
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_list_containers
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_list_containers_empty
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_manual_change_adopted
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_boost.py:None
Routetest_no_boost_below_threshold
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_boost.py:None
Routetest_no_change_in_range
patch('scaling_manager.run_command', new_callable=AsyncMock)
tests/test_scaling_manager.py:None
Routetest_no_config_returns_zeroed_data
patch('lxc_utils.is_container_running', new_callable=AsyncMock, return_value=True)
tests/test_coverage_boost.py:None
Routetest_no_scale_in_range
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Routetest_none_output
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_normal_offpeak_hours
patch('scaling_manager._current_hour', return_value=23)
tests/test_scaling_manager.py:None
Routetest_normal_peak_hours
patch('scaling_manager._current_hour', return_value=14)
tests/test_scaling_manager.py:None
Routetest_off_peak_early_morning
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Routetest_off_peak_night
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Routetest_off_peak_start_boundary
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Routetest_p_cores
patch.object(lxc_utils, 'detect_cpu_topology', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_parse_v1
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_parse_v2
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_parse_v2_missing
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_parses_pct_list
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_pct_exec_fallback
patch('lxc_utils._read_cgroup_memory', new_callable=AsyncMock, return_value=None)
tests/test_coverage_boost.py:None
Routetest_peak_afternoon
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Routetest_peak_boundary
patch('scaling_manager._current_hour')
tests/test_scaling.py:None
Routetest_prefers_pvesh_method_when_available
patch.object(lxc_utils, 'pvesh_stat_method', new_callable=AsyncMock, return_value=12.5)
tests/test_lxc_utils.py:None
Routetest_remote_already_set
patch('lxc_utils.run_command', new_callable=AsyncMock)
tests/test_coverage_boost.py:None
Routetest_remote_append_via_tee
patch('lxc_utils.asyncio.create_subprocess_exec')
tests/test_coverage_boost.py:None
Routetest_remote_read_fails
patch('lxc_utils.run_command', new_callable=AsyncMock, return_value=None)
tests/test_coverage_boost.py:None
Routetest_rollback_calls_pct_set
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_run_raw_logs_warning
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_running
patch.object(lxc_utils, 'run_command', new_callable=AsyncMock)
tests/test_lxc_utils.py:None
Routetest_scale_down_cpu
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Routetest_scale_in_at_min
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Routetest_scale_in_stops_last
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Routetest_scale_out_clones
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="OK")
tests/test_scaling_full.py:None
Routetest_scale_out_max_reached
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Routetest_scale_out_snapshot_fail
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_coverage_final.py:None
Routetest_scale_out_static_ip
patch('scaling_manager.run_command', new_callable=AsyncMock, return_value="OK")
tests/test_coverage_final.py:None
Routetest_scale_up_cpu
patch.object(sm, 'run_command', new_callable=AsyncMock, return_value="")
tests/test_scaling_full.py:None
Routetest_set_cores
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_set_cores
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_set_cores_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_set_memory
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_set_memory
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_set_memory_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_set_network
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
Routetest_set_network_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_skips_empty_groups
patch.object(sm, 'log_scaling_event', new_callable=AsyncMock)
tests/test_scaling_full.py:None
Routetest_skips_stopped_container
patch.object(lxc_utils, 'is_container_running', new_callable=AsyncMock, return_value=False)
tests/test_resource_manager.py:None
Routetest_snapshot
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backends.py:None
Routetest_snapshot_clone
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_snapshot_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_start_container
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
Routetest_start_error
patch('backends.api.ProxmoxAPI')
tests/test_coverage_final.py:None
Routetest_start_stop
patch('backends.api.ProxmoxAPI')
tests/test_coverage_boost.py:None
Routetest_stop_container
patch.object(CLIBackend, '_run_local', new_callable=AsyncMock)
tests/test_backend_factory.py:None
next →1–100 of 109, ranked by callers