netgod / rpms / anaconda

Forked from rpms/anaconda 2 years ago
Clone
c0a0bb
From 646ea4b2d75712f83086b9ca7b06bf543158c169 Mon Sep 17 00:00:00 2001
c0a0bb
From: Brian Stinson <bstinson@centosproject.org>
c0a0bb
Date: Thu, 25 Jun 2020 18:10:13 -0500
c0a0bb
Subject: [PATCH] Add product data for CentOS Stream
c0a0bb
c0a0bb
---
c0a0bb
 data/product.d/centos-stream.conf                | 7 +++++++
c0a0bb
 tests/nosetests/pyanaconda_tests/product_test.py | 5 +++++
c0a0bb
 2 files changed, 12 insertions(+)
c0a0bb
 create mode 100644 data/product.d/centos-stream.conf
c0a0bb
c0a0bb
diff --git a/data/product.d/centos-stream.conf b/data/product.d/centos-stream.conf
c0a0bb
new file mode 100644
c0a0bb
index 0000000000..c65fcbbdf8
c0a0bb
--- /dev/null
c0a0bb
+++ b/data/product.d/centos-stream.conf
c0a0bb
@@ -0,0 +1,7 @@
c0a0bb
+# Anaconda configuration file for CentOS Stream.
c0a0bb
+
c0a0bb
+[Product]
c0a0bb
+product_name = CentOS Stream
c0a0bb
+
c0a0bb
+[Base Product]
c0a0bb
+product_name = CentOS Linux
c0a0bb
diff --git a/tests/nosetests/pyanaconda_tests/product_test.py b/tests/nosetests/pyanaconda_tests/product_test.py
c0a0bb
index 55f3e0dde7..d0c3adb849 100644
c0a0bb
--- a/tests/nosetests/pyanaconda_tests/product_test.py
c0a0bb
+++ b/tests/nosetests/pyanaconda_tests/product_test.py
c0a0bb
@@ -244,6 +244,11 @@ class ProductConfigurationTestCase(unittest.TestCase):
c0a0bb
             ["rhel.conf", "centos.conf"],
c0a0bb
             WORKSTATION_PARTITIONING
c0a0bb
         )
c0a0bb
+        self._check_default_product(
c0a0bb
+            "CentOS Stream", "",
c0a0bb
+            ["rhel.conf", "centos.conf", "centos-stream.conf"],
c0a0bb
+            WORKSTATION_PARTITIONING
c0a0bb
+        )
c0a0bb
         self._check_default_product(
c0a0bb
             "Red Hat Virtualization", "",
c0a0bb
             ["rhel.conf", "rhev.conf"],
c0a0bb
-- 
c0a0bb
2.29.2
c0a0bb