Skip to content

Commit 26fe5e6

Browse files
OpenScanHub API rename (#2655)
OpenScanHub API rename TODO: follow-up dashboard change Fixes #2643 RELEASE NOTES BEGIN N/A RELEASE NOTES END Reviewed-by: Maja Massarini Reviewed-by: Matej Focko
2 parents 3bf5387 + 6c4eb14 commit 26fe5e6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packit_service/service/api/osh_scans.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
logger = getLogger("packit_service")
1717

18-
ns = Namespace("osh-scans", description="OpenScanHub scans")
18+
ns = Namespace("openscanhub-scans", description="OpenScanHub scans")
1919

2020

2121
@ns.route("")
@@ -37,7 +37,7 @@ def get(self):
3737
result,
3838
status=HTTPStatus.PARTIAL_CONTENT,
3939
)
40-
resp.headers["Content-Range"] = f"osh-scans {first + 1}-{last}/*"
40+
resp.headers["Content-Range"] = f"openscanhub-scans {first + 1}-{last}/*"
4141
return resp
4242

4343

tests_openshift/service/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ def test_scan_info(
967967
a_scan,
968968
):
969969
response = client.get(
970-
url_for("api.osh-scans_scan_item", id=a_scan.id),
970+
url_for("api.openscanhub-scans_scan_item", id=a_scan.id),
971971
)
972972
response_dict = response.json
973973
assert response_dict["task_id"] == SampleValues.task_id
@@ -987,7 +987,7 @@ def test_scans_list(
987987
clean_before_and_after,
988988
a_scan,
989989
):
990-
response = client.get(url_for("api.osh-scans_scans_list"))
990+
response = client.get(url_for("api.openscanhub-scans_scans_list"))
991991
response_dict = response.json
992992

993993
assert len(response_dict) == 1

0 commit comments

Comments
 (0)