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
+11
View File
@@ -0,0 +1,11 @@
"""Role testing files using testinfra."""
def test_lvm_package_shall_be_installed(host):
assert host.package("lvm2").is_installed
def test_non_persistent_volume_group_is_created(host):
command = """sudo vgdisplay | grep -c 'my_vg'"""
cmd = host.run(command)
assert '1' in cmd.stdout