libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [01/20] libcloud git commit: remove unreachable API version methods for kubernetes
Date Fri, 05 May 2017 11:46:20 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 6c0b17f10 -> 862daa862


remove unreachable API version methods for kubernetes


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

Branch: refs/heads/trunk
Commit: c99b6bcae8809b8418e2ca0407863e2a520e4829
Parents: 6c0b17f
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Fri May 5 15:09:12 2017 +1000
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Fri May 5 15:09:12 2017 +1000

----------------------------------------------------------------------
 libcloud/container/drivers/kubernetes.py   | 10 ----------
 libcloud/test/container/test_kubernetes.py |  8 --------
 2 files changed, 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/c99b6bca/libcloud/container/drivers/kubernetes.py
----------------------------------------------------------------------
diff --git a/libcloud/container/drivers/kubernetes.py b/libcloud/container/drivers/kubernetes.py
index 526ad76..d78fdd2 100644
--- a/libcloud/container/drivers/kubernetes.py
+++ b/libcloud/container/drivers/kubernetes.py
@@ -390,16 +390,6 @@ class KubernetesContainerDriver(ContainerDriver):
             driver=self.connection.driver,
             extra={'phase': status['phase']})
 
-    def _get_api_version(self):
-        """
-        Get the docker API version information
-        """
-        result = self.connection.request('/version').object
-        result = result or {}
-        api_version = result.get('ApiVersion')
-
-        return api_version
-
 
 def ts_to_str(timestamp):
     """

http://git-wip-us.apache.org/repos/asf/libcloud/blob/c99b6bca/libcloud/test/container/test_kubernetes.py
----------------------------------------------------------------------
diff --git a/libcloud/test/container/test_kubernetes.py b/libcloud/test/container/test_kubernetes.py
index 5ec57d9..f9d4c6d 100644
--- a/libcloud/test/container/test_kubernetes.py
+++ b/libcloud/test/container/test_kubernetes.py
@@ -81,14 +81,6 @@ class KubernetesContainerDriverTestCase(unittest.TestCase):
 class KubernetesMockHttp(MockHttp):
     fixtures = ContainerFileFixtures('kubernetes')
 
-    def _version(
-            self, method, url, body, headers):
-        if method == 'GET':
-            body = self.fixtures.load('version.json')
-        else:
-            raise AssertionError('Unsupported method')
-        return (httplib.OK, body, {}, httplib.responses[httplib.OK])
-
     def _api_v1_pods(
             self, method, url, body, headers):
         if method == 'GET':


Mime
View raw message