Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/gardenlinux/github/release_notes/sections.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def release_notes_changes_section(gardenlinux_version):
file issues in glvd for improvement suggestions https://github.com/gardenlinux/glvd/issues
"""
try:
url = f"{GLVD_BASE_URL}/patchReleaseNotes/{gardenlinux_version}"
url = f"{GLVD_BASE_URL}/releaseNotes/{gardenlinux_version}"
response = requests.get(url, timeout=REQUESTS_TIMEOUTS)
response.raise_for_status()
data = response.json()
Expand Down
6 changes: 3 additions & 3 deletions tests/github/test_create_github_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
def test_release_notes_changes_section_empty_packagelist():
with requests_mock.Mocker() as m:
m.get(
f"{GLVD_BASE_URL}/patchReleaseNotes/{TEST_GARDENLINUX_RELEASE}",
f"{GLVD_BASE_URL}/releaseNotes/{TEST_GARDENLINUX_RELEASE}",
text='{"packageList": []}',
status_code=200,
)
Expand All @@ -44,7 +44,7 @@ def test_release_notes_changes_section_empty_packagelist():
def test_release_notes_changes_section_broken_glvd_response():
with requests_mock.Mocker() as m:
m.get(
f"{GLVD_BASE_URL}/patchReleaseNotes/{TEST_GARDENLINUX_RELEASE}",
f"{GLVD_BASE_URL}/releaseNotes/{TEST_GARDENLINUX_RELEASE}",
text="<html><body><h1>Personal Home Page</h1></body></html>",
status_code=200,
)
Expand Down Expand Up @@ -164,7 +164,7 @@ def __new__(cls, *args, **kwargs):
release_s3_bucket.upload_file(filepath, key)

m.get(
f"{GLVD_BASE_URL}/patchReleaseNotes/{TEST_GARDENLINUX_RELEASE}",
f"{GLVD_BASE_URL}/releaseNotes/{TEST_GARDENLINUX_RELEASE}",
text=glvd_response_fixture_path.read_text(),
status_code=200,
)
Expand Down
Loading