From: Alfredo Deza Date: Mon, 30 Jun 2014 18:15:40 +0000 (-0400) Subject: add a test to make sure rhel7 support does not break X-Git-Tag: v1.5.6~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8d10dec7a739ea0d2f43bdfcdbd8b83a31dac859;p=ceph-deploy.git add a test to make sure rhel7 support does not break Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/tests/unit/hosts/test_centos.py b/ceph_deploy/tests/unit/hosts/test_centos.py index d2896ef..a7d93a6 100644 --- a/ceph_deploy/tests/unit/hosts/test_centos.py +++ b/ceph_deploy/tests/unit/hosts/test_centos.py @@ -19,3 +19,7 @@ class TestCentosUrlPart(object): self.distro.release = '5.0' assert centos.repository_url_part(self.distro) == 'el6' + def test_url_detects_rhel7(self): + self.distro.normalized_name = 'redhat' + self.distro.release = '7.0' + assert centos.repository_url_part(self.distro) == 'rhel7'