Skip to content

Commit

Permalink
Move V2 API unittests under legacy_v2 directory
Browse files Browse the repository at this point in the history
This patch moves the v2-specific tests in
nova/tests/unit/api/openstack/compute into new 'legacy_v2' directory

Partial-Bug: #1462901
Change-Id: I2de134c91309ddbe1e16a8ab07e06678d92ab32b
  • Loading branch information
soulxu committed Aug 13, 2015
1 parent f65ffa2 commit 7449043
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nova/tests/functional/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _get_flags(self):
f = super(ExtensionsTest, self)._get_flags()
f['osapi_compute_extension'] = CONF.osapi_compute_extension[:]
f['osapi_compute_extension'].append(
'nova.tests.unit.api.openstack.compute.extensions.'
'nova.tests.unit.api.openstack.compute.legacy_v2.extensions.'
'foxinsocks.Foxinsocks')
return f

Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class ExtensionTestCase(test.TestCase):
def setUp(self):
super(ExtensionTestCase, self).setUp()
ext_list = CONF.osapi_compute_extension[:]
fox = ('nova.tests.unit.api.openstack.compute.extensions.'
fox = ('nova.tests.unit.api.openstack.compute.legacy_v2.extensions.'
'foxinsocks.Foxinsocks')
if fox not in ext_list:
ext_list.append(fox)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def test_requested_networks_api_enabled_with_v2_subclass(self):
self.assertEqual([(None, None, port, None)], res.as_tuples())

def test_requested_networks_neutronv2_subclass_with_port(self):
cls = ('nova.tests.unit.api.openstack.compute' +
cls = ('nova.tests.unit.api.openstack.compute.legacy_v2'
'.test_servers.NeutronV2Subclass')
self.flags(network_api_class=cls)
port = 'eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def test_requested_networks_api_enabled_with_v2_subclass(self):
self.assertEqual([(None, None, port, None)], res.as_tuples())

def test_requested_networks_neutronv2_subclass_with_port(self):
cls = ('nova.tests.unit.api.openstack.compute' +
cls = ('nova.tests.unit.api.openstack.compute.plugins.v3'
'.test_servers.NeutronV2Subclass')
self.flags(network_api_class=cls)
port = 'eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee'
Expand Down

0 comments on commit 7449043

Please sign in to comment.