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 .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <contact@gardenlinux.io>"]
license = "Apache-2.0"
Expand Down
46 changes: 38 additions & 8 deletions tests/github/test_create_github_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down