diff options
| author | Peter Stachowski <peter@tesora.com> | 2016-03-08 00:22:06 -0500 |
|---|---|---|
| committer | Peter Stachowski <peter@tesora.com> | 2016-03-11 18:10:50 -0500 |
| commit | 457360c69f651aea92769c9e543492d770b84595 (patch) | |
| tree | c9fb106454232e8372102b066d9b4a954d4c1c78 /troveclient/tests/test_instances.py | |
| parent | 3c71e52b408bbd6c33fca85188db2c8f156fb341 (diff) | |
| download | python-troveclient-2.2.0.tar.gz | |
Client support for instance module feature2.2.0
This adds support in the python API and Trove CLI
for instance module commands. These commands include:
- module-apply
- module-remove
- module-query
- module-retrieve
- module-list-instance
The parsing of --instance was modified to allow multiple
modules to be specified. This was extended to 'nics' as well.
Partially Implements: blueprint module-management
Change-Id: If62f5e51d4628cc6a8b10303d5c3893b3bd5057e
Diffstat (limited to 'troveclient/tests/test_instances.py')
| -rw-r--r-- | troveclient/tests/test_instances.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/troveclient/tests/test_instances.py b/troveclient/tests/test_instances.py index 6d96e0e..1e8e77d 100644 --- a/troveclient/tests/test_instances.py +++ b/troveclient/tests/test_instances.py @@ -99,7 +99,8 @@ class InstancesTest(testtools.TestCase): ['db1', 'db2'], ['u1', 'u2'], datastore="datastore", datastore_version="datastore-version", - nics=nics, slave_of='test') + nics=nics, slave_of='test', + modules=['mod_id']) self.assertEqual("/instances", p) self.assertEqual("instance", i) self.assertEqual(['db1', 'db2'], b["instance"]["databases"]) @@ -116,6 +117,7 @@ class InstancesTest(testtools.TestCase): self.assertEqual('test', b['instance']['replica_of']) self.assertNotIn('slave_of', b['instance']) self.assertTrue(mock_warn.called) + self.assertEqual([{'id': 'mod_id'}], b["instance"]["modules"]) def test_list(self): page_mock = mock.Mock() |
