Merge "Rename nova.create_image action"

This commit is contained in:
Zuul 2018-09-27 10:24:15 +00:00 committed by Gerrit Code Review
commit 9fe7a2f0f3
3 changed files with 4 additions and 2 deletions

View File

@ -46,6 +46,8 @@ Changed
api information has been moved into credentials object.
* `Docker image <https://hub.docker.com/r/xrally/xrally-openstack>`_ now
supports mysql and postgres as db backends.
* Rename an action ``nova.create_image`` to ``nova.snapshot_server`` for better
understanding for what is actually done.
Removed
~~~~~~~

View File

@ -483,7 +483,7 @@ class NovaScenario(scenario.OpenStackScenario):
check_interval=check_interval
)
@atomic.action_timer("nova.create_image")
@atomic.action_timer("nova.snapshot_server")
def _create_image(self, server):
"""Create an image from the given server

View File

@ -246,7 +246,7 @@ class NovaScenarioTestCase(test.ScenarioTestCase):
self.assertEqual(self.mock_wait_for_status.mock.return_value,
return_image)
self._test_atomic_action_timer(nova_scenario.atomic_actions(),
"nova.create_image")
"nova.snapshot_server")
def test__default_delete_server(self):
nova_scenario = utils.NovaScenario(context=self.context)