]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Add missing extend volume test (rpcapi).
authorAvishay Traeger <avishay@il.ibm.com>
Thu, 20 Jun 2013 04:48:51 +0000 (07:48 +0300)
committerAvishay Traeger <avishay@il.ibm.com>
Thu, 20 Jun 2013 04:48:51 +0000 (07:48 +0300)
Add test that was missing to test the volume rpcapi call for
extend_volume.

Change-Id: Idffc18cad60afe6e8864fd93d36f9ec23a402b73

cinder/tests/test_volume_rpcapi.py

index e4cfee737bb0893b44b4288df1817aa3038bc2e9..812f927c78a43ddec4f1312f0ce2ae9dd66de01b 100644 (file)
@@ -177,3 +177,10 @@ class VolumeRpcAPITestCase(test.TestCase):
                               rpc_method='cast',
                               volume=self.fake_volume,
                               version='1.5')
+
+    def test_extend_volume(self):
+        self._test_volume_api('extend_volume',
+                              rpc_method='cast',
+                              volume=self.fake_volume,
+                              new_size=1,
+                              version='1.6')