qa/tasks/mgr/test_orchestrator_cli: test with valid network or IP

Passing 'network' will fail with

Error EINVAL: Failed to parse host list: '['host1:network', 'host2:network', 'host3:network']': u'network' does not appear to be an IPv4 or IPv6 address

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2019-12-06 15:54:06 -06:00
parent f7b43f6d40
commit fbee608dee

View File

@ -157,7 +157,8 @@ class TestOrchestratorCli(MgrTestCase):
def test_mon_update(self):
self._orch_cmd("mon", "update", "3")
self._orch_cmd("mon", "update", "3", "host1:network", "host2:network", "host3:network")
self._orch_cmd("mon", "update", "3", "host1:1.2.3.0/24", "host2:1.2.3.0/24", "host3:10.0.0.0/8")
self._orch_cmd("mon", "update", "3", "host1:1.2.3.4", "host2:1.2.3.4", "host3:10.0.0.1")
def test_mgr_update(self):
self._orch_cmd("mgr", "update", "3")