From 2beb0d1436f3eef0d782f7cfd2150b794fa72052 Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 6 Nov 2025 19:56:13 +0000 Subject: [PATCH] Fix file references after repository reorganization Updated references in: - deploy/deploy-onprem.sh: Fixed paths for test-deployment.sh and test_dashboard_local.py - deploy/validate-deployment.sh: Fixed path for test-e2e-deployment.py - tests/integration/test-e2e-deployment.py: Fixed paths for mock servers All file references now point to correct locations in the new organized structure --- deploy/deploy-onprem.sh | 4 ++-- deploy/validate-deployment.sh | 2 +- tests/integration/test-e2e-deployment.py | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/deploy-onprem.sh b/deploy/deploy-onprem.sh index 8604017..35f9124 100644 --- a/deploy/deploy-onprem.sh +++ b/deploy/deploy-onprem.sh @@ -97,8 +97,8 @@ copy_files() { # Copy scripts cp scripts/* $DEPLOYMENT_DIR/scripts/ - cp test-deployment.sh $DEPLOYMENT_DIR/ - cp test_dashboard_local.py $DEPLOYMENT_DIR/ + cp deploy/test-deployment.sh $DEPLOYMENT_DIR/ + cp tests/test_dashboard_local.py $DEPLOYMENT_DIR/ # Copy monitoring configuration cp -r monitoring/* $DEPLOYMENT_DIR/monitoring/ diff --git a/deploy/validate-deployment.sh b/deploy/validate-deployment.sh index 12362a3..bed2166 100644 --- a/deploy/validate-deployment.sh +++ b/deploy/validate-deployment.sh @@ -299,7 +299,7 @@ EOF echo "📋 Next Steps:" echo " Review full report: $report_file" echo " Address any warnings or errors" - echo " Run end-to-end tests: python test-e2e-deployment.py" + echo " Run end-to-end tests: python tests/integration/test-e2e-deployment.py" echo "" echo "==================================================" } diff --git a/tests/integration/test-e2e-deployment.py b/tests/integration/test-e2e-deployment.py index 3b8a3a3..75b6f44 100644 --- a/tests/integration/test-e2e-deployment.py +++ b/tests/integration/test-e2e-deployment.py @@ -37,14 +37,14 @@ class E2ETestRunner: try: # Start mock SCADA server self.mock_scada_process = subprocess.Popen( - [sys.executable, "mock-scada-server.py"], + [sys.executable, "tests/mocks/mock-scada-server.py"], stdout=subprocess.PIPE, stderr=subprocess.PIPE ) # Start mock optimization server self.mock_optimization_process = subprocess.Popen( - [sys.executable, "mock-optimization-server.py"], + [sys.executable, "tests/mocks/mock-optimization-server.py"], stdout=subprocess.PIPE, stderr=subprocess.PIPE ) @@ -377,7 +377,7 @@ def main(): print("="*60) # Check if required files exist - required_files = ["mock-scada-server.py", "mock-optimization-server.py", "src/main.py"] + required_files = ["tests/mocks/mock-scada-server.py", "tests/mocks/mock-optimization-server.py", "src/main.py"] for file in required_files: if not Path(file).exists(): print(f"❌ Required file not found: {file}")