Skip to content

Commit 3fac359

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 <[email protected]>
1 parent 0f7af32 commit 3fac359

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed
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+
cpe:/o:almalinux:almalinux:10::baseos
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: 13 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",

0 commit comments

Comments
 (0)