Robert Kaussow
a0b5496650
Some checks reported errors
continuous-integration/drone/push Build was killed
16 lines
354 B
Python
16 lines
354 B
Python
import os
|
|
|
|
import testinfra.utils.ansible_runner
|
|
|
|
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|
os.environ["MOLECULE_INVENTORY_FILE"]
|
|
).get_hosts("all")
|
|
|
|
|
|
def test_udev_symlink(host):
|
|
device = host.file("/dev/disk/by-id/molecule")
|
|
|
|
assert device.exists
|
|
assert device.is_symlink
|
|
assert device.linked_to == "/dev/sda"
|