From 7d124226fc0937bd0c72f268ccaceabf520ffb67 Mon Sep 17 00:00:00 2001 From: Andrey1994 Date: Wed, 22 Mar 2017 21:35:53 +0300 Subject: [PATCH] [RM-19301] add tests for Virtuozzo Linux Signed-off-by: Andrey1994 --- ceph_deploy/tests/unit/hosts/test_hosts.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ceph_deploy/tests/unit/hosts/test_hosts.py b/ceph_deploy/tests/unit/hosts/test_hosts.py index 038902e..8103673 100644 --- a/ceph_deploy/tests/unit/hosts/test_hosts.py +++ b/ceph_deploy/tests/unit/hosts/test_hosts.py @@ -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') -- 2.47.3