Common test for checking models with migrations
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).
Blueprint information
- Status:
- Started
- Approver:
- Doug Hellmann
- Priority:
- High
- Drafter:
- Svetlana Shturm
- Direction:
- Needs approval
- Assignee:
- Svetlana Shturm
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Started
- Milestone target:
- None
- Started by
- Doug Hellmann
- Completed by
Related branches
Related bugs
Sprints
Whiteboard
See https:/
Gerrit topic: https:/
Addressed by: https:/
Add class for checking models with db
Addressed by: https:/
Add test for checking models with migrations
Addressed by: https:/
Test cover for testing of models with database
Addressed by: https:/
Add class for checking models with db(part II)
Quite a few of these reviews are abandoned. Is this blueprint still on target for icehouse-2? -- dhellmann
Addressed by: https:/
Add a base test case for DB schema comparison
Addressed by: https:/
Prevent races in opportunistic db test cases
Addressed by: https:/
Make db utils importable without migrate
Addressed by: https:/
Adapt DB provisioning code for CI requirements
Addressed by: https:/
Add a base test case for DB schema comparison
Addressed by: https:/
Sync test_migrations.py with incubator
Addressed by: https:/
Add a base test case for DB schema comparison
Addressed by: https:/
Prevent races in opportunistic db test cases
Work Items
Dependency tree
* Blueprints in grey have been implemented.