Forked from
ics-ansible-galaxy / ics-ans-role-tinyproxy
10 commits behind the upstream repository.
-
Amir Forsat authored
JIRA INFRA-5504 #action In Progress
Amir Forsat authoredJIRA INFRA-5504 #action In Progress
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
test_default.py 519 B
import os
import testinfra.utils.ansible_runner
import testinfra
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_tinyproxy_is_installed(host):
tinyproxy = host.package("tinyproxy")
assert tinyproxy.is_installed
assert tinyproxy.version.startswith("1.11.1")
def test_tinyproxy_running_and_enabled(host):
tinyproxy = host.service("tinyproxy.service")
assert tinyproxy.is_running
assert tinyproxy.is_enabled