Move sqlalchemy test_migrations and utils to common code

Registered by Svetlana Shturm

Ceilometer uses ceilometer/storage/sqlalchemy/models.py as python model of database.
But this model doesn't uses for creation of database. Migrations (migrate and alembic) in ceilometer/storage/sqlalchemy/[migrate_repo, alembic]/versions are used for this goal.
In fact we have a difference in models and migrations. Also migrations are tested in every component in OpenStack test and they should be checked by sync with models.

We should use one main concept in migrations testing.
From oslo should be used:
1) openstack/common/test.py ,
2) openstack/common/db/sqlalchemy/test_migrations.[py,conf]

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
Svetlana Shturm
Direction:
Needs approval
Assignee:
Svetlana Shturm
Definition:
Obsolete
Series goal:
None
Implementation:
Unknown
Milestone target:
None
Completed by
gordon chung

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/ceilometer-db-sync-models-with-migrations,n,z

Addressed by: https://review.openstack.org/43872
    Add test for checking models with migrations

Gerrit topic: https://review.openstack.org/#q,topic:bp/db-common-migration-and-utils,n,z

this effort appears to be abandoned, doesn't look like it made it into oslo either -- gordc (17.6.2015)

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.