From: Tom Walsh Date: Fri, 8 Aug 2014 17:01:52 +0000 (-0500) Subject: Modified the tests to reflect the desired output of normalize_release() X-Git-Tag: v1.5.11~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=71adbdc52fd24debecd4013ce2828b96aae024a4;p=ceph-deploy.git Modified the tests to reflect the desired output of normalize_release() Added normalize_release() to the centos object so that the tests can properly execute. --- diff --git a/ceph_deploy/hosts/centos/__init__.py b/ceph_deploy/hosts/centos/__init__.py index 9ac4683..41a00be 100644 --- a/ceph_deploy/hosts/centos/__init__.py +++ b/ceph_deploy/hosts/centos/__init__.py @@ -1,6 +1,6 @@ import mon # noqa import pkg # noqa -from install import install, mirror_install, repo_install, repository_url_part, rpm_dist # noqa +from install import install, mirror_install, repo_install, repository_url_part, rpm_dist, normalize_release # noqa from uninstall import uninstall # noqa # Allow to set some information about this distro diff --git a/ceph_deploy/tests/unit/hosts/test_centos.py b/ceph_deploy/tests/unit/hosts/test_centos.py index 5ee6e5c..983ce27 100644 --- a/ceph_deploy/tests/unit/hosts/test_centos.py +++ b/ceph_deploy/tests/unit/hosts/test_centos.py @@ -106,7 +106,7 @@ class TestCentosVersionDetection(object): def test_normalize_release_number(self): self.distro.release = '6.9' - assert centos.normalize_release(self.distro.release) == 6.9 + assert centos.normalize_release(self.distro.release) == 6.0 def test_normalize_release_empty_string(self): self.distro.release = ''