Skip to content

Commit

Permalink
final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 committed Nov 20, 2024
1 parent 757f4c4 commit db6a7ed
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,14 @@ def __call__(self, message: str) -> bool:
url = f"https://{self.node_id}.services.{self.get_partial_product_url()}"
response = httpx.get(url, timeout=10)
self.logger.info(
"Querying the service endpoint from the E2E test. Url: %s Response: %s",
"Querying the service endpoint from the E2E test. Url: %s Response: %s TIP: %s",
url,
response,
(
"Response 401 is OK. It means that service is ready."
if response.status_code == 401
else "We are emulating the frontend; a 500 response is acceptable if the service is not yet ready."
),
)
if response.status_code <= 401:
# NOTE: If the response status is less than 400, it means that the backend is ready (There are some services that respond with a 3XX)
Expand Down

0 comments on commit db6a7ed

Please sign in to comment.