glance/glance/tests/unit
Hemanth Makkapati 21d431013f Port Glance Migrations to Alembic
This change proposes the use of Alembic to manage Glance migrations.
* Introduce new directory ``alembic_migrations`` under
  ``glance/db/sqlalchemy``. This directory is the home for all glance
  migrations henceforth. All the migration scripts reside under
  ``versions`` directory.
* All the migrations up to Liberty are consolidated into one migration
  called ``liberty_initial`` as those migrations are not supported
  any more. Mitaka migrations are retained but under a different naming
  convention.
* All the glance manage db commands are changed appropriately. They now
  use alembic to perform operations such as ``version``, ``upgrade``,
  ``sync`` and ``version_control``.
* The database versions are not numerical any more. They are the revision
  ID of the last migration applied on the database. Since we don't
  support migrations before Mitaka, the Liberty version ``42`` will now
  appear as ``liberty``. Migration ``43`` and ``44`` in Mitaka appear as
  ``mitaka01`` and ``mitaka02`` respectively.
* When one performs a ``sync`` or ``upgrade`` command, the database is
  first stamped with an equivalent alembic version before upgrading.
* The older migration scripts are retained so that users can correlate
  with the new migrations. Also, it is probably safe to retain them until
  the alembic migrations become stable. Similarly, the ``migrate_version``
  table is not removed yet.

Partially-Implements: blueprint alembic-migrations

Change-Id: Ie8594ff339a13bf190aefa308f54e97ee20ecfa2
Co-Authored-By: Alexander Bashmakov <alexander.bashmakov@intel.com>
Depends-On: I1596499529af249bc48dfe859bbd31e90c48a5e0
2017-01-31 22:42:43 -06:00
..
api Use more specific asserts in unit tests 2016-08-04 21:17:52 +02:00
async Adding constraints around qemu-img calls 2016-09-26 13:28:31 -05:00
common Merge "Enable python3.5 testing." 2017-01-25 20:12:39 +00:00
v1 Merge "Add image update tests for is_public" 2017-01-26 06:41:19 +00:00
v2 Merge "Implement and Enable Community Images" 2017-01-19 18:24:08 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
base.py Don't use config option sqlite_db 2016-08-16 13:42:02 +08:00
fake_rados.py Fixes rbd _delete_image snapshot with missing image 2013-10-07 23:15:49 +01:00
test_auth.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_cache_middleware.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_cached_images.py Improved coverage for glance.api.* 2014-06-15 17:44:09 +00:00
test_context.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_context_middleware.py Support Unicode request_id on Python 3 2015-11-27 15:44:54 +01:00
test_db.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_db_metadef.py Don't use slashes for long lines - use parentheses instead 2015-08-16 07:21:13 +00:00
test_domain.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_domain_proxy.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
test_glance_manage.py Allow purging of records less than 1 day old. 2016-12-05 21:28:24 +00:00
test_glance_replicator.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_glare_plugin_loader.py refactor glare plugin loader tests to not mock private methods of stevedore 2017-01-30 09:45:49 -05:00
test_glare_type_definition_framework.py Allow mutable argument to be passed to BinaryObject artifacts 2016-02-12 16:13:17 +03:00
test_image_cache.py Port image cache to Python 3 2015-08-16 11:49:45 +02:00
test_image_cache_client.py Do not use service catalog for cache client 2016-11-07 16:38:52 +00:00
test_jsonpatchmixin.py Fix mutable defaults in tests 2015-09-28 14:36:27 +03:00
test_manage.py Port Glance Migrations to Alembic 2017-01-31 22:42:43 -06:00
test_migrations.py Refine migration query added with CI change 2017-01-29 19:37:20 +00:00
test_misc.py Port v1.test_registry_api to Python 3 2015-10-22 22:53:05 +02:00
test_notifier.py Merge "Added unit tests for disabled notifications in Notifier" 2016-11-22 04:03:23 +00:00
test_policy.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_quota.py Add __ne__ built-in function 2016-07-13 15:33:39 +08:00
test_schema.py Fix assertEqual arguments order 2014-09-19 00:25:18 +08:00
test_scrubber.py Fixes the possibility of leaving orphaned data 2015-09-17 19:01:27 +00:00
test_store_glare.py Move Glance Artifact Repository API to separate endpoint 2016-02-10 18:34:55 +03:00
test_store_image.py Use cursive for signature verification 2016-08-31 12:18:10 -07:00
test_store_location.py Upgrade to hacking 0.10 2015-01-13 15:03:27 +01:00
test_versions.py Bump minor API version 2017-01-19 18:16:51 -05:00
utils.py Fix cursive named arguments 2016-09-09 13:05:16 +00:00