]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Move DB TestModelsMigrations from unit to functional
authorHenry Gessau <gessau@cisco.com>
Sun, 5 Oct 2014 05:23:50 +0000 (01:23 -0400)
committerMark McClain <mark@mcclain.xyz>
Fri, 19 Dec 2014 03:41:05 +0000 (22:41 -0500)
commit3e0745827f414ecc39a0b0a40349e3646a8e2db9
tree53c8a0362b97fde4b06fa6ef455b46d958326566
parent5f95f67a0afd09f8c4e187743852fa37b4f37613
Move DB TestModelsMigrations from unit to functional

The tests to check that DB migrations and models are in sync depends
on the mysql and postgresql backends being available with a specific
DB user and database created. This violates the principles for unit
tests and therefore these tests should be moved to functional tests.

For these tests to work in the functional job in the gate, the
backends must be installed and the DB user and database created.
We do this via the functional gate hook.

Closes-bug: #1372981

Change-Id: I7b89feef3f19ca07dbfb05acfaa30529a5bf683d
doc/source/devref/db_layer.rst
neutron/tests/contrib/gate_hook.sh
neutron/tests/functional/db/test_migrations.py [moved from neutron/tests/unit/db/test_migration.py with 100% similarity]
neutron/tests/functional/requirements.txt [new file with mode: 0644]
test-requirements.txt
tox.ini