diff options
author | Zuul <zuul@review.opendev.org> | 2022-12-20 16:07:00 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-12-20 16:07:00 +0000 |
commit | 6a67b5f03f83ae541eef94d04c238b5ba993681f (patch) | |
tree | 9e5743da53622889cb552f9f54c45c0a2fee20e9 /nova/tests/unit | |
parent | aec72ddeb611754bcc1bdb949d4749708be29d54 (diff) | |
parent | 531e1e8733b8928d262bf3b0b72540dde3ef1dad (diff) | |
download | nova-6a67b5f03f83ae541eef94d04c238b5ba993681f.tar.gz |
Merge "db: Drop redundant indexes on instances and console_auth_tokens tables"
Diffstat (limited to 'nova/tests/unit')
-rw-r--r-- | nova/tests/unit/db/main/test_migrations.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/tests/unit/db/main/test_migrations.py b/nova/tests/unit/db/main/test_migrations.py index d2c4ef9762..e52deb262a 100644 --- a/nova/tests/unit/db/main/test_migrations.py +++ b/nova/tests/unit/db/main/test_migrations.py @@ -314,6 +314,15 @@ class NovaMigrationsWalk( self.assertIsInstance( table.c.encryption_options.type, sa.types.String) + def _check_960aac0e09ea(self, connection): + self.assertIndexNotExists( + connection, 'console_auth_tokens', + 'console_auth_tokens_token_hash_idx', + ) + self.assertIndexNotExists( + connection, 'instances', 'uuid', + ) + def test_single_base_revision(self): """Ensure we only have a single base revision. |