Skip to content

Commit

Permalink
Fix IT networking
Browse files Browse the repository at this point in the history
  • Loading branch information
Weves committed Feb 2, 2025
1 parent 7869a5c commit 3944a61
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pr-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ jobs:
- name: Start Mock Services
run: |
cd backend/tests/integration/mock_services
docker compose -f docker-compose.mock-it-services.yml -p mock-it-services-stack up -d
docker compose -f docker-compose.mock-it-services.yml \
-p mock-it-services-stack up -d
- name: Run Standard Integration Tests
run: |
Expand All @@ -206,7 +207,7 @@ jobs:
-e CONFLUENCE_USER_NAME=${CONFLUENCE_USER_NAME} \
-e CONFLUENCE_ACCESS_TOKEN=${CONFLUENCE_ACCESS_TOKEN} \
-e TEST_WEB_HOSTNAME=test-runner \
-e MOCK_CONNECTOR_SERVER_HOST=host.docker.internal \
-e MOCK_CONNECTOR_SERVER_HOST=mock_connector_server \
-e MOCK_CONNECTOR_SERVER_PORT=8001 \
onyxdotapp/onyx-integration:test \
/app/tests/integration/tests \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ services:
dockerfile: Dockerfile
ports:
- "8001:8001"
environment:
- MOCK_CONNECTOR_SERVER_HOST=host.docker.internal
- MOCK_CONNECTOR_SERVER_PORT=8001
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 10s
timeout: 5s
retries: 5

networks:
- onyx-stack_default
networks:
onyx-stack_default:
name: onyx-stack_default
external: true
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@

@pytest.fixture
def mock_server_client() -> httpx.Client:
print(
f"Initializing mock server client with host: "
f"{MOCK_CONNECTOR_SERVER_HOST} and port: "
f"{MOCK_CONNECTOR_SERVER_PORT}"
)
return httpx.Client(
base_url=f"http://{MOCK_CONNECTOR_SERVER_HOST}:{MOCK_CONNECTOR_SERVER_PORT}",
timeout=5.0,
Expand Down
1 change: 0 additions & 1 deletion web/src/app/admin/connector/[ccPairId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ function Main({ ccPairId }: { ccPairId: number }) {
const {
currentPageData: indexAttempts,
isLoading: isLoadingIndexAttempts,
error: indexAttemptsError,
currentPage,
totalPages,
goToPage,
Expand Down

0 comments on commit 3944a61

Please sign in to comment.