]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use sqlite db on file for unit tests
authorSalvatore Orlando <salv.orlando@gmail.com>
Sat, 22 Sep 2012 00:06:47 +0000 (17:06 -0700)
committerSalvatore Orlando <salv.orlando@gmail.com>
Sun, 23 Sep 2012 12:51:50 +0000 (05:51 -0700)
commitb6185c43385b8cf2d8890671dba3aaa5d3dd2139
treee2fa32ab0dd8f628b09bd6791b732f51c3de9ae3
parent20aab796759c2ce56082d000db3f46445a34fa9f
Use sqlite db on file for unit tests

bug 1054387

So far unit tests were executed using an in-memory database.
Memory was not being freed thus causing oom frequently due to
the increased number of unit tests.
Since sqlite in memory db do not work very well anyway with nose,
we are moving to file-based databases; slower, but safer.

Also, this patch removes a bunch of unit tests which do not add
anything to code coverage or number or test cases exercised.

Change-Id: Ib853727a5268643fbe8a99f6ebd0fc10aca6a43a
13 files changed:
quantum/db/db_base_plugin_v2.py
quantum/tests/etc/quantum.conf.test
quantum/tests/unit/cisco/test_network_plugin.py
quantum/tests/unit/linuxbridge/test_linuxbridge_plugin.py
quantum/tests/unit/nec/test_nec_plugin.py
quantum/tests/unit/nec/test_nec_plugin_v2.py [deleted file]
quantum/tests/unit/nicira/etc/nvp.ini.test
quantum/tests/unit/nicira/fake_nvpapiclient.py
quantum/tests/unit/nicira/test_nicira_plugin.py
quantum/tests/unit/openvswitch/test_openvswitch_plugin.py
quantum/tests/unit/ryu/test_ryu_db.py
quantum/tests/unit/ryu/test_ryu_plugin.py
quantum/tests/unit/test_db_plugin.py