Skip to content

Commit 611dac9

Browse files
test suite error debug
1 parent b26310b commit 611dac9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

gateway-api/tests/acceptance/steps/happy_path.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
@given("the API is running")
1616
def check_api_is_running(client: Client) -> None:
1717
response = client.send_health_check()
18-
assert response.status_code == 200
18+
assert response.status_code == 200, (
19+
f"Health check failed with {response.status_code}: {response.text}"
20+
)
1921

2022

2123
@when("I send a valid Parameters resource to the endpoint")

gateway-api/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def send_to_get_structured_record_endpoint(
109109
)
110110

111111
def send_health_check(self) -> requests.Response:
112-
url = f"{self.base_url}/health"
112+
url = f"{self.base_url}/_status"
113113
return requests.get(
114114
url=url, headers=self._auth_headers, timeout=self._timeout, cert=self.cert
115115
)

0 commit comments

Comments
 (0)