Browse Source

Unneeded testing in DB migration of volume connector

This removes some testing from the unit test for the DB migration
of the volume connector table, since it does not seem useful to have
(https://review.openstack.org/#/c/285218/42/ironic/tests/unit/db/sqlalchemy/test_migrations.py).

Change-Id: I2f94fc481be2db7b96431d9a1ae6d230dafbe9db
Partial-Bug: 1526231
tags/7.0.0
Ruby Loo 2 years ago
parent
commit
9606ac9ee3
1 changed files with 0 additions and 13 deletions
  1. 0
    13
      ironic/tests/unit/db/sqlalchemy/test_migrations.py

+ 0
- 13
ironic/tests/unit/db/sqlalchemy/test_migrations.py View File

@@ -572,19 +572,6 @@ class MigrationCheckersMixin(object):
572 572
         self.assertIsInstance(connectors.c.extra.type,
573 573
                               sqlalchemy.types.TEXT)
574 574
 
575
-        typestring = 'a' * 32
576
-        connector_idstring = 'a' * 255
577
-        uuid = uuidutils.generate_uuid()
578
-        data = {'uuid': uuid, 'node_id': 1, 'type': typestring,
579
-                'connector_id': connector_idstring, 'extra': '{}'}
580
-        connectors.insert().execute(data)
581
-        connector = connectors.select(
582
-            connectors.c.uuid == uuid).execute().first()
583
-        self.assertEqual(typestring, connector['type'])
584
-        self.assertEqual(connector_idstring, connector['connector_id'])
585
-        self.assertEqual(1, connector['node_id'])
586
-        self.assertEqual('{}', connector['extra'])
587
-
588 575
     def _check_1a59178ebdf6(self, engine, data):
589 576
         targets = db_utils.get_table(engine, 'volume_targets')
590 577
         col_names = [column.name for column in targets.c]

Loading…
Cancel
Save