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:16 UTC

[05/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/55c09dc5
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/55c09dc5
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/55c09dc5

Branch: refs/heads/trunk
Commit: 55c09dc5101971845722766cf3202427918838f4
Parents: c6b9365
Author: Jie Ren <sn...@126.com>
Authored: Mon Feb 27 09:29:07 2017 +0800
Committer: Jie Ren <sn...@126.com>
Committed: Mon Feb 27 09:29:07 2017 +0800

----------------------------------------------------------------------
 libcloud/test/compute/test_ecs.py | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/55c09dc5/libcloud/test/compute/test_ecs.py
----------------------------------------------------------------------
diff --git a/libcloud/test/compute/test_ecs.py b/libcloud/test/compute/test_ecs.py
index c48388e..48c9423 100644
--- a/libcloud/test/compute/test_ecs.py
+++ b/libcloud/test/compute/test_ecs.py
@@ -912,6 +912,14 @@ 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])
 
     def _list_sgs_filters_DescribeSecurityGroups(self, method, url, body,
                                                  headers):