summaryrefslogtreecommitdiff
path: root/troveclient/tests
diff options
context:
space:
mode:
authorRobert Myers <robert.myers@rackspace.com>2013-12-19 11:26:46 -0600
committerRobert Myers <robert.myers@rackspace.com>2014-01-28 15:24:26 -0600
commitb23b9fbd87b1a58ad02534d34a745ffa8341bb71 (patch)
treeafd23f75f91001dbf1122af9002d092a35c62d27 /troveclient/tests
parent11c45de9e0474e14f787f2e5e2bf26283fcb02f0 (diff)
downloadpython-troveclient-b23b9fbd87b1a58ad02534d34a745ffa8341bb71.tar.gz
Adding support for incremental backups
* Adds a parent argument to backup-create. * Adds parent_id to the backup create body if present. Implements: blueprint incremental-backups Change-Id: I76f720ae4eadf2a1977c4c2cbf286db4db079b63
Diffstat (limited to 'troveclient/tests')
-rw-r--r--troveclient/tests/test_backups.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/troveclient/tests/test_backups.py b/troveclient/tests/test_backups.py
index d72ba89..912400a 100644
--- a/troveclient/tests/test_backups.py
+++ b/troveclient/tests/test_backups.py
@@ -66,6 +66,14 @@ class BackupManagerTest(testtools.TestCase):
self.backups.create(**args)
create_mock.assert_called_with('/backups', body, 'backup')
+ def test_create_incremental(self):
+ create_mock = mock.Mock()
+ self.backups._create = create_mock
+ args = {'name': 'test_backup', 'instance': '1', 'parent_id': 'foo'}
+ body = {'backup': args}
+ self.backups.create(**args)
+ create_mock.assert_called_with('/backups', body, 'backup')
+
def test_list(self):
page_mock = mock.Mock()
self.backups._paginated = page_mock