'install_mds': 'ceph-mds',
'install_mon': 'ceph-mon',
'install_common': 'ceph-common',
+ 'install_tests': 'ceph-test',
}
if distro.is_rpm:
help='install the osd component only',
)
+ parser.add_argument(
+ '--tests',
+ dest='install_tests',
+ action='store_true',
+ help='install the testing components',
+ )
+
parser.add_argument(
'--cli', '--common',
dest='install_common',
'--all',
dest='install_all',
action='store_true',
- help='install all Ceph components (e.g. mon,osd,mds,rgw). This is the default',
+ help='install all Ceph components (mon, osd, mds, rgw) except tests. This is the default',
)
repo = parser.add_mutually_exclusive_group()
self.args.install_mon = False
self.args.install_osd = False
self.args.install_rgw = False
+ self.args.install_tests = False
self.args.install_common = False
self.args.repo = False
self.distro = Mock()
result = sorted(install.detect_components(self.args, self.distro))
assert result == sorted(['ceph-osd', 'ceph-mds'])
+ def test_install_tests(self):
+ self.args.install_tests = True
+ result = sorted(install.detect_components(self.args, self.distro))
+ assert result == sorted(['ceph-test'])
+
def test_install_all_should_be_default_when_no_options_passed(self):
result = sorted(install.detect_components(self.args, self.distro))
assert result == sorted([