From 31323ca654445a9e9fc31b1a271c93846e1daa36 Mon Sep 17 00:00:00 2001 From: Gaurav Mishra Date: Tue, 2 Jun 2026 11:02:38 +0530 Subject: [PATCH] fix(health)!: migrate endpoint to api BREAKING: This will work on v19+ --- sw360/sw360_api.py | 2 +- tests/test_sw360_health.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sw360/sw360_api.py b/sw360/sw360_api.py index cda6071..925813e 100644 --- a/sw360/sw360_api.py +++ b/sw360/sw360_api.py @@ -160,5 +160,5 @@ def get_health_status(self) -> Optional[Dict[str, Any]]: :rtype: JSON health status object :raises SW360Error: if there is a negative HTTP response """ - resp = self.api_get(self.url + "resource/health/") + resp = self.api_get(self.url + "resource/api/health/") return resp diff --git a/tests/test_sw360_health.py b/tests/test_sw360_health.py index 12be52c..e6a080a 100644 --- a/tests/test_sw360_health.py +++ b/tests/test_sw360_health.py @@ -50,7 +50,7 @@ def test_get_health_status(self) -> None: responses.add( method=responses.GET, - url=self.MYURL + "resource/health/", + url=self.MYURL + "resource/api/health/", body='{"status": "UP"}', status=200, content_type="application/json",