diff --git a/packit_service/service/api/osh_scans.py b/packit_service/service/api/osh_scans.py index d70a7c30b..efa229d12 100644 --- a/packit_service/service/api/osh_scans.py +++ b/packit_service/service/api/osh_scans.py @@ -15,7 +15,7 @@ logger = getLogger("packit_service") -ns = Namespace("osh-scans", description="OpenScanHub scans") +ns = Namespace("openscanhub-scans", description="OpenScanHub scans") @ns.route("") @@ -37,7 +37,7 @@ def get(self): result, status=HTTPStatus.PARTIAL_CONTENT, ) - resp.headers["Content-Range"] = f"osh-scans {first + 1}-{last}/*" + resp.headers["Content-Range"] = f"openscanhub-scans {first + 1}-{last}/*" return resp diff --git a/tests_openshift/service/test_api.py b/tests_openshift/service/test_api.py index c72cd5416..6482191b4 100644 --- a/tests_openshift/service/test_api.py +++ b/tests_openshift/service/test_api.py @@ -967,7 +967,7 @@ def test_scan_info( a_scan, ): response = client.get( - url_for("api.osh-scans_scan_item", id=a_scan.id), + url_for("api.openscanhub-scans_scan_item", id=a_scan.id), ) response_dict = response.json assert response_dict["task_id"] == SampleValues.task_id @@ -987,7 +987,7 @@ def test_scans_list( clean_before_and_after, a_scan, ): - response = client.get(url_for("api.osh-scans_scans_list")) + response = client.get(url_for("api.openscanhub-scans_scans_list")) response_dict = response.json assert len(response_dict) == 1