From 86c4c751e5139d51ede3b7f07ad782209408bccc Mon Sep 17 00:00:00 2001 From: roekatz Date: Thu, 27 Jun 2024 16:58:58 +0300 Subject: [PATCH] Tests: Change test server ports to avoid collisions --- .../opal_client/tests/server_to_client_intergation_test.py | 2 +- .../opal-server/opal_server/tests/policy_repo_webhook_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/opal-client/opal_client/tests/server_to_client_intergation_test.py b/packages/opal-client/opal_client/tests/server_to_client_intergation_test.py index 3e6522277..a3372c56f 100644 --- a/packages/opal-client/opal_client/tests/server_to_client_intergation_test.py +++ b/packages/opal-client/opal_client/tests/server_to_client_intergation_test.py @@ -31,7 +31,7 @@ from opal_server.server import OpalServer # Server settings -PORT = int(os.environ.get("PORT") or "9123") +PORT = int(os.environ.get("PORT") or "9124") UPDATES_URL = f"ws://localhost:{PORT}/ws" DATA_ROUTE = "/fetchable_data" DATA_URL = f"http://localhost:{PORT}{DATA_ROUTE}" diff --git a/packages/opal-server/opal_server/tests/policy_repo_webhook_test.py b/packages/opal-server/opal_server/tests/policy_repo_webhook_test.py index a6633f984..8c8fd0bb7 100644 --- a/packages/opal-server/opal_server/tests/policy_repo_webhook_test.py +++ b/packages/opal-server/opal_server/tests/policy_repo_webhook_test.py @@ -29,7 +29,7 @@ from opal_common.utils import get_authorization_header from opal_server.config import PolicySourceTypes, opal_server_config -PORT = int(os.environ.get("PORT") or "9123") +PORT = int(os.environ.get("PORT") or "9125") # Basic server route config WEBHOOK_ROUTE = "/webhook"