Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8C3B1200C6C for ; Fri, 5 May 2017 13:46:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 876E4160BD6; Fri, 5 May 2017 11:46:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D5EA4160B97 for ; Fri, 5 May 2017 13:46:21 +0200 (CEST) Received: (qmail 34752 invoked by uid 500); 5 May 2017 11:46:21 -0000 Mailing-List: contact notifications-help@libcloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@libcloud.apache.org Delivered-To: mailing list notifications@libcloud.apache.org Received: (qmail 34737 invoked by uid 500); 5 May 2017 11:46:21 -0000 Delivered-To: apmail-libcloud-commits@libcloud.apache.org Received: (qmail 34734 invoked by uid 99); 5 May 2017 11:46:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2017 11:46:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D255CE02B4; Fri, 5 May 2017 11:46:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: anthonyshaw@apache.org To: commits@libcloud.apache.org Date: Fri, 05 May 2017 11:46:20 -0000 Message-Id: <11f752a795ed4b8c821226d9d77185da@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [01/20] libcloud git commit: remove unreachable API version methods for kubernetes archived-at: Fri, 05 May 2017 11:46:22 -0000 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 Authored: Fri May 5 15:09:12 2017 +1000 Committer: Anthony Shaw 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':