Rename nova.create_image action

Change-Id: I584f9501af52f5e0f7c5f9e9fb238a68756c2832
This commit is contained in:
Andrey Kurilin 2018-09-26 15:00:25 +03:00
parent 781736cf52
commit 69c7427223
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)