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 11import pytest
22
3+ from lib .common import strtobool
4+
35# Requirements:
46# From --hosts parameter:
57# - host(A1): first XCP-ng host > 8.2.
810
911@pytest .fixture (scope = 'module' )
1012def 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' ) )
1214 yield host
1315
1416class TestInstall :
@@ -22,7 +24,7 @@ def test_install_netdata(self, host_without_netdata):
2224 "api_key" : "dummy_key" , "destination" : "127.0.0.1:19999"
2325 })
2426
25- assert host .call_plugin ('netdata.py' , 'is_netdata_installed' )
27+ assert strtobool ( host .call_plugin ('netdata.py' , 'is_netdata_installed' ) )
2628
2729 host .yum_restore_saved_state ()
2830
You can’t perform that action at this time.
0 commit comments