Merge "Add CREATE_FAILED as a failure state in magnum cluster tests"

This commit is contained in:
Zuul 2018-04-17 18:03:31 +00:00 committed by Gerrit Code Review
commit 26212931fb
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -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,