summaryrefslogtreecommitdiff
path: root/cinderclient/tests/unit/v2/test_shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'cinderclient/tests/unit/v2/test_shell.py')
-rw-r--r--cinderclient/tests/unit/v2/test_shell.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/cinderclient/tests/unit/v2/test_shell.py b/cinderclient/tests/unit/v2/test_shell.py
index 42c3dc7..1c140cb 100644
--- a/cinderclient/tests/unit/v2/test_shell.py
+++ b/cinderclient/tests/unit/v2/test_shell.py
@@ -794,6 +794,23 @@ class ShellTest(utils.TestCase):
self.assert_called('POST', '/volumes/1234/action',
body=expected)
+ def test_replication_enable(self):
+ self.run_command('replication-enable 1234')
+ self.assert_called('POST', '/volumes/1234/action')
+
+ def test_replication_disable(self):
+ self.run_command('replication-disable 1234')
+ self.assert_called('POST', '/volumes/1234/action')
+
+ def test_replication_list_targets(self):
+ self.run_command('replication-list-targets 1234')
+ self.assert_called('POST', '/volumes/1234/action')
+
+ def test_replication_failover(self):
+ self.run_command('replication-failover 1234 target')
+ expected = {'os-failover_replication': {'secondary': 'target'}}
+ self.assert_called('POST', '/volumes/1234/action', body=expected)
+
def test_snapshot_metadata_set(self):
self.run_command('snapshot-metadata 1234 set key1=val1 key2=val2')
self.assert_called('POST', '/snapshots/1234/metadata',