netgod / rpms / anaconda

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