]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
[RM-19301] add tests for Virtuozzo Linux 436/head
authorAndrey1994 <a1994ndrey@gmail.com>
Wed, 22 Mar 2017 18:35:53 +0000 (21:35 +0300)
committerAndrey1994 <a1994ndrey@gmail.com>
Wed, 22 Mar 2017 18:35:53 +0000 (21:35 +0300)
Signed-off-by: Andrey1994 <a1994ndrey@gmail.com>
ceph_deploy/tests/unit/hosts/test_hosts.py

index 038902e9c751be1f4a6a06a26e75d06bd3004bcc..81036733fc6cc98da5256e14ccfe5403c4f100a6 100644 (file)
@@ -31,6 +31,10 @@ class TestNormalized(object):
         result = hosts._normalized_distro_name('RedHatEnterpriseLinux')
         assert result == 'redhat'
 
+    def test_get_virtuozzo(self):
+        result = hosts._normalized_distro_name('Virtuozzo Linux')
+        assert result == 'virtuozzo'
+
 
 class TestNormalizeRelease(object):
 
@@ -411,3 +415,7 @@ class TestGetDistro(object):
     def test_get_mint(self):
         result = hosts._get_distro('LinuxMint')
         assert result.__name__.endswith('debian')
+
+    def test_get_virtuozzo(self):
+        result = hosts._get_distro('Virtuozzo Linux')
+        assert result.__name__.endswith('centos')