12 lines
307 B
Python
Executable File
12 lines
307 B
Python
Executable File
import os
|
|
|
|
import testinfra.utils.ansible_runner
|
|
|
|
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('middleware')
|
|
|
|
|
|
def test_traefik_service(host):
|
|
assert host.service('traefik').is_running
|
|
assert host.service('traefik').is_enabled
|