You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by er...@apache.org on 2015/09/21 22:49:32 UTC
libcloud git commit: [google dns] update API from v1beta1 to v1
Repository: libcloud
Updated Branches:
refs/heads/trunk 1aaaef957 -> 44691a789
[google dns] update API from v1beta1 to v1
The API itself is unchanged from v1beta1 to v1, but v1beta1 will be removed
after 25 Sep 2015 per https://cloud.google.com/dns/api/v1beta1/ so we need to
update the version to avoid breakage.
Closes #583
Signed-off-by: Eric Johnson <er...@google.com>
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/44691a78
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/44691a78
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/44691a78
Branch: refs/heads/trunk
Commit: 44691a789d259b2645250e57f5bbe9e7905affbb
Parents: 1aaaef9
Author: Misha Brukman <mb...@google.com>
Authored: Fri Sep 18 14:21:29 2015 -0400
Committer: Eric Johnson <er...@google.com>
Committed: Mon Sep 21 20:48:38 2015 +0000
----------------------------------------------------------------------
CHANGES.rst | 4 ++++
libcloud/dns/drivers/google.py | 4 ++--
libcloud/test/dns/test_google.py | 24 ++++++++++++------------
3 files changed, 18 insertions(+), 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/libcloud/blob/44691a78/CHANGES.rst
----------------------------------------------------------------------
diff --git a/CHANGES.rst b/CHANGES.rst
index 5e5a563..4355485 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -65,6 +65,10 @@ Loadbalancer
DNS
~~~
+- Update Google Cloud DNS API from 'v1beta1' to 'v1'
+ (GITHUB-583)
+ [Misha Brukman]
+
- Add new driver for AuroraDNS service.
(GITHUB-562, LIBCLOUD-735)
[Wido den Hollander]
http://git-wip-us.apache.org/repos/asf/libcloud/blob/44691a78/libcloud/dns/drivers/google.py
----------------------------------------------------------------------
diff --git a/libcloud/dns/drivers/google.py b/libcloud/dns/drivers/google.py
index 63be61f..6c79b04 100644
--- a/libcloud/dns/drivers/google.py
+++ b/libcloud/dns/drivers/google.py
@@ -17,8 +17,8 @@ __all__ = [
'GoogleDNSDriver'
]
-# API docs: https://cloud.google.com/dns/api/v1beta1
-API_VERSION = 'v1beta1'
+# API docs: https://cloud.google.com/dns/api/v1
+API_VERSION = 'v1'
import re
from libcloud.common.google import GoogleResponse, GoogleBaseConnection
http://git-wip-us.apache.org/repos/asf/libcloud/blob/44691a78/libcloud/test/dns/test_google.py
----------------------------------------------------------------------
diff --git a/libcloud/test/dns/test_google.py b/libcloud/test/dns/test_google.py
index 1584a59..ddb3b91 100644
--- a/libcloud/test/dns/test_google.py
+++ b/libcloud/test/dns/test_google.py
@@ -130,30 +130,30 @@ class GoogleTests(LibcloudTestCase):
class GoogleDNSMockHttp(MockHttpTestCase):
fixtures = DNSFileFixtures('google')
- def _dns_v1beta1_projects_project_name_managedZones(self, method, url,
- body, headers):
+ def _dns_v1_projects_project_name_managedZones(
+ self, method, url, body, headers):
if method == 'POST':
body = self.fixtures.load('zone_create.json')
else:
body = self.fixtures.load('zone_list.json')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
- def _dns_v1beta1_projects_project_name_managedZones_FILTER_ZONES(
+ def _dns_v1_projects_project_name_managedZones_FILTER_ZONES(
self, method, url, body, headers):
body = self.fixtures.load('zone_list.json')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
- def _dns_v1beta1_projects_project_name_managedZones_example_com_rrsets_FILTER_ZONES(
+ def _dns_v1_projects_project_name_managedZones_example_com_rrsets_FILTER_ZONES(
self, method, url, body, headers):
body = self.fixtures.load('record.json')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
- def _dns_v1beta1_projects_project_name_managedZones_example_com_rrsets(
+ def _dns_v1_projects_project_name_managedZones_example_com_rrsets(
self, method, url, body, headers):
body = self.fixtures.load('records_list.json')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
- def _dns_v1beta1_projects_project_name_managedZones_example_com(
+ def _dns_v1_projects_project_name_managedZones_example_com(
self, method, url, body, headers):
if method == 'GET':
body = self.fixtures.load('managed_zones_1.json')
@@ -161,34 +161,34 @@ class GoogleDNSMockHttp(MockHttpTestCase):
body = None
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
- def _dns_v1beta1_projects_project_name_managedZones_example_com_changes(
+ def _dns_v1_projects_project_name_managedZones_example_com_changes(
self, method, url, body, headers):
body = self.fixtures.load('record_changes.json')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
- def _dns_v1beta1_projects_project_name_managedZones_example_com_ZONE_DOES_NOT_EXIST(
+ def _dns_v1_projects_project_name_managedZones_example_com_ZONE_DOES_NOT_EXIST(
self, method, url, body, headers):
body = self.fixtures.load('get_zone_does_not_exists.json')
return (httplib.NOT_FOUND, body, {},
httplib.responses[httplib.NOT_FOUND])
- def _dns_v1beta1_projects_project_name_managedZones_example_com_RECORD_DOES_NOT_EXIST(
+ def _dns_v1_projects_project_name_managedZones_example_com_RECORD_DOES_NOT_EXIST(
self, method, url, body, headers):
body = self.fixtures.load('managed_zones_1.json')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
- def _dns_v1beta1_projects_project_name_managedZones_example_com_rrsets_RECORD_DOES_NOT_EXIST(
+ def _dns_v1_projects_project_name_managedZones_example_com_rrsets_RECORD_DOES_NOT_EXIST(
self, method, url, body, headers):
body = self.fixtures.load('no_record.json')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])
- def _dns_v1beta1_projects_project_name_managedZones_example_com_rrsets_ZONE_DOES_NOT_EXIST(
+ def _dns_v1_projects_project_name_managedZones_example_com_rrsets_ZONE_DOES_NOT_EXIST(
self, method, url, body, headers):
body = self.fixtures.load('get_zone_does_not_exists.json')
return (httplib.NOT_FOUND, body, {},
httplib.responses[httplib.NOT_FOUND])
- def _dns_v1beta1_projects_project_name_managedZones_example_com_FILTER_ZONES(
+ def _dns_v1_projects_project_name_managedZones_example_com_FILTER_ZONES(
self, method, url, body, headers):
body = self.fixtures.load('zone.json')
return (httplib.OK, body, {}, httplib.responses[httplib.OK])