@@ -25,12 +25,11 @@ def __get_headers(host, port, path=None):
25
25
return stdout .decode ().splitlines ()
26
26
27
27
# Verify the ActiveState for the netdata service
28
- def test_netdata_service (self , host_with_netdata ):
29
- host_with_netdata .ssh (['systemctl' , 'is-active' , 'netdata.service' ])
28
+ def test_netdata_service (self , host ):
29
+ host .ssh (['systemctl' , 'is-active' , 'netdata.service' ])
30
30
31
31
# Netdata configuration should be accessible only from the host
32
- def test_netdata_conf (self , host_with_netdata ):
33
- host = host_with_netdata
32
+ def test_netdata_conf (self , host ):
34
33
lines = TestsNetdata .__get_headers (host , 19999 , "netdata.conf" )
35
34
assert lines [0 ].strip () == "HTTP/1.1 403 Forbidden"
36
35
@@ -39,7 +38,6 @@ def test_netdata_conf(self, host_with_netdata):
39
38
assert lines [0 ].strip () == "HTTP/1.1 200 OK"
40
39
41
40
# Verify the web UI is accessible. i.e. port 19999 is opened
42
- def test_netdata_webui (self , host_with_netdata ):
43
- host = host_with_netdata
41
+ def test_netdata_webui (self , host ):
44
42
lines = TestsNetdata .__get_headers (host , 19999 )
45
43
assert lines [0 ].strip () == "HTTP/1.1 200 OK"
0 commit comments