Bug 1042118 - [RFE][oslo]: Common test for checking models with migrations
Summary: [RFE][oslo]: Common test for checking models with migrations
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: RFEs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Upstream M3
: ---
Assignee: RHOS Maint
QA Contact:
URL: https://blueprints.launchpad.net/oslo...
Whiteboard: upstream_milestone_none upstream_stat...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 21:05 UTC by RHOS Integration
Modified: 2015-03-19 17:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-19 17:28:21 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description RHOS Integration 2013-12-12 21:05:22 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/oslo/+spec/sync-models-with-migrations.

Description:

All component from Openstack uses models as python representation and migrations as database creation tools.
There is no check for equality of models with databse state.
In fact we have differences in models. We are working on syncing models with migrations, but it will be better to have common test that will check any differences. It can be used in any components of OpenStack.
For checking mysql and postgress should be used.
Objects for testing:
- columns (type, length, default values, nullable),
- constraints (foreign key, unique key, indexes).

Specification URL (additional information):

None


Note You need to log in before you can comment on or make changes to this bug.