aboutsummaryrefslogtreecommitdiff
path: root/kolla/tests
diff options
context:
space:
mode:
authorSurya Prakash Singh <surya.singh@nectechnologies.in>2016-12-26 09:59:56 +0530
committerSurya Prakash Singh <surya.singh@nectechnologies.in>2017-01-16 09:43:28 +0000
commitefa628d015fe0efcf7c692af7d593eac0ff87ef6 (patch)
tree5549928ef0b259f066b005afe46c7b2a1444c96e /kolla/tests
parent12bea3f9f659e6a4e8611c5edf59e69e204c3792 (diff)
downloadkolla-efa628d015fe0efcf7c692af7d593eac0ff87ef6.tar.gz
kolla-efa628d015fe0efcf7c692af7d593eac0ff87ef6.zip
Py3 and py2 implementation for kolla/image module
This commit addresses the changes in kolla/image directory for better openstack python coding style. unittest also added for corresponding changes. Reference:- https://wiki.openstack.org/wiki/Python3 Change-Id: I8be60ebd214ac8ab400cc633f8e6005fb8760c24 Partially-Implements: blueprint support-python-35
Diffstat (limited to 'kolla/tests')
-rw-r--r--kolla/tests/test_build.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kolla/tests/test_build.py b/kolla/tests/test_build.py
index fccf7f41b..95b5fd2f1 100644
--- a/kolla/tests/test_build.py
+++ b/kolla/tests/test_build.py
@@ -230,6 +230,11 @@ class KollaWorkerTest(base.TestCase):
self.assertEqual(2, len(self._get_matched_images(kolla.images)))
+ def test_build_rpm_setup(self):
+ """checking the length of list of docker commands"""
+ kolla = build.KollaWorker(self.conf)
+ self.assertEqual(2, len(kolla.rpm_setup))
+
def test_pre_defined_exist_profile(self):
# default profile include the fake image: image-base
self.conf.set_override('profile', ['default'])