Skip to content

Commit 01e407d

Browse files
nir0sclaude
andcommitted
Add test support for Rocky Linux 9.3 (Blue Onyx)
Adds test resources and test case for Rocky Linux 9.3, a stable RHEL clone with support until 2032. Includes rocky-release files, upstream attribution, CPE metadata, and os-release for proper distribution identification. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 60b448f commit 01e407d

10 files changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rocky-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+
rocky-release
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rocky Linux release 9.3 (Blue Onyx)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Derived from Red Hat Enterprise Linux 9.3
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rocky-release
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cpe:/o:rocky:rocky:9::baseos
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
NAME="Rocky Linux"
2+
VERSION="9.3 (Blue Onyx)"
3+
ID="rocky"
4+
ID_LIKE="rhel centos fedora"
5+
VERSION_ID="9.3"
6+
PLATFORM_ID="platform:el9"
7+
PRETTY_NAME="Rocky Linux 9.3 (Blue Onyx)"
8+
ANSI_COLOR="0;32"
9+
LOGO="fedora-logo-icon"
10+
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
11+
HOME_URL="https://rockylinux.org/"
12+
BUG_REPORT_URL="https://bugs.rockylinux.org/"
13+
SUPPORT_END="2032-05-31"
14+
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
15+
ROCKY_SUPPORT_PRODUCT_VERSION="9.3"
16+
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
17+
REDHAT_SUPPORT_PRODUCT_VERSION="9.3"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Rocky Linux release 9.3 (Blue Onyx)

tests/test_distro.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,19 @@ def test_almalinux10_os_release(self) -> None:
451451
}
452452
self._test_outcome(desired_outcome)
453453

454+
def test_rocky9_os_release(self) -> None:
455+
desired_outcome = {
456+
"id": "rocky",
457+
"name": "Rocky Linux",
458+
"pretty_name": "Rocky Linux 9.3 (Blue Onyx)",
459+
"version": "9.3",
460+
"pretty_version": "9.3 (Blue Onyx)",
461+
"best_version": "9.3",
462+
"like": "rhel centos fedora",
463+
"codename": "Blue Onyx",
464+
}
465+
self._test_outcome(desired_outcome)
466+
454467
def test_slackware14_os_release(self) -> None:
455468
desired_outcome = {
456469
"id": "slackware",
@@ -1781,6 +1794,29 @@ def test_almalinux10_release(self) -> None:
17811794
}
17821795
self._test_release_file_info("almalinux-release", desired_info)
17831796

1797+
def test_rocky9_release(self) -> None:
1798+
desired_outcome = {
1799+
"id": "rocky",
1800+
"name": "Rocky Linux",
1801+
"pretty_name": "Rocky Linux 9.3 (Blue Onyx)",
1802+
"version": "9.3",
1803+
"pretty_version": "9.3 (Blue Onyx)",
1804+
"best_version": "9.3",
1805+
"like": "rhel centos fedora",
1806+
"codename": "Blue Onyx",
1807+
"major_version": "9",
1808+
"minor_version": "3",
1809+
}
1810+
self._test_outcome(desired_outcome)
1811+
1812+
desired_info = {
1813+
"id": "rocky",
1814+
"name": "Rocky Linux",
1815+
"version_id": "9.3",
1816+
"codename": "Blue Onyx",
1817+
}
1818+
self._test_release_file_info("rocky-release", desired_info)
1819+
17841820
def test_slackware14_release(self) -> None:
17851821
desired_outcome = {
17861822
"id": "slackware",

0 commit comments

Comments
 (0)