]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fixed the unit tests using SQLite do not check foreign keys.
authorJason Zhang <zhesen@nttmcl.com>
Tue, 11 Dec 2012 02:04:18 +0000 (18:04 -0800)
committerJason Zhang <zhesen@nttmcl.com>
Thu, 13 Dec 2012 20:50:10 +0000 (12:50 -0800)
commitbabe698caf195be6c0f8d4a61dc967007aaedac7
treefc94920984fd0c217884b2a371fe28b23ee20ff0
parentbc1a0d4912ad4d541bef90d512a04eab5b540b47
Fixed the unit tests using SQLite do not check foreign keys.

The foreign key constraints will be enabled for each SQLite
database connection.

By default the foreign key constraints are disabled in SQLite,
so some test cases failed after enabling the foreign key
constraints for unit tests. This fixings also fixed the failed
test cases because of the foreign key enforcement.

Fixes: bug #1021023
Change-Id: I89f0cbbd75bb685b50dfe6628116fa971c5e78cb
quantum/db/api.py
quantum/tests/unit/linuxbridge/test_lb_db.py
quantum/tests/unit/metaplugin/test_metaplugin.py
quantum/tests/unit/openvswitch/test_ovs_db.py
quantum/tests/unit/ryu/test_ryu_db.py
quantum/tests/unit/test_extension_security_group.py