xoxys.udev/molecule/rocky9/tests/test_default.py
Robert Kaussow a0b5496650
Some checks reported errors
continuous-integration/drone/push Build was killed
initial commit
2023-04-11 20:44:03 +02:00

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"