diff options
Diffstat (limited to 'tests/test_discovery.py')
-rw-r--r-- | tests/test_discovery.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_discovery.py b/tests/test_discovery.py index 122d8a1..5e03732 100644 --- a/tests/test_discovery.py +++ b/tests/test_discovery.py @@ -17,6 +17,7 @@ # from plugins import discovery +from glusternagios.glustercli import HostStatus from testrunner import PluginsTestCase as TestCaseBase @@ -63,8 +64,10 @@ class TestDiscovery(TestCaseBase): def _getPeers(self): result = [] - result.append({"hostip": "lo", "uuid": "0000-1111"}) - result.append({"hostip": "172.16.53.2", "uuid": "0000-1112"}) + result.append({"hostip": "lo", "uuid": "0000-1111", + 'status': HostStatus.CONNECTED}) + result.append({"hostip": "172.16.53.2", "uuid": "0000-1112", + 'status': HostStatus.CONNECTED}) return result def _getHostParams(self, hostip): |