コード例 #1
0
ファイル: test_hosts.py プロジェクト: hjwsm1989/ceph-deploy
 def test_get_centos(self):
     result = hosts._get_distro("CentOS")
     assert result.__name__.endswith("centos")
コード例 #2
0
ファイル: test_hosts.py プロジェクト: ceph/ceph-deploy
 def test_get_oracle(self):
     result = hosts._get_distro('Oracle Linux Server')
     assert result.__name__.endswith('centos')
コード例 #3
0
ファイル: test_hosts.py プロジェクト: goldwynr/ceph-deploy
 def test_get_redhat(self):
     result = hosts._get_distro('RedHat')
     assert result.__name__.endswith('centos')
コード例 #4
0
ファイル: test_hosts.py プロジェクト: goldwynr/ceph-deploy
 def test_get_uknown(self):
     assert hosts._get_distro('Solaris') is None
コード例 #5
0
ファイル: test_hosts.py プロジェクト: goldwynr/ceph-deploy
 def test_get_debian(self):
     result = hosts._get_distro('Debian')
     assert result.__name__.endswith('debian')
コード例 #6
0
ファイル: test_hosts.py プロジェクト: goldwynr/ceph-deploy
 def test_get_centos(self):
     result = hosts._get_distro('CentOS')
     assert result.__name__.endswith('centos')
コード例 #7
0
ファイル: test_hosts.py プロジェクト: omcnet/ceph-deploy
 def test_get_uknown(self):
     with raises(exc.UnsupportedPlatform):
         hosts._get_distro('Solaris')
コード例 #8
0
ファイル: test_hosts.py プロジェクト: ceph/ceph-deploy
 def test_get_arch(self):
     result = hosts._get_distro('Arch Linux')
     assert result.__name__.endswith('arch')
コード例 #9
0
 def test_get_openeulerlinux(self):
     result = hosts._get_distro('Openeuler')
     assert result.__name__.endswith('centos')
コード例 #10
0
 def test_get_uknown(self):
     with raises(exc.UnsupportedPlatform):
         hosts._get_distro('Solaris')
コード例 #11
0
ファイル: test_hosts.py プロジェクト: hjwsm1989/ceph-deploy
 def test_get_fallback(self):
     result = hosts._get_distro("Solaris", "Debian")
     assert result.__name__.endswith("debian")
コード例 #12
0
ファイル: test_hosts.py プロジェクト: hjwsm1989/ceph-deploy
 def test_get_redhat(self):
     result = hosts._get_distro("RedHat")
     assert result.__name__.endswith("centos")
コード例 #13
0
ファイル: test_hosts.py プロジェクト: hjwsm1989/ceph-deploy
 def test_get_scientific(self):
     result = hosts._get_distro("Scientific")
     assert result.__name__.endswith("centos")
コード例 #14
0
ファイル: test_hosts.py プロジェクト: ceph/ceph-deploy
 def test_get_mint(self):
     result = hosts._get_distro('LinuxMint')
     assert result.__name__.endswith('debian')
コード例 #15
0
 def test_get_oracle(self):
     result = hosts._get_distro('Oracle Linux Server')
     assert result.__name__.endswith('centos')
コード例 #16
0
ファイル: test_hosts.py プロジェクト: ceph/ceph-deploy
 def test_get_virtuozzo(self):
     result = hosts._get_distro('Virtuozzo Linux')
     assert result.__name__.endswith('centos')
コード例 #17
0
 def test_get_mint(self):
     result = hosts._get_distro('LinuxMint')
     assert result.__name__.endswith('debian')
コード例 #18
0
ファイル: test_hosts.py プロジェクト: ceph/ceph-deploy
 def test_get_altlinux(self):
     result = hosts._get_distro('ALT Linux')
     assert result.__name__.endswith('alt')
コード例 #19
0
 def test_get_virtuozzo(self):
     result = hosts._get_distro('Virtuozzo Linux')
     assert result.__name__.endswith('centos')
コード例 #20
0
ファイル: test_hosts.py プロジェクト: goldwynr/ceph-deploy
 def test_get_ubuntu(self):
     # Ubuntu imports debian stuff
     result = hosts._get_distro('Ubuntu')
     assert result.__name__.endswith('debian')
コード例 #21
0
 def test_get_arch(self):
     result = hosts._get_distro('Arch Linux')
     assert result.__name__.endswith('arch')
コード例 #22
0
ファイル: test_hosts.py プロジェクト: goldwynr/ceph-deploy
 def test_get_scientific(self):
     result = hosts._get_distro('Scientific')
     assert result.__name__.endswith('centos')
コード例 #23
0
 def test_get_altlinux(self):
     result = hosts._get_distro('ALT Linux')
     assert result.__name__.endswith('alt')
コード例 #24
0
ファイル: test_hosts.py プロジェクト: goldwynr/ceph-deploy
 def test_get_redhat_whitespace(self):
     result = hosts._get_distro('Red Hat Enterprise Linux')
     assert result.__name__.endswith('centos')
コード例 #25
0
 def test_get_eurolinux(self):
     result = hosts._get_distro('EuroLinux')
     assert result.__name__.endswith('centos')
コード例 #26
0
ファイル: test_hosts.py プロジェクト: goldwynr/ceph-deploy
 def test_get_fallback(self):
     result = hosts._get_distro('Solaris', 'Debian')
     assert result.__name__.endswith('debian')
コード例 #27
0
ファイル: test_hosts.py プロジェクト: hjwsm1989/ceph-deploy
 def test_get_debian(self):
     result = hosts._get_distro("Debian")
     assert result.__name__.endswith("debian")