diff --git a/src/gardenlinux/github/release_notes/sections.py b/src/gardenlinux/github/release_notes/sections.py index a4b3436..1c88949 100644 --- a/src/gardenlinux/github/release_notes/sections.py +++ b/src/gardenlinux/github/release_notes/sections.py @@ -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() diff --git a/tests/github/test_create_github_release_notes.py b/tests/github/test_create_github_release_notes.py index 125384d..0efaae4 100644 --- a/tests/github/test_create_github_release_notes.py +++ b/tests/github/test_create_github_release_notes.py @@ -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, ) @@ -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="