File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/xapi_plugins/plugin_netdata Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import pytest
2
2
3
+ from lib .common import strtobool
4
+
3
5
# Requirements:
4
6
# From --hosts parameter:
5
7
# - host(A1): first XCP-ng host > 8.2.
8
10
9
11
@pytest .fixture (scope = 'module' )
10
12
def host_without_netdata (host ):
11
- assert not host .call_plugin ('netdata.py' , 'is_netdata_installed' )
13
+ assert not strtobool ( host .call_plugin ('netdata.py' , 'is_netdata_installed' ) )
12
14
yield host
13
15
14
16
class TestInstall :
@@ -22,7 +24,7 @@ def test_install_netdata(self, host_without_netdata):
22
24
"api_key" : "dummy_key" , "destination" : "127.0.0.1:19999"
23
25
})
24
26
25
- assert host .call_plugin ('netdata.py' , 'is_netdata_installed' )
27
+ assert strtobool ( host .call_plugin ('netdata.py' , 'is_netdata_installed' ) )
26
28
27
29
host .yum_restore_saved_state ()
28
30
You can’t perform that action at this time.
0 commit comments