Skip to content

Commit

Permalink
OpenScanHub API rename (#2655)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
softwarefactory-project-zuul[bot] authored Nov 25, 2024
2 parents 3bf5387 + 6c4eb14 commit 26fe5e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packit_service/service/api/osh_scans.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

logger = getLogger("packit_service")

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


@ns.route("")
Expand All @@ -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


Expand Down
4 changes: 2 additions & 2 deletions tests_openshift/service/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 26fe5e6

Please sign in to comment.