args = self.parser.parse_args('osd create host1:sdb'.split())
assert args.fs_type == "xfs"
- def test_osd_create_fstype_ext4(self):
- args = self.parser.parse_args('osd create --fs-type ext4 host1:sdb'.split())
- assert args.fs_type == "ext4"
+ def test_osd_create_fstype_btrfs(self):
+ args = self.parser.parse_args('osd create --fs-type btrfs host1:sdb'.split())
+ assert args.fs_type == "btrfs"
def test_osd_create_fstype_invalid(self, capsys):
with pytest.raises(SystemExit):
args = self.parser.parse_args('osd prepare host1:sdb'.split())
assert args.fs_type == "xfs"
- def test_osd_prepare_fstype_ext4(self):
- args = self.parser.parse_args('osd prepare --fs-type ext4 host1:sdb'.split())
- assert args.fs_type == "ext4"
-
def test_osd_prepare_fstype_invalid(self, capsys):
with pytest.raises(SystemExit):
self.parser.parse_args('osd prepare --fs-type bork host1:sdb'.split())