testing singl lv and only vg

This commit is contained in:
Charlie Mordant
2020-05-11 16:35:00 +02:00
parent 0621cadde8
commit c40f9b7d03
13 changed files with 185 additions and 3 deletions
+7
View File
@@ -18,6 +18,13 @@ def test_mylv_logical_volume_is_created(host):
assert int(cmd.stdout.rstrip()) >= 1
def test_mylv_logical_volume_is_created(host):
command = """sudo lvs -o lv_name my_vg --separator='|' --noheadings \
| grep -c 'my_lw'"""
cmd = host.run(command)
assert int(cmd.stdout.rstrip()) >= 1
def test_volume_is_mounted(host):
host.file("/var/lib/mountpoint").mode == 0o731