Skip to content

Commit 50dede3

Browse files
committed
httpd is apache2 on debian
1 parent 33e3863 commit 50dede3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/httpd_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55

66
def test_httpd_service(server):
7-
httpd = server.service("httpd")
7+
if server.system_info.distribution == 'debian':
8+
service_name = 'apache2'
9+
else:
10+
service_name = 'httpd'
11+
httpd = server.service(service_name)
812
assert httpd.is_running
913
assert httpd.is_enabled
1014

0 commit comments

Comments
 (0)