| |
@@ -140,6 +140,46 @@
|
| |
def test_target_gets_set(self):
|
| |
self.assertEqual(self.d.target, 'c7')
|
| |
|
| |
+ class TestDistgitStream9Module(unittest.TestCase):
|
| |
+ def setUp(self):
|
| |
+ self.branchstring = '3.0-rhel-9.0.0-beta'
|
| |
+ self.d = DistGitDirectory(self.branchstring)
|
| |
+
|
| |
+ def test_signame_gets_set(self):
|
| |
+ self.assertEqual(self.d.signame, 'centos')
|
| |
+
|
| |
+ def test_centosversion_gets_set(self):
|
| |
+ self.assertEqual(self.d.centosversion, '9')
|
| |
+
|
| |
+ def test_projectname_gets_set(self):
|
| |
+ self.assertEqual(self.d.projectname, None)
|
| |
+
|
| |
+ def test_releasename_gets_set(self):
|
| |
+ self.assertEqual(self.d.releasename, None)
|
| |
+
|
| |
+ def test_target_gets_set(self):
|
| |
+ self.assertEqual(self.d.target, 'c9s-candidate')
|
| |
+
|
| |
+ class TestDistgitStream9ModuleComponent(unittest.TestCase):
|
| |
+ def setUp(self):
|
| |
+ self.branchstring = 'stream-container-tools-3.0-rhel-9.0.0-beta'
|
| |
+ self.d = DistGitDirectory(self.branchstring)
|
| |
+
|
| |
+ def test_signame_gets_set(self):
|
| |
+ self.assertEqual(self.d.signame, 'centos')
|
| |
+
|
| |
+ def test_centosversion_gets_set(self):
|
| |
+ self.assertEqual(self.d.centosversion, '9')
|
| |
+
|
| |
+ def test_projectname_gets_set(self):
|
| |
+ self.assertEqual(self.d.projectname, None)
|
| |
+
|
| |
+ def test_releasename_gets_set(self):
|
| |
+ self.assertEqual(self.d.releasename, None)
|
| |
+
|
| |
+ def test_target_gets_set(self):
|
| |
+ self.assertEqual(self.d.target, 'c9s-candidate')
|
| |
+
|
| |
class TestDistgitC6DistroBranch(unittest.TestCase):
|
| |
def setUp(self):
|
| |
self.branchstring = 'c6'
|
| |
An initial test module (
container-tools
) and its components have been imported to the test namespace in GitLab (https://gitlab.com/redhat/centos-stream/temp). The current version ofcentpkg
can be used to clone the module or components (eg.,centpkg clone temp/buildah
), but then many commands such ascentpkg sources
fail to work in the repo--aborting with a message such asCould not execute sources: Branchname: stream-container-tools-3.0-rhel-9.0.0-beta is not valid
.This PR is an initial pass at getting
centpkg
to recognize RHEL style module stream branch names used by the test module and components.I'm not sure these changes are 100% correct or complete, but they do let
centpkg
start working with the RHEL style branches in the above referenced repos.