diff --git a/ai-hub/integration_tests/test_file_sync.py b/ai-hub/integration_tests/test_file_sync.py index 7e344fa..4d8c3a1 100644 --- a/ai-hub/integration_tests/test_file_sync.py +++ b/ai-hub/integration_tests/test_file_sync.py @@ -19,10 +19,10 @@ Environment assumptions ----------------------- - BASE_URL http://127.0.0.1:8001 (set by conftest.py) + BASE_URL http://127.0.0.1:8000 (inside container) or http://192.168.68.113 (from outside) NODE_1 test-node-1 NODE_2 test-node-2 - USER_ID integration_tester_sync (auto-provisioned if absent) + USER_ID SYNC_TEST_USER_ID env var (required for node access checks) TIMEOUT 10 s for small files, 60 s for 20 MB files """ @@ -35,7 +35,7 @@ # ── Configuration ────────────────────────────────────────────────────────────── BASE_URL = os.getenv("SYNC_TEST_BASE_URL", "http://127.0.0.1:8001") -USER_ID = "integration_tester_sync" +USER_ID = os.getenv("SYNC_TEST_USER_ID", "integration_tester_sync") NODE_1 = os.getenv("SYNC_TEST_NODE1", "test-node-1") NODE_2 = os.getenv("SYNC_TEST_NODE2", "test-node-2") @@ -44,9 +44,9 @@ LARGE_FILE_SIZE_MB = 20 POLL_INTERVAL = 0.5 # seconds -# Paths (note: the test server mounts routes with no /api/v1 prefix) -SESSIONS_PATH = "/sessions" -NODES_PATH = "/nodes" +# Paths — production mounts under /api/v1/ +SESSIONS_PATH = "/api/v1/sessions" +NODES_PATH = "/api/v1/nodes" # ── Module-level: skip the whole file if nodes are not online ──────────────────