27a4e2c6501ff4a2ec13ed32e384834f538de8f5
Replace the sqlalchemy engine and session management with an oslo.db facade. This does the work transparently and fixes connection mismanagement. The changes involve: - modifying the sqlalchemy session script to use oslo_db functions - adding the oslo_db engine configuration parameters - tweaking the faked tests to pass* * the faked tests are sensitive to sleep calls and oslo_db uses a sleep(0) hack which was causing issues. The coverage of the tests was not affected. Implements: blueprint move-to-oslo-db Change-Id: I59f1fc0fe1551b9a815a51e6a620fabf060b013f
Trove
Trove is Database as a Service for OpenStack.
Usage for integration testing
If you'd like to start up a fake Trove API daemon for integration testing with your own tool, run:
Stop the server with:
Tests
To run all tests and PEP8, run tox, like so:
To run just the tests for Python 2.7, run:
To run just PEP8, run:
To generate a coverage report,run:
(note: on some boxes, the results may not be accurate unless you run it twice)
If you want to run only the tests in one file you can use testtools e.g.
Description
Languages
Python
95%
Shell
4.9%