You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/21 05:42:59 UTC
[12/16] libcloud git commit: tests updated,
ex_volume_modify() response parsing fixed
tests updated, ex_volume_modify() response parsing fixed
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/606b5f2c
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/606b5f2c
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/606b5f2c
Branch: refs/heads/trunk
Commit: 606b5f2c8c320fcbe45d17a9a734372d4684d175
Parents: 7ea29c9
Author: Hennadii Stas <ut...@gmail.com>
Authored: Thu Apr 20 11:42:27 2017 +0300
Committer: Hennadii Stas <ut...@gmail.com>
Committed: Thu Apr 20 13:17:24 2017 +0300
----------------------------------------------------------------------
libcloud/compute/drivers/ec2.py | 4 +++-
libcloud/test/compute/test_ec2.py | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/606b5f2c/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index be5644e..22d3a64 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -5647,7 +5647,9 @@ class BaseEC2NodeDriver(NodeDriver):
response = self.connection.request(self.path,
params=parameters.copy()).object
- return self._to_volume_modification(response)
+
+ return self._to_volume_modification(response.findall(
+ fixxpath(xpath='volumeModification', namespace=NAMESPACE))[0])
def ex_describe_volumes_modifications(self, dry_run=False, volume_ids=None,
filters=None, next_token=None,
http://git-wip-us.apache.org/repos/asf/libcloud/blob/606b5f2c/libcloud/test/compute/test_ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_ec2.py b/libcloud/test/compute/test_ec2.py
index c0c9091..cce28c1 100644
--- a/libcloud/test/compute/test_ec2.py
+++ b/libcloud/test/compute/test_ec2.py
@@ -1187,6 +1187,7 @@ class EC2Tests(LibcloudTestCase, TestCaseMixin):
'Size': 2,
'Iops': 1000}
volume_modification = self.driver.ex_modify_volume(volume, params)
+
self.assertIsNone(volume_modification.end_time)
self.assertEqual('modifying', volume_modification.modification_state)
self.assertEqual(300, volume_modification.original_iops)