コード例 #1
0
 def test_install_all_returns_all_packages_deb(self):
     self.args.install_all = True
     self.distro.is_rpm = False
     self.distro.is_deb = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted(
         ['ceph-osd', 'ceph-mds', 'ceph-mon', 'radosgw'])
コード例 #2
0
 def test_install_all_returns_all_packages_deb(self):
     self.args.install_all = True
     self.distro.is_rpm = False
     self.distro.is_deb = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted([
         'ceph-osd', 'ceph-mds', 'ceph-mon', 'radosgw'
     ])
コード例 #3
0
 def test_install_all_with_other_options_returns_all_packages_rpm(self):
     self.args.install_all = True
     self.args.install_mds = True
     self.args.install_mon = True
     self.args.install_osd = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted(
         ['ceph-osd', 'ceph-mds', 'ceph-mon', 'ceph-radosgw'])
コード例 #4
0
 def test_install_all_returns_all_packages_pkgtarxz(self):
     self.args.install_all = True
     self.distro.is_rpm = False
     self.distro.is_deb = False
     self.distro.is_pkgtarxz = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted([
         'ceph',
     ])
コード例 #5
0
 def test_install_all_with_other_options_returns_all_packages_rpm(self):
     self.args.install_all = True
     self.args.install_mds = True
     self.args.install_mon = True
     self.args.install_osd = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted([
         'ceph-osd', 'ceph-mds', 'ceph-mon', 'ceph-radosgw'
     ])
コード例 #6
0
 def test_install_with_repo_option_returns_no_packages(self):
     self.args.repo = True
     result = install.detect_components(self.args, self.distro)
     assert result == []
コード例 #7
0
 def test_install_all_should_be_default_when_no_options_passed(self):
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted(
         ['ceph-osd', 'ceph-mds', 'ceph', 'ceph-mon', 'ceph-radosgw'])
コード例 #8
0
 def test_install_tests(self):
     self.args.install_tests = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted(['ceph-test'])
コード例 #9
0
 def test_install_a_couple_of_components(self):
     self.args.install_osd = True
     self.args.install_mds = True
     self.args.install_mgr = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted(['ceph-osd', 'ceph-mds', 'ceph-mgr'])
コード例 #10
0
 def test_install_only_one_component(self):
     self.args.install_osd = True
     result = install.detect_components(self.args, self.distro)
     assert result == ['ceph-osd']
コード例 #11
0
 def test_install_only_one_component(self):
     self.args.install_osd = True
     result = install.detect_components(self.args, self.distro)
     assert result == ['ceph-osd']
コード例 #12
0
 def test_install_with_repo_option_returns_no_packages(self):
     self.args.repo = True
     result = install.detect_components(self.args, self.distro)
     assert result == []
コード例 #13
0
 def test_install_all_should_be_default_when_no_options_passed(self):
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted([
         'ceph-osd', 'ceph-mds', 'ceph-mon', 'ceph-radosgw'
     ])
コード例 #14
0
 def test_install_a_couple_of_components(self):
     self.args.install_osd = True
     self.args.install_mds = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted(['ceph-osd', 'ceph-mds'])
コード例 #15
0
ファイル: test_install.py プロジェクト: wido/ceph-deploy
 def test_install_tests(self):
     self.args.install_tests = True
     result = sorted(install.detect_components(self.args, self.distro))
     assert result == sorted(['ceph-test'])