diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 5136ca34..61f5764f 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -4,7 +4,7 @@ description: Installs the given GardenLinux Python library inputs: version: description: GardenLinux Python library version - default: "0.10.15" + default: "0.10.16" python_version: description: Python version to setup default: "3.13" diff --git a/pyproject.toml b/pyproject.toml index aac67772..93f80f6f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gardenlinux" -version = "0.10.15" +version = "0.10.16" description = "Contains tools to work with the features directory of gardenlinux, for example deducting dependencies from feature sets or validating cnames" authors = ["Garden Linux Maintainers "] license = "Apache-2.0" diff --git a/tests/github/test_create_github_release_notes.py b/tests/github/test_create_github_release_notes.py index 71b4af7f..7c341270 100644 --- a/tests/github/test_create_github_release_notes.py +++ b/tests/github/test_create_github_release_notes.py @@ -59,10 +59,25 @@ def test_release_notes_changes_section_broken_glvd_response() -> None: def test_release_notes_compare_package_versions_section_legacy_versioning_is_recognized() -> ( None ): - assert ( - "Full List of Packages in Garden Linux version 1.0" - in release_notes_compare_package_versions_section("1.0", {}) - ), "Legacy versioning is supported" + with requests_mock.Mocker() as m: + m.get( + f"{GLVD_BASE_URL}/releaseNotes/1.0", + json={ + "packageList": [ + { + "sourcePackageName": "gardenlinux-release-example", + "oldVersion": "0.9pre1", + "newVersion": "1.0", + "fixedCves": [], + } + ] + }, + status_code=200, + ) + + assert "upgrade 'gardenlinux-release-example'" in release_notes_changes_section( + "1.0" + ), "Legacy versioning is supported" def test_release_notes_compare_package_versions_section_legacy_versioning_patch_release_is_recognized( @@ -87,10 +102,25 @@ def mock_compare_apt_repo_versions( def test_release_notes_compare_package_versions_section_semver_is_recognized() -> None: - assert ( - "Full List of Packages in Garden Linux version 1.20.0" - in release_notes_compare_package_versions_section("1.20.0", {}) - ), "Semver is supported" + with requests_mock.Mocker() as m: + m.get( + f"{GLVD_BASE_URL}/releaseNotes/1.20.0", + json={ + "packageList": [ + { + "sourcePackageName": "gardenlinux-release-example", + "oldVersion": "1.19.0", + "newVersion": "1.20.0", + "fixedCves": [], + } + ] + }, + status_code=200, + ) + + assert "upgrade 'gardenlinux-release-example'" in release_notes_changes_section( + "1.20.0" + ), "Semver is supported" def test_release_notes_compare_package_versions_section_semver_patch_release_is_recognized(