From 69c7427223a826fb91a73d017e3cc5661c368e16 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Wed, 26 Sep 2018 15:00:25 +0300 Subject: [PATCH] Rename nova.create_image action Change-Id: I584f9501af52f5e0f7c5f9e9fb238a68756c2832 --- CHANGELOG.rst | 2 ++ rally_openstack/scenarios/nova/utils.py | 2 +- tests/unit/scenarios/nova/test_utils.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2cecbcfc..102ed64d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -46,6 +46,8 @@ Changed api information has been moved into credentials object. * `Docker image `_ 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 ~~~~~~~ diff --git a/rally_openstack/scenarios/nova/utils.py b/rally_openstack/scenarios/nova/utils.py index d212135a..17e31847 100644 --- a/rally_openstack/scenarios/nova/utils.py +++ b/rally_openstack/scenarios/nova/utils.py @@ -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 diff --git a/tests/unit/scenarios/nova/test_utils.py b/tests/unit/scenarios/nova/test_utils.py index 68ccfed0..a7bd62fe 100644 --- a/tests/unit/scenarios/nova/test_utils.py +++ b/tests/unit/scenarios/nova/test_utils.py @@ -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)