diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2019-11-29 11:05:19 +0000 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2020-01-15 14:57:49 +0000 |
commit | fadeedcdeaa949ae85938e78e2f34e75b9383721 (patch) | |
tree | 1b31e747edcfdf382a8e5a37c0fb469e513a21cd /nova/tests/unit/notifications | |
parent | bf7ea80c4d50e61dca349ccf7ca8d72cf5fa071e (diff) | |
download | nova-fadeedcdeaa949ae85938e78e2f34e75b9383721.tar.gz |
nova-net: Remove layer of indirection in 'nova.network'
At some point in the past, there was only nova-network and its code
could be found in 'nova.network'. Neutron was added and eventually found
itself (mostly!) in the 'nova.network.neutronv2' submodule. With
nova-network now gone, we can remove one layer of indirection and move
the code from 'nova.network.neutronv2' back up to 'nova.network',
mirroring what we did with the old nova-volume code way back in 2012
[1]. To ensure people don't get nova-network and 'nova.network'
confused, 'neutron' is retained in filenames.
[1] https://review.opendev.org/#/c/14731/
Change-Id: I329f0fd589a4b2e0426485f09f6782f94275cc07
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'nova/tests/unit/notifications')
-rw-r--r-- | nova/tests/unit/notifications/test_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/unit/notifications/test_base.py b/nova/tests/unit/notifications/test_base.py index a5fa83db9a..e719b50ccc 100644 --- a/nova/tests/unit/notifications/test_base.py +++ b/nova/tests/unit/notifications/test_base.py @@ -136,7 +136,7 @@ class TestSendInstanceUpdateNotification(test.NoDBTestCase): class TestBandwidthUsage(test.NoDBTestCase): @mock.patch('nova.context.RequestContext.elevated') - @mock.patch('nova.network.API') + @mock.patch('nova.network.neutron.API') @mock.patch('nova.objects.BandwidthUsageList.get_by_uuids') def test_context_elevated(self, mock_get_bw_usage, mock_nw_api, mock_elevated): |