Matt Van Dijk
32387f8ffd
Fix replica source state validation
Creating a replica did not check that the specified source was available. It is necessary that the source's state is active and that it is not busy. This is done by verifying the state and status of the master. The new checks will throw a HTTP 422 UnprocessableEntity in cases when the status is not ACTIVE or source is busy performing a task Changes: - adding validation step that checks if master exists and in proper state. - added appropriate API and unit tests Co-authored by: Denis Makogon <dmakogon@mirantis.com> DocImpact Change-Id: Ib4e37ff0036998bc53058e400054ed93fcc2e144 Closes-Bug: #1357704
Trove
Trove is Database as a Service for Open Stack.
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%