OpenStack Database as a Service (Trove) Client
Go to file
Zhao Chao 728d9378dc Fix invalid mock in OSC cluster creating unittest
As '_parse_instance_options' is imported into database_clusters, mocking
destination should be the database_clusters module, not the original
troveclient.v1.shell.

The reason this test passed before this patch is, the return value of
'_parse_instance_options' is not checked, i.e. the mock object is also
useless. This patch also checks how troveclient.v1.clusters.create is
called to ensure '_parse_instance_options' is correctly mocked.

Change-Id: I903a3b9565e4044c33401a6abcc47d50a5a2567f
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-02-13 20:44:09 +08:00
doc/source Update the trove docs to follow the docs theme 2017-07-13 10:59:55 -05:00
playbooks/legacy/tempest-dsvm-neutron-src-python-troveclient Consume new trove tempest plugin 2017-12-25 16:21:46 +05:30
releasenotes Update reno for stable/queens 2018-02-01 17:45:10 +00:00
tools Avoid tox_install.sh for constraints support 2017-12-02 16:54:12 +00:00
troveclient Fix invalid mock in OSC cluster creating unittest 2018-02-13 20:44:09 +08:00
.coveragerc move old apiclient code out of openstack/common 2016-11-10 10:02:08 -05:00
.gitignore rearrange docs into new standard layout 2017-06-29 17:00:28 -04:00
.gitreview Renamed reddwarfclient repo to troveclient. 2013-06-14 18:18:04 -04:00
.testr.conf Include troveclient/compat/tests in testr 2013-10-23 06:53:45 +08:00
.zuul.yaml Remove now obsolete Zuul job name 2018-01-21 20:30:51 +01:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:40 +00:00
LICENSE Add License, AUTHORS and ChangeLog to package 2013-06-26 13:37:40 +02:00
README.rst Update the doc link 2017-11-24 16:04:43 +00:00
requirements.txt Updated from global requirements 2017-12-21 00:47:24 +00:00
run_local.sh Rename from reddwarf to trove. 2013-06-21 20:15:23 +00:00
setup.cfg Merge "Fix log-enable high priority error" 2018-01-23 16:26:56 +00:00
setup.py Updated from global requirements 2017-04-07 06:16:56 +00:00
test-requirements.txt Updated from global requirements 2018-01-24 01:33:38 +00:00
tox.ini Avoid tox_install.sh for constraints support 2017-12-02 16:54:12 +00:00

README.rst

Python bindings to the OpenStack Trove API

image

Latest Version

Downloads

This is a client for the OpenStack Trove API. There's a Python API (the troveclient module), and a command-line script (trove). Each implements 100% of the OpenStack Trove API.

See the Trove CLI Guide for information on how to use the trove command-line tool. You may also want to look at the OpenStack API documentation.

python-troveclient is licensed under the Apache License like the rest of OpenStack.