summaryrefslogtreecommitdiff
path: root/nova/tests/unit/notifications/test_base.py
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2020-01-14 14:44:29 +0000
committerStephen Finucane <sfinucan@redhat.com>2020-02-18 11:45:39 +0000
commit5fc3b81fdfbac9161e77ec2373b536a77a054efa (patch)
treee4bc4d6878054aa37d3df531b477d91fd6059307 /nova/tests/unit/notifications/test_base.py
parente69dbfa0d34d6b3f51282ac0ab51cdab3c2115e4 (diff)
downloadnova-5fc3b81fdfbac9161e77ec2373b536a77a054efa.tar.gz
Remove 'nova.image.api' module
This doesn't exist for 'nova.volume' and no longer exists for 'nova.network'. There's only one image backend we support, so do like we've done elsewhere and just use 'nova.image.glance'. Change-Id: I7ca7d8a92dfbc7c8d0ee2f9e660eabaa7e220e2a Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'nova/tests/unit/notifications/test_base.py')
-rw-r--r--nova/tests/unit/notifications/test_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/unit/notifications/test_base.py b/nova/tests/unit/notifications/test_base.py
index e719b50ccc..be941a8afe 100644
--- a/nova/tests/unit/notifications/test_base.py
+++ b/nova/tests/unit/notifications/test_base.py
@@ -86,7 +86,7 @@ class TestSendInstanceUpdateNotification(test.NoDBTestCase):
mock.sentinel.ctxt, mock.sentinel.instance, None,
populate_image_ref_url=True)
- @mock.patch('nova.image.api.API.generate_image_url',
+ @mock.patch('nova.image.glance.API.generate_image_url',
side_effect=ks_exc.EndpointNotFound)
def test_info_from_instance_image_api_endpoint_not_found_no_token(
self, mock_gen_image_url):
@@ -105,7 +105,7 @@ class TestSendInstanceUpdateNotification(test.NoDBTestCase):
self.assertEqual(instance.image_ref, payload['image_ref_url'])
mock_gen_image_url.assert_called_once_with(instance.image_ref, ctxt)
- @mock.patch('nova.image.api.API.generate_image_url',
+ @mock.patch('nova.image.glance.API.generate_image_url',
side_effect=ks_exc.EndpointNotFound)
def test_info_from_instance_image_api_endpoint_not_found_with_token(
self, mock_gen_image_url):
@@ -121,7 +121,7 @@ class TestSendInstanceUpdateNotification(test.NoDBTestCase):
populate_image_ref_url=True)
mock_gen_image_url.assert_called_once_with(instance.image_ref, ctxt)
- @mock.patch('nova.image.api.API.generate_image_url')
+ @mock.patch('nova.image.glance.API.generate_image_url')
def test_info_from_instance_not_call_generate_image_url(
self, mock_gen_image_url):
ctxt = nova_context.get_admin_context()