feat: update values.yaml and refactor cleanup paths
- Changed project name in values.yaml from "sientia-dataops-model-manager" to "sientia-model-manager". - Added new environment variables for GitHub repository and branch configuration. - Refactored cleanup paths to use a centralized REPORTS_TEMP_DIR constant for consistency. - Updated runtime configurations and adjusted volume mounts for better resource management. - Enabled SSH access for the model manager and disabled Grafana dashboard creation. - Updated tests to reflect changes in directory paths and environment variable usage.
This commit is contained in:
18
tests/test_runtime_paths.py
Normal file
18
tests/test_runtime_paths.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""Tests for runtime filesystem layout constants."""
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
|
||||
def test_ensure_runtime_directories_creates_expected_paths():
|
||||
from model_manager.runtime_paths import (
|
||||
LOGS_DIR,
|
||||
REPORTS_ROOT,
|
||||
REPORTS_TEMP_DIR,
|
||||
ensure_runtime_directories,
|
||||
)
|
||||
|
||||
with patch('model_manager.runtime_paths.makedirs') as makedirs_mock:
|
||||
ensure_runtime_directories()
|
||||
|
||||
created = {call.args[0] for call in makedirs_mock.call_args_list}
|
||||
assert created == {REPORTS_ROOT, REPORTS_TEMP_DIR, LOGS_DIR}
|
||||
Reference in New Issue
Block a user