out, err = capsys.readouterr()
assert 'invalid choice' in err
- @pytest.mark.skipif(reason="http://tracker.ceph.com/issues/12151")
def test_disk_list_help(self, capsys):
with pytest.raises(SystemExit):
self.parser.parse_args('disk list --help'.split())
hosts = [x[0] for x in args.disk]
assert hosts == hostnames
- @pytest.mark.skipif(reason="http://tracker.ceph.com/issues/12151")
def test_disk_prepare_help(self, capsys):
with pytest.raises(SystemExit):
self.parser.parse_args('disk prepare --help'.split())
args = self.parser.parse_args('disk prepare --fs-type ext4 host1:sdb'.split())
assert args.fs_type == "ext4"
- @pytest.mark.skipif(reason="http://tracker.ceph.com/issues/12151")
def test_disk_prepare_fstype_invalid(self, capsys):
with pytest.raises(SystemExit):
self.parser.parse_args('disk prepare --fs-type bork host1:sdb'.split())
hosts = [x[0] for x in args.disk]
assert hosts == hostnames
- @pytest.mark.skipif(reason="http://tracker.ceph.com/issues/12151")
def test_disk_activate_help(self, capsys):
with pytest.raises(SystemExit):
self.parser.parse_args('disk activate --help'.split())
hosts = [x[0] for x in args.disk]
assert hosts == hostnames
- @pytest.mark.skipif(reason="http://tracker.ceph.com/issues/12151")
def test_disk_zap_help(self, capsys):
with pytest.raises(SystemExit):
self.parser.parse_args('disk zap --help'.split())