Remove unused migration tests
Follow up to https://review.opendev.org/694718, these was supposed to be removed there. Change-Id: I96fbbb7c1ae105abb1ba83f722f961abdc58bc1d
This commit is contained in:
parent
516f04caf7
commit
6ad4833b0e
|
@ -18,7 +18,6 @@ import types
|
|||
|
||||
import mock
|
||||
from oslo_config import cfg
|
||||
from oslo_utils import uuidutils
|
||||
from testtools import matchers
|
||||
|
||||
from ironic.common import exception
|
||||
|
@ -334,18 +333,3 @@ class TestConvertToVersion(db_base.DbTestCase):
|
|||
port._convert_to_version("1.8", False)
|
||||
self.assertFalse(port.is_smartnic)
|
||||
self.assertNotIn('is_smartnic', port.obj_get_changes())
|
||||
|
||||
|
||||
class TestMigrateVifPortId(db_base.DbTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestMigrateVifPortId, self).setUp()
|
||||
self.vif_id = 'some_uuid'
|
||||
self.db_ports = []
|
||||
extra = {'vif_port_id': self.vif_id}
|
||||
for i in range(3):
|
||||
port = db_utils.create_test_port(
|
||||
uuid=uuidutils.generate_uuid(),
|
||||
address='52:54:00:cf:2d:3%s' % i,
|
||||
extra=extra, version='1.7')
|
||||
self.db_ports.append(port)
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
import datetime
|
||||
|
||||
import mock
|
||||
from oslo_utils import uuidutils
|
||||
from testtools import matchers
|
||||
|
||||
from ironic.common import exception
|
||||
|
@ -202,19 +201,3 @@ class TestConvertToVersion(db_base.DbTestCase):
|
|||
portgroup._convert_to_version('1.4', False)
|
||||
# no change
|
||||
self.assertEqual(vif2, portgroup.internal_info['tenant_vif_port_id'])
|
||||
|
||||
|
||||
class TestMigrateVifPortId(db_base.DbTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestMigrateVifPortId, self).setUp()
|
||||
self.vif_id = 'some_uuid'
|
||||
self.db_portgroups = []
|
||||
extra = {'vif_port_id': self.vif_id}
|
||||
for i in range(3):
|
||||
portgroup = db_utils.create_test_portgroup(
|
||||
uuid=uuidutils.generate_uuid(),
|
||||
name='pg%s' % i,
|
||||
address='52:54:00:cf:2d:3%s' % i,
|
||||
extra=extra, version='1.3')
|
||||
self.db_portgroups.append(portgroup)
|
||||
|
|
Loading…
Reference in New Issue