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

- Run service test with sudo (for Wheezy only).

parent d7c51f68
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,8 @@ from testinfra.utils.ansible_runner import AnsibleRunner
testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all')
def test_nginx_service(Service):
def test_nginx_service(Service, Sudo):
with Sudo():
service = Service('nginx')
assert service.is_running
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment