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:45:17 UTC
[06/14] libcloud git commit: Modify for test
Modify for test
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/027cef78
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/027cef78
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/027cef78
Branch: refs/heads/trunk
Commit: 027cef787072fe3c7c1a96b0acdfb1a3b2c4c9f6
Parents: 55c09dc
Author: Jie Ren <sn...@126.com>
Authored: Mon Feb 27 10:15:05 2017 +0800
Committer: Jie Ren <sn...@126.com>
Committed: Mon Feb 27 10:15:05 2017 +0800
----------------------------------------------------------------------
libcloud/test/compute/test_ecs.py | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/027cef78/libcloud/test/compute/test_ecs.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_ecs.py b/libcloud/test/compute/test_ecs.py
index 48c9423..5df10ab 100644
--- a/libcloud/test/compute/test_ecs.py
+++ b/libcloud/test/compute/test_ecs.py
@@ -529,13 +529,19 @@ class ECSDriverTestCase(LibcloudTestCase):
self.assertEqual('2015-06-26T08:35:30Z', sg.creation_time)
def test_ex_join_security_group(self):
- ex_security_group_id_value='sg-28ou0f3xa'
- result = self.driver.ex_join_security_group(self.fake_node, group_id=ex_security_group_id_value)
+ ex_security_group_id_value = 'sg-28ou0f3xa'
+ result = self.driver.ex_join_security_group(
+ self.fake_node,
+ group_id=ex_security_group_id_value
+ )
self.assertTrue(result)
def test_ex_leave_security_group(self):
- ex_security_group_id_value='sg-28ou0f3xa'
- result = self.driver.ex_leave_security_group(self.fake_node, group_id=ex_security_group_id_value)
+ ex_security_group_id_value = 'sg-28ou0f3xa'
+ result = self.driver.ex_leave_security_group(
+ self.fake_node,
+ group_id=ex_security_group_id_value
+ )
self.assertTrue(result)
def test_ex_list_security_groups_with_ex_filters(self):
@@ -912,11 +918,11 @@ class ECSMockHttp(MockHttpTestCase):
self.assertUrlContainsQueryParams(url, params)
resp_body = self.fixtures.load('describe_security_groups.xml')
return (httplib.OK, resp_body, {}, httplib.responses[httplib.OK])
-
+
def _JoinSecurityGroup(self, method, url, body, headers):
body = self.fixtures.load('join_security_group_by_id.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
-
+
def _LeaveSecurityGroup(self, method, url, body, headers):
body = self.fixtures.load('leave_security_group_by_id.xml')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])