libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [17/34] libcloud git commit: test gke is broken again
Date Thu, 22 Jun 2017 03:11:21 GMT
test gke is broken again


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/4cefbbac
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/4cefbbac
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/4cefbbac

Branch: refs/heads/trunk
Commit: 4cefbbacdb9305c1c1565855f050d5cd8c9d263b
Parents: 94a3099
Author: andy <andymaheshw@gmail.com>
Authored: Sun Jun 18 13:03:00 2017 -0400
Committer: andy <andymaheshw@gmail.com>
Committed: Sun Jun 18 13:03:00 2017 -0400

----------------------------------------------------------------------
 libcloud/test/container/test_gke.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/4cefbbac/libcloud/test/container/test_gke.py
----------------------------------------------------------------------
diff --git a/libcloud/test/container/test_gke.py b/libcloud/test/container/test_gke.py
index 3a84aae..0129f9c 100644
--- a/libcloud/test/container/test_gke.py
+++ b/libcloud/test/container/test_gke.py
@@ -52,13 +52,16 @@ class GKEContainerDriverTestCase(GoogleTestCase, TestCaseMixin):
     def test_list_images_response(self):
         pass
 
+    def test_server_config(self):
+        zones = self.driver.get_server_config()
+        print(zones)
+
 
 class GKEMockHttp(MockHttp):
     fixtures = ContainerFileFixtures('gke')
     json_hdr = {'content-type': 'application/json; charset=UTF-8'}
 
     def _get_method_name(self, type, use_param, qs, path):
-        print("GKEMOCKHTTP", type, use_param, qs, path)
         api_path = '%s' % API_VERSION
         project_path = '/projects/%s' % GKE_KEYWORD_PARAMS['project']
         path = path.replace(api_path, '')
@@ -74,5 +77,10 @@ class GKEMockHttp(MockHttp):
             type, use_param, qs, path)
         return method_name
 
+    def _zones_us_central1_a_serverconfig(self, method, url, body, headers):
+        body = self.fixtures.load(
+            'zones_us-central1-a_instance_serverconfig.json')
+        return (httplib.OK, body, self.json_hdr, httplib.responses[httplib.OK])
+
 if __name__ == '__main__':
     sys.exit(unittest.main())


Mime
View raw message