Skip to content

Commit 0f7af32

Browse files
nir0sclaude
andcommitted
Add test support for Fedora 42
Adds test resources and test case for Fedora 42, released in April 2025. Includes fedora-release and os-release files with metadata for this modern Fedora release. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e9aab18 commit 0f7af32

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fedora release 42 (Forty Two)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
NAME="Fedora Linux"
2+
VERSION="42 (Forty Two)"
3+
ID=fedora
4+
VERSION_ID=42
5+
VERSION_CODENAME=""
6+
PLATFORM_ID="platform:f42"
7+
PRETTY_NAME="Fedora Linux 42 (Forty Two)"
8+
ANSI_COLOR="0;38;2;60;110;180"
9+
LOGO=fedora-logo-icon
10+
CPE_NAME="cpe:/o:fedoraproject:fedora:42"
11+
DEFAULT_HOSTNAME="fedora"
12+
HOME_URL="https://fedoraproject.org/"
13+
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f42/"
14+
SUPPORT_URL="https://ask.fedoraproject.org/"
15+
BUG_REPORT_URL="https://bugzilla.redhat.com/"
16+
REDHAT_BUGZILLA_PRODUCT="Fedora"
17+
REDHAT_BUGZILLA_PRODUCT_VERSION=42
18+
REDHAT_SUPPORT_PRODUCT="Fedora"
19+
REDHAT_SUPPORT_PRODUCT_VERSION=42
20+
SUPPORT_END=2026-05-13

tests/test_distro.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,18 @@ def test_fedora30_os_release(self) -> None:
297297
}
298298
self._test_outcome(desired_outcome)
299299

300+
def test_fedora42_os_release(self) -> None:
301+
desired_outcome = {
302+
"id": "fedora",
303+
"name": "Fedora Linux",
304+
"pretty_name": "Fedora Linux 42 (Forty Two)",
305+
"version": "42",
306+
"pretty_version": "42",
307+
"best_version": "42",
308+
"codename": "",
309+
}
310+
self._test_outcome(desired_outcome)
311+
300312
def test_guix_os_release(self) -> None:
301313
desired_outcome = {
302314
"id": "guix",

0 commit comments

Comments
 (0)