Skip to content
Snippets Groups Projects
Commit e3a03925 authored by nimrod's avatar nimrod
Browse files

- Added basic tests.

parent 75ba9c6b
No related branches found
No related tags found
No related merge requests found
from testinfra.utils.ansible_runner import AnsibleRunner
import pytest
testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
@pytest.mark.parametrize('name', ['systemd-resolved', 'systemd-networkd'])
def test_networkd_service(Service, name):
assert Service(name).is_enabled
assert Service(name).is_running
def test_networkctl(Command, Sudo):
with Sudo():
assert Command('networkctl').rc == 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment