diff options
| author | Zuul <zuul@review.openstack.org> | 2019-01-17 17:08:45 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2019-01-17 17:08:45 +0000 |
| commit | ffcda49e343aed666ee7839b5c7af04520577af0 (patch) | |
| tree | bb8b9c17c7ae716a3edd3135d5bd782528ae7555 /kolla/tests/test_build.py | |
| parent | af8a4d75829350fae0e4d28538d5088306e55e14 (diff) | |
| parent | 3410a6165af199992c0b06eaf603dd0dde72c4b0 (diff) | |
| download | kolla-ffcda49e343aed666ee7839b5c7af04520577af0.tar.gz kolla-ffcda49e343aed666ee7839b5c7af04520577af0.zip | |
Merge "Add distro_python3 option"
Diffstat (limited to 'kolla/tests/test_build.py')
| -rw-r--r-- | kolla/tests/test_build.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py index b721bb237..c6a953003 100644 --- a/kolla/tests/test_build.py +++ b/kolla/tests/test_build.py @@ -381,6 +381,26 @@ class KollaWorkerTest(base.TestCase): kolla = build.KollaWorker(self.conf) self.assertEqual(2, len(kolla.rpm_setup)) + def test_build_distro_python3(self): + """check distro_python3 conf value is taken""" + self.conf.set_override('distro_python3', True) + kolla = build.KollaWorker(self.conf) + self.assertTrue(kolla.distro_python3) + + def test_build_distro_python3_rhel8(self): + """check distro_python3 true for rhel8""" + self.conf.set_override('base', 'rhel') + self.conf.set_override('base_tag', '8') + kolla = build.KollaWorker(self.conf) + self.assertTrue(kolla.distro_python3) + + def test_build_distro_python3_non_rhel8(self): + """check distro_python3 false for non-rhel8""" + self.conf.set_override('base', 'rhel') + self.conf.set_override('base_tag', '7') + kolla = build.KollaWorker(self.conf) + self.assertFalse(kolla.distro_python3) + def test_pre_defined_exist_profile(self): # default profile include the fake image: image-base self.conf.set_override('profile', ['default']) |
