Skip to content

Commit d6f9c7c

Browse files
nir0sclaude
andcommitted
Add test support for CentOS Stream 9
Adds test resources and test case for CentOS Stream 9, the upstream development platform for RHEL 9. Includes centos-release and os-release files for proper distribution identification. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent b021edc commit d6f9c7c

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CentOS Stream release 9
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
NAME="CentOS Stream"
2+
VERSION="9"
3+
ID="centos"
4+
ID_LIKE="rhel fedora"
5+
VERSION_ID="9"
6+
PLATFORM_ID="platform:el9"
7+
PRETTY_NAME="CentOS Stream 9"
8+
ANSI_COLOR="0;31"
9+
LOGO="fedora-logo-icon"
10+
CPE_NAME="cpe:/o:centos:centos:9"
11+
HOME_URL="https://centos.org/"
12+
BUG_REPORT_URL="https://issues.redhat.com/"
13+
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 9"
14+
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"

tests/test_distro.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,19 @@ def test_rocky9_os_release(self) -> None:
464464
}
465465
self._test_outcome(desired_outcome)
466466

467+
def test_centosstream9_os_release(self) -> None:
468+
desired_outcome = {
469+
"id": "centos",
470+
"name": "CentOS Stream",
471+
"pretty_name": "CentOS Stream 9",
472+
"version": "9",
473+
"pretty_version": "9",
474+
"best_version": "9",
475+
"like": "rhel fedora",
476+
"codename": "",
477+
}
478+
self._test_outcome(desired_outcome)
479+
467480
def test_slackware14_os_release(self) -> None:
468481
desired_outcome = {
469482
"id": "slackware",

0 commit comments

Comments
 (0)