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. api information has been moved into credentials object.
* `Docker image <https://hub.docker.com/r/xrally/xrally-openstack>`_ now * `Docker image <https://hub.docker.com/r/xrally/xrally-openstack>`_ now
supports mysql and postgres as db backends. 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 Removed
~~~~~~~ ~~~~~~~

View File

@ -483,7 +483,7 @@ class NovaScenario(scenario.OpenStackScenario):
check_interval=check_interval check_interval=check_interval
) )
@atomic.action_timer("nova.create_image") @atomic.action_timer("nova.snapshot_server")
def _create_image(self, server): def _create_image(self, server):
"""Create an image from the given 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, self.assertEqual(self.mock_wait_for_status.mock.return_value,
return_image) return_image)
self._test_atomic_action_timer(nova_scenario.atomic_actions(), self._test_atomic_action_timer(nova_scenario.atomic_actions(),
"nova.create_image") "nova.snapshot_server")
def test__default_delete_server(self): def test__default_delete_server(self):
nova_scenario = utils.NovaScenario(context=self.context) nova_scenario = utils.NovaScenario(context=self.context)