Skip to content

Commit 60b448f

Browse files
nir0sclaude
andcommitted
Add test support for AlmaLinux 10 (Purple Lion)
Adds test resources and test case for AlmaLinux 10.0, the latest major release as of 2025. This RHEL-compatible distribution includes support extending until 2035. Includes release files, os-release, and CPE metadata for proper identification. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d979265 commit 60b448f

10 files changed

Lines changed: 65 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AlmaLinux release 10.0 (Purple Lion)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Derived from Red Hat Enterprise Linux 10.0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
almalinux-release
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../usr/lib/os-release
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
almalinux-release
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
almalinux-release
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cpe:/o:almalinux:almalinux:10::baseos
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
AlmaLinux release 10.0 (Purple Lion)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
NAME="AlmaLinux"
2+
VERSION="10.0 (Purple Lion)"
3+
ID="almalinux"
4+
ID_LIKE="rhel centos fedora"
5+
VERSION_ID="10.0"
6+
PLATFORM_ID="platform:el10"
7+
PRETTY_NAME="AlmaLinux 10.0 (Purple Lion)"
8+
ANSI_COLOR="0;34"
9+
LOGO="fedora-logo-icon"
10+
CPE_NAME="cpe:/o:almalinux:almalinux:10::baseos"
11+
HOME_URL="https://almalinux.org/"
12+
DOCUMENTATION_URL="https://wiki.almalinux.org/"
13+
VENDOR_NAME="AlmaLinux"
14+
VENDOR_URL="https://almalinux.org/"
15+
BUG_REPORT_URL="https://bugs.almalinux.org/"
16+
17+
ALMALINUX_MANTISBT_PROJECT="AlmaLinux-10"
18+
ALMALINUX_MANTISBT_PROJECT_VERSION="10.0"
19+
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
20+
REDHAT_SUPPORT_PRODUCT_VERSION="10.0"
21+
SUPPORT_END=2035-06-01

tests/test_distro.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,19 @@ def test_rocky_os_release(self) -> None:
438438
}
439439
self._test_outcome(desired_outcome)
440440

441+
def test_almalinux10_os_release(self) -> None:
442+
desired_outcome = {
443+
"id": "almalinux",
444+
"name": "AlmaLinux",
445+
"pretty_name": "AlmaLinux 10.0 (Purple Lion)",
446+
"version": "10.0",
447+
"pretty_version": "10.0 (Purple Lion)",
448+
"best_version": "10.0",
449+
"like": "rhel centos fedora",
450+
"codename": "Purple Lion",
451+
}
452+
self._test_outcome(desired_outcome)
453+
441454
def test_slackware14_os_release(self) -> None:
442455
desired_outcome = {
443456
"id": "slackware",
@@ -1745,6 +1758,29 @@ def test_rocky_release(self) -> None:
17451758
}
17461759
self._test_release_file_info("centos-release", desired_info)
17471760

1761+
def test_almalinux10_release(self) -> None:
1762+
desired_outcome = {
1763+
"id": "almalinux",
1764+
"name": "AlmaLinux",
1765+
"pretty_name": "AlmaLinux 10.0 (Purple Lion)",
1766+
"version": "10.0",
1767+
"pretty_version": "10.0 (Purple Lion)",
1768+
"best_version": "10.0",
1769+
"like": "rhel centos fedora",
1770+
"codename": "Purple Lion",
1771+
"major_version": "10",
1772+
"minor_version": "0",
1773+
}
1774+
self._test_outcome(desired_outcome)
1775+
1776+
desired_info = {
1777+
"id": "almalinux",
1778+
"name": "AlmaLinux",
1779+
"version_id": "10.0",
1780+
"codename": "Purple Lion",
1781+
}
1782+
self._test_release_file_info("almalinux-release", desired_info)
1783+
17481784
def test_slackware14_release(self) -> None:
17491785
desired_outcome = {
17501786
"id": "slackware",

0 commit comments

Comments
 (0)