Merge "Add CREATE_FAILED as a failure state in magnum cluster tests"
This commit is contained in:
commit
26212931fb
@ -115,6 +115,7 @@ class MagnumScenario(scenario.OpenStackScenario):
|
||||
cluster = utils.wait_for_status(
|
||||
cluster,
|
||||
ready_statuses=["CREATE_COMPLETE"],
|
||||
failure_statuses=["CREATE_FAILED", "ERROR"],
|
||||
update_resource=utils.get_from_manager(),
|
||||
timeout=CONF.openstack.magnum_cluster_create_timeout,
|
||||
check_interval=CONF.openstack.magnum_cluster_create_poll_interval,
|
||||
|
@ -97,6 +97,7 @@ class MagnumScenarioTestCase(test.ScenarioTestCase):
|
||||
self.mock_wait_for_status.mock.assert_called_once_with(
|
||||
self.cluster,
|
||||
ready_statuses=["CREATE_COMPLETE"],
|
||||
failure_statuses=["CREATE_FAILED", "ERROR"],
|
||||
update_resource=self.mock_get_from_manager.mock.return_value,
|
||||
check_interval=CONF.openstack.
|
||||
magnum_cluster_create_poll_interval,
|
||||
|
Loading…
x
Reference in New Issue
Block a user