Skip to content

Commit 8967ef8

Browse files
authored
updated GLVD endpoint url (#226)
* updated GLVD endpoint url
1 parent 133a236 commit 8967ef8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gardenlinux/github/release_notes/sections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def release_notes_changes_section(gardenlinux_version):
4747
file issues in glvd for improvement suggestions https://github.com/gardenlinux/glvd/issues
4848
"""
4949
try:
50-
url = f"{GLVD_BASE_URL}/patchReleaseNotes/{gardenlinux_version}"
50+
url = f"{GLVD_BASE_URL}/releaseNotes/{gardenlinux_version}"
5151
response = requests.get(url, timeout=REQUESTS_TIMEOUTS)
5252
response.raise_for_status()
5353
data = response.json()

tests/github/test_create_github_release_notes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
def test_release_notes_changes_section_empty_packagelist():
3333
with requests_mock.Mocker() as m:
3434
m.get(
35-
f"{GLVD_BASE_URL}/patchReleaseNotes/{TEST_GARDENLINUX_RELEASE}",
35+
f"{GLVD_BASE_URL}/releaseNotes/{TEST_GARDENLINUX_RELEASE}",
3636
text='{"packageList": []}',
3737
status_code=200,
3838
)
@@ -44,7 +44,7 @@ def test_release_notes_changes_section_empty_packagelist():
4444
def test_release_notes_changes_section_broken_glvd_response():
4545
with requests_mock.Mocker() as m:
4646
m.get(
47-
f"{GLVD_BASE_URL}/patchReleaseNotes/{TEST_GARDENLINUX_RELEASE}",
47+
f"{GLVD_BASE_URL}/releaseNotes/{TEST_GARDENLINUX_RELEASE}",
4848
text="<html><body><h1>Personal Home Page</h1></body></html>",
4949
status_code=200,
5050
)
@@ -164,7 +164,7 @@ def __new__(cls, *args, **kwargs):
164164
release_s3_bucket.upload_file(filepath, key)
165165

166166
m.get(
167-
f"{GLVD_BASE_URL}/patchReleaseNotes/{TEST_GARDENLINUX_RELEASE}",
167+
f"{GLVD_BASE_URL}/releaseNotes/{TEST_GARDENLINUX_RELEASE}",
168168
text=glvd_response_fixture_path.read_text(),
169169
status_code=200,
170170
)

0 commit comments

Comments
 (0)