From 348195fe4a6d3421b7c161f853c23de02926d96c Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 14 Jun 2017 21:22:42 +0200 Subject: [PATCH 1/9] Reinstate gandi provider, by handling import of xmlrpc.client/xmlrpclib depending of Python version. Correct other little errors also. --- lexicon/providers/gandi.py | 277 ++++++++++++++++++++++++++++++++++ tests/providers/test_gandi.py | 24 +++ 2 files changed, 301 insertions(+) create mode 100644 lexicon/providers/gandi.py create mode 100644 tests/providers/test_gandi.py diff --git a/lexicon/providers/gandi.py b/lexicon/providers/gandi.py new file mode 100644 index 000000000..6810cd04f --- /dev/null +++ b/lexicon/providers/gandi.py @@ -0,0 +1,277 @@ +"""Provide support to Lexicon for Gandi DNS changes. + +Lexicon provides a common interface for querying and managing DNS services +through those services' APIs. This module implements the Lexicon interface +against the Gandi API. + +The Gandi API is different from typical DNS APIs in that Gandi +zone changes are atomic. You cannot edit the currently active +configuration. Any changes require editing either a new or inactive +configuration. Once the changes are committed, then the domain is switched +to using the new zone configuration. This module makes no attempt to +cleanup previous zone configurations. + +Note that Gandi domains can share zone configurations. In other words, +I can have domain-a.com and domain-b.com which share the same zone +configuration file. If I make changes to domain-a.com, those changes +will only apply to domain-a.com, as domain-b.com will continue using +the previous version of the zone configuration. This module makes no +attempt to detect and account for that. + + +""" +from __future__ import print_function +from __future__ import absolute_import +from .base import Provider as BaseProvider + +try: + import xmlrpclib +except ImportError: + import xmlrpc.client as xmlrpclib + +def ProviderParser(subparser): + """Specify arguments for Gandi Lexicon Provider.""" + subparser.add_argument('--auth-token', help="specify Gandi API key") + + +class Provider(BaseProvider): + """Provide Gandi DNS API implementation of Lexicon Provider interface. + + The class will use the following environment variables to configure + it instance. For more information, read the Lexicon documentation. + + - LEXICON_GANDI_API_ENDPOINT - the Gandi API endpoint to use + The default is the production URL https://rpc.gandi.net/xmlrpc/. + Set this environment variable to the OT&E URL for testing. + + """ + + def __init__(self, options, provider_options=None): + """Initialize Gandi DNS provider.""" + + super(Provider, self).__init__(options) + + if provider_options is None: + provider_options = {} + + api_endpoint = provider_options.get('api_endpoint') or 'https://rpc.gandi.net/xmlrpc/' + + self.apikey = self.options['auth_token'] + self.api = xmlrpclib.ServerProxy(api_endpoint, allow_none=True) + + # self.domain_id is required by test suite + self.domain_id = None + self.zone_id = None + + self.domain = self.options['domain'].lower() + + # Authenicate against provider, + # Make any requests required to get the domain's id for this provider, + # so it can be used in subsequent calls. Should throw an error if + # authentication fails for any reason, or if the domain does not exist. + def authenticate(self): + """Determine the current domain and zone IDs for the domain.""" + + try: + payload = self.api.domain.info(self.apikey, self.domain) + self.domain_id = payload['id'] + self.zone_id = payload['zone_id'] + + except xmlrpclib.Fault as err: + raise Exception("Failed to authenticate: '{0}'".format(err)) + + # Create record. If record already exists with the same content, do nothing' + def create_record(self, type, name, content): + """Creates a record for the domain in a new Gandi zone.""" + + version = None + ret = False + + name = self._canonicalize_name(name) + + # This isn't quite "do nothing" if the record already exists. + # In this case, no new record will be created, but a new zone version + # will be created and set. + try: + version = self.api.domain.zone.version.new(self.apikey, self.zone_id) + self.api.domain.zone.record.add(self.apikey, self.zone_id, version, + {'type': type.upper(), + 'name': name, + 'value': content, + 'ttl': self.options.get('ttl') or self.default_ttl + }) + self.api.domain.zone.version.set(self.apikey, self.zone_id, version) + ret = True + + finally: + if not ret and version is not None: + self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) + + print("create_record: {0}".format(ret)) + return ret + + # List all records. Return an empty list if no records found + # type, name and content are used to filter records. + # If possible filter during the query, otherwise filter after response is received. + def list_records(self, type=None, name=None, content=None): + """List all record for the domain in the active Gandi zone.""" + + opts = {} + if type is not None: + opts['type'] = type.upper() + if name is not None: + opts['name'] = self._canonicalize_name(name) + if content is not None: + opts['value'] = self._txt_encode(content) if opts.get('type', '') == 'TXT' else content + + records = [] + payload = self.api.domain.zone.record.list(self.apikey, self.zone_id, 0, opts) + for record in payload: + processed_record = { + 'type': record['type'], + 'name': self._fqdn(record['name']), + 'ttl': record['ttl'], + 'content': record['value'], + 'id': record['id'] + } + + # Gandi will add quotes to all TXT record strings + if processed_record['type'] == 'TXT': + processed_record['content'] = self._txt_decode(processed_record['content']) + + records.append(processed_record) + + print("list_records: {0}".format(records)) + return records + + # Update a record. Identifier must be specified. + def update_record(self, identifier, type=None, name=None, content=None): + """Updates the specified record in a new Gandi zone.""" + + if not identifier: + records = self.list_records(type, name) + if len(records) == 1: + identifier = records[0]['id'] + elif len(records) > 1: + raise Exception('Several record identifiers match the request') + else: + raise Exception('Record identifier could not be found') + + identifier = int(identifier) + version = None + + # Gandi doesn't allow you to edit records on the active zone file. + # Gandi also doesn't persist zone record identifiers when creating + # a new zone file. To update by identifier, we lookup the record + # by identifier, then use the record fields to find the record in + # the newly created zone. + records = self.api.domain.zone.record.list(self.apikey, self.zone_id, 0, {'id': identifier}) + + if len(records) == 1: + rec = records[0] + del rec['id'] + + try: + version = self.api.domain.zone.version.new(self.apikey, self.zone_id) + records = self.api.domain.zone.record.list(self.apikey, self.zone_id, version, rec) + if len(records) != 1: + raise GandiInternalError("expected one record") + + if type is not None: + rec['type'] = type.upper() + if name is not None: + rec['name'] = self._canonicalize_name(name) + if content is not None: + rec['value'] = self._txt_encode(content) if rec['type'] == 'TXT' else content + + records = self.api.domain.zone.record.update(self.apikey, + self.zone_id, + version, + {'id': records[0]['id']}, + rec) + if len(records) != 1: + raise GandiInternalError("expected one updated record") + + self.api.domain.zone.version.set(self.apikey, self.zone_id, version) + ret = True + + except GandiInternalError: + pass + + finally: + if not ret and version is not None: + self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) + + print("update_record: {0}".format(ret)) + return ret + + # Delete an existing record. + # If record does not exist, do nothing. + # If an identifier is specified, use it, otherwise do a lookup using type, name and content. + def delete_record(self, identifier=None, type=None, name=None, content=None): + """Removes the specified record in a new Gandi zone.""" + + version = None + ret = False + + opts = {} + if identifier is not None: + opts['id'] = identifier + else: + opts['type'] = type.upper() + opts['name'] = self._canonicalize_name(name) + opts["value"] = self._txt_encode(content) if opts['type'] == 'TXT' else content + + records = self.api.domain.zone.record.list(self.apikey, self.zone_id, 0, opts) + if len(records) == 1: + rec = records[0] + del rec['id'] + + try: + version = self.api.domain.zone.version.new(self.apikey, self.zone_id) + cnt = self.api.domain.zone.record.delete(self.apikey, self.zone_id, version, rec) + if cnt != 1: + raise GandiInternalError("expected one deleted record") + + self.api.domain.zone.version.set(self.apikey, self.zone_id, version) + ret = True + + except GandiInternalError: + pass + + finally: + if not ret and version is not None: + self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) + + print("delete_record: {0}".format(ret)) + return ret + + def _fqdn(self, name): + if not name.endswith('.') and not name.endswith('.{0}'.format(self.domain)): + name += '.{0}'.format(self.domain) + return name + + def _canonicalize_name(self, name): + name = name.lower() + if name.endswith('.{0}.'.format(self.domain)): + name = name[:-1] + if name.endswith('.{0}'.format(self.domain)): + name = name[:-(len(self.domain) + 1)] + return name + + @staticmethod + def _txt_encode(val): + return ''.join(['"', val.replace('\\', '\\\\').replace('"', '\\"'), '"']) + + @staticmethod + def _txt_decode(val): + if len(val) > 1 and val[0:1] == '"': + val = val[1:-1].replace('" "', '').replace('\\"', '"').replace('\\\\', '\\') + return val + + +# This exception is for cleaner handling of internal errors +# within the Gandi provider codebase +class GandiInternalError(Exception): + """Internal exception handling class for Gandi management errors""" + pass diff --git a/tests/providers/test_gandi.py b/tests/providers/test_gandi.py new file mode 100644 index 000000000..6bd00695a --- /dev/null +++ b/tests/providers/test_gandi.py @@ -0,0 +1,24 @@ +# Test for one implementation of the interface +from lexicon.providers.gandi import Provider +from lexicon.common.options_handler import env_auth_options +from integration_tests import IntegrationTests +from unittest import TestCase +import pytest + +# Hook into testing framework by inheriting unittest.TestCase and reuse +# the tests which *each and every* implementation of the interface must +# pass, by inheritance from define_tests.TheTests +class GandiProviderTests(TestCase, IntegrationTests): + + Provider = Provider + provider_name = 'gandi' + domain = 'reachlike.ca' + + def _test_options(self): + cmd_options = env_auth_options(self.provider_name) + cmd_options['domain'] = self.domain + return cmd_options + + @pytest.mark.skip(reason="can not set ttl when creating/updating records") + def test_Provider_when_calling_list_records_after_setting_ttl(self): + return From fc0ce75f83cfec6efc0d8349d115c9fde336c51e Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 14 Jun 2017 21:55:31 +0200 Subject: [PATCH 2/9] Add successful integration tests --- Untitled-1 | 25 + .../test_Provider_authenticate.yaml | 147 +- ...ate_with_unmanaged_domain_should_fail.yaml | 25 +- ...ord_for_A_with_valid_name_and_content.yaml | 248 +-- ...for_CNAME_with_valid_name_and_content.yaml | 248 +-- ...rd_for_TXT_with_fqdn_name_and_content.yaml | 248 +-- ...rd_for_TXT_with_full_name_and_content.yaml | 248 +-- ...d_for_TXT_with_valid_name_and_content.yaml | 248 +-- ...record_by_filter_should_remove_record.yaml | 409 +++-- ...r_with_fqdn_name_should_remove_record.yaml | 409 +++-- ...r_with_full_name_should_remove_record.yaml | 409 +++-- ...rd_by_identifier_should_remove_record.yaml | 446 +++--- ...fqdn_name_filter_should_return_record.yaml | 283 ++-- ...full_name_filter_should_return_record.yaml | 283 ++-- ...with_name_filter_should_return_record.yaml | 283 ++-- ...rds_with_no_arguments_should_list_all.yaml | 646 +++++++- ...ng_update_record_should_modify_record.yaml | 472 +++--- ...d_should_modify_record_name_specified.yaml | 1418 +++++++++++++++++ ...d_with_fqdn_name_should_modify_record.yaml | 486 +++--- ...d_with_full_name_should_modify_record.yaml | 486 +++--- 20 files changed, 5209 insertions(+), 2258 deletions(-) create mode 100644 Untitled-1 create mode 100644 tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml diff --git a/Untitled-1 b/Untitled-1 new file mode 100644 index 000000000..5e0f4ae9d --- /dev/null +++ b/Untitled-1 @@ -0,0 +1,25 @@ +$TTL 3600 +@ IN SOA dns17.ovh.net. tech.ovh.net. (2017061307 86400 3600 3600000 300) + IN NS dns17.ovh.net. + IN NS ns17.ovh.net. + IN MX 1 redirect.ovh.net. + IN A 46.105.127.67 + IN TXT "1|www.elogium.net" + 600 IN TXT "v=spf1 include:mx.ovh.com ~all" +_autodiscover._tcp IN SRV 0 0 443 mailconfig.ovh.net. +_imaps._tcp IN SRV 0 0 993 ssl0.ovh.net. +_submission._tcp IN SRV 0 0 465 ssl0.ovh.net. +autoconfig IN CNAME mailconfig.ovh.net. +autodiscover IN CNAME mailconfig.ovh.net. +backuppc IN CNAME ordonator.elogium.net. +domus IN A 86.245.226.1 +ftp IN CNAME elogium.net. +imap IN CNAME ssl0.ovh.net. +mail IN CNAME ssl0.ovh.net. +ordonator IN A 46.105.127.67 +pop3 IN CNAME ssl0.ovh.net. +smtp IN CNAME ssl0.ovh.net. +www IN MX 1 redirect.ovh.net. +www IN A 46.105.127.67 +www IN TXT "l|fr" +www IN TXT "3|welcome" \ No newline at end of file diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate.yaml index fe4f4e168..f287faca6 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,14 +431,13 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:47 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:11 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml index 425badd10..6a46fee04 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_authenticate_with_unmanaged_domain_should_fail.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,7 +10,7 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] Content-Length: ['255'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -64,14 +64,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:12 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['361'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:47 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml index 7f49acc12..1eda1d071 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:48 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:12 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:12 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:49 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['566'] + Content-Length: ['634'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659868 + 1911386733 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['494'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:50 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:13 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['496'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['286'] + Content-Length: ['287'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,14 +702,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:13 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:50 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml index 7da2f6729..b3edfd1b0 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:51 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:13 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:14 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:52 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['572'] + Content-Length: ['640'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659872 + 1911386781 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['500'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:53 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:14 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['502'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['286'] + Content-Length: ['287'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,14 +702,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:14 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:54 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml index a0bc72bcd..418f3d248 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:54 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:15 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:15 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:55 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['584'] + Content-Length: ['652'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659876 + 1911386829 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['514'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:56 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:15 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['516'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['286'] + Content-Length: ['287'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,14 +702,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:16 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:57 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml index 1374472ae..f8a94ebf2 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:58 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:16 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:17 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:58 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['584'] + Content-Length: ['652'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659884 + 1911386898 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['514'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:40:59 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:17 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['516'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['286'] + Content-Length: ['287'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,14 +702,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:18 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:00 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml index 8f7ca43d9..a5db6f8a4 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:01 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:18 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:18 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:01 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['584'] + Content-Length: ['652'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659892 + 1911386946 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['514'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:02 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:19 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['516'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['286'] + Content-Length: ['287'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,14 +702,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:19 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:03 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml index 42223f154..4879e2919 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_should_remove_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:04 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:20 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:20 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:05 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['579'] + Content-Length: ['647'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659900 + 1911387042 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['509'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:06 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:20 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['511'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['286'] + Content-Length: ['287'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:21 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:06 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -708,16 +774,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['582'] + Content-Length: ['583'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -749,7 +815,7 @@ interactions: id - 3659900 + 1911387042 @@ -765,7 +831,7 @@ interactions: ttl - 10800 + 3600 @@ -779,18 +845,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['554'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:07 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:21 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['556'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -800,13 +865,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -814,16 +879,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -839,18 +904,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:21 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:08 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -860,13 +924,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -882,9 +946,9 @@ interactions: - ttl + name - 10800 + delete.testfilt @@ -898,17 +962,17 @@ interactions: - name + value - delete.testfilt + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -920,16 +984,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] Content-Length: ['652'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -945,18 +1009,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:22 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:09 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -966,13 +1029,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -986,16 +1049,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['286'] + Content-Length: ['287'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1011,18 +1074,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:22 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:09 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1032,13 +1094,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1076,16 +1138,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['495'] + Content-Length: ['496'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1103,14 +1165,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:23 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['138'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:10 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml index 05a992107..8c315736a 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:11 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:23 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:23 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:12 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['579'] + Content-Length: ['647'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659915 + 1911387234 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['509'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:13 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:24 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['511'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['286'] + Content-Length: ['287'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:24 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:13 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -708,16 +774,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['582'] + Content-Length: ['583'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -749,7 +815,7 @@ interactions: id - 3659915 + 1911387234 @@ -765,7 +831,7 @@ interactions: ttl - 10800 + 3600 @@ -779,18 +845,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['554'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:14 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:24 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['556'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -800,13 +865,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -814,16 +879,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -839,18 +904,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:25 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:15 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -860,13 +924,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -882,9 +946,9 @@ interactions: - ttl + name - 10800 + delete.testfqdn @@ -898,17 +962,17 @@ interactions: - name + value - delete.testfqdn + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -920,16 +984,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] Content-Length: ['653'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -945,18 +1009,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:25 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:16 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -966,13 +1029,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -986,16 +1049,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1011,18 +1074,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:26 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:16 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1032,13 +1094,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1076,16 +1138,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['495'] + Content-Length: ['496'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1103,14 +1165,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:26 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['138'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:17 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml index e798d41c6..084fcaed2 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:18 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:27 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:27 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:19 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['580'] + Content-Length: ['648'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659930 + 1911387423 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['509'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:20 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:27 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['511'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:28 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:20 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -708,16 +774,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['582'] + Content-Length: ['583'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -749,7 +815,7 @@ interactions: id - 3659930 + 1911387423 @@ -765,7 +831,7 @@ interactions: ttl - 10800 + 3600 @@ -779,18 +845,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['554'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:21 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:28 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['556'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -800,13 +865,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -814,16 +879,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -839,18 +904,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:28 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:22 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -860,13 +924,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -882,9 +946,9 @@ interactions: - ttl + name - 10800 + delete.testfull @@ -898,17 +962,17 @@ interactions: - name + value - delete.testfull + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -920,16 +984,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] Content-Length: ['653'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -945,18 +1009,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:29 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:23 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -966,13 +1029,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -986,16 +1049,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1011,18 +1074,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:29 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:23 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1032,13 +1094,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1076,16 +1138,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['495'] + Content-Length: ['496'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1103,14 +1165,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:30 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['138'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:24 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml index 329a83689..99ec8a56b 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_delete_record_by_identifier_should_remove_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:25 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:30 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:30 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:26 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['578'] + Content-Length: ['646'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659945 + 1911387612 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['507'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:26 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:31 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['509'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:31 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:27 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -700,16 +766,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['493'] + Content-Length: ['494'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -741,7 +807,7 @@ interactions: id - 3659945 + 1911387612 @@ -757,7 +823,7 @@ interactions: ttl - 10800 + 3600 @@ -771,18 +837,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['552'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:28 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:31 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['554'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -792,13 +857,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -816,7 +881,7 @@ interactions: id - 3659945 + 1911387612 @@ -828,16 +893,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['406'] + Content-Length: ['410'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -869,7 +934,7 @@ interactions: id - 3659945 + 1911387612 @@ -885,7 +950,7 @@ interactions: ttl - 10800 + 3600 @@ -899,18 +964,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['552'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:29 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:31 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['554'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -920,13 +984,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -934,16 +998,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -959,18 +1023,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:32 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:29 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -980,13 +1043,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1002,9 +1065,9 @@ interactions: - ttl + name - 10800 + delete.testid @@ -1018,17 +1081,17 @@ interactions: - name + value - delete.testid + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -1040,16 +1103,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] Content-Length: ['651'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1065,18 +1128,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:32 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['121'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:30 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1086,13 +1148,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1106,16 +1168,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1131,18 +1193,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:33 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:31 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1152,13 +1213,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1196,16 +1257,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['493'] + Content-Length: ['494'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1223,14 +1284,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:33 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['138'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:32 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml index e7a702e8e..e534d2d3f 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:32 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:33 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:33 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:33 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['580'] + Content-Length: ['648'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659960 + 1911387801 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['509'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:34 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:34 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['511'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:34 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:35 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -700,16 +766,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['495'] + Content-Length: ['496'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -741,7 +807,7 @@ interactions: id - 3659960 + 1911387801 @@ -757,7 +823,7 @@ interactions: ttl - 10800 + 3600 @@ -771,14 +837,13 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['554'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:35 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:35 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['556'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml index aa8458d1e..8b0f90b3e 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:36 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:35 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:35 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:37 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['580'] + Content-Length: ['648'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659968 + 1911387897 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['509'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:38 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:36 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['511'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:36 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:39 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -700,16 +766,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['495'] + Content-Length: ['496'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -741,7 +807,7 @@ interactions: id - 3659968 + 1911387897 @@ -757,7 +823,7 @@ interactions: ttl - 10800 + 3600 @@ -771,14 +837,13 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['554'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:39 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:37 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['556'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml index 691b1dd4d..d160143dd 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_name_filter_should_return_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:40 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:37 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:37 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:41 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['576'] + Content-Length: ['644'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3659984 + 1911387993 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['505'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:42 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:38 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['507'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:38 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:42 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -700,16 +766,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['491'] + Content-Length: ['492'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -741,7 +807,7 @@ interactions: id - 3659984 + 1911387993 @@ -757,7 +823,7 @@ interactions: ttl - 10800 + 3600 @@ -771,14 +837,13 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['550'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:43 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:39 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['552'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml index 7fd613743..3496cc09e 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_list_records_with_no_arguments_should_list_all.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:44 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:39 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -418,16 +479,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['337'] + Content-Length: ['338'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -443,6 +504,50 @@ interactions: name + @ + + + + + + type + + A + + + + + + id + + 1911387918 + + + + + + value + + 217.70.184.38 + + + + + + ttl + + 10800 + + + + + + + + + + name + localhost @@ -459,7 +564,7 @@ interactions: id - 3659970 + 1911387933 @@ -475,6 +580,50 @@ interactions: ttl + 3600 + + + + + + + + + + name + + blog + + + + + + type + + CNAME + + + + + + id + + 1911387903 + + + + + + value + + blogs.vip.gandi.net. + + + + + + ttl + 10800 @@ -503,7 +652,7 @@ interactions: id - 3659971 + 1911387936 @@ -519,6 +668,358 @@ interactions: ttl + 3600 + + + + + + + + + + name + + imap + + + + + + type + + CNAME + + + + + + id + + 1911387912 + + + + + + value + + access.mail.gandi.net. + + + + + + ttl + + 10800 + + + + + + + + + + name + + pop + + + + + + type + + CNAME + + + + + + id + + 1911387900 + + + + + + value + + access.mail.gandi.net. + + + + + + ttl + + 10800 + + + + + + + + + + name + + smtp + + + + + + type + + CNAME + + + + + + id + + 1911387909 + + + + + + value + + relay.mail.gandi.net. + + + + + + ttl + + 10800 + + + + + + + + + + name + + webmail + + + + + + type + + CNAME + + + + + + id + + 1911387906 + + + + + + value + + agent.mail.gandi.net. + + + + + + ttl + + 10800 + + + + + + + + + + name + + www + + + + + + type + + CNAME + + + + + + id + + 1911387915 + + + + + + value + + webredir.vip.gandi.net. + + + + + + ttl + + 10800 + + + + + + + + + + name + + @ + + + + + + type + + MX + + + + + + id + + 1911387924 + + + + + + value + + 50 fb.mail.gandi.net. + + + + + + ttl + + 10800 + + + + + + + + + + name + + @ + + + + + + type + + MX + + + + + + id + + 1911387921 + + + + + + value + + 10 spool.mail.gandi.net. + + + + + + ttl + + 10800 + + + + + + + + + + name + + @ + + + + + + type + + TXT + + + + + + id + + 1911387930 + + + + + + value + + "v=spf1 include:_mailcust.gandi.net ?all" + + + + + + ttl + 10800 @@ -547,7 +1048,7 @@ interactions: id - 3659975 + 1911387948 @@ -563,7 +1064,7 @@ interactions: ttl - 10800 + 3600 @@ -591,7 +1092,7 @@ interactions: id - 3659976 + 1911387951 @@ -607,7 +1108,7 @@ interactions: ttl - 10800 + 3600 @@ -635,7 +1136,7 @@ interactions: id - 3659984 + 1911387993 @@ -651,7 +1152,7 @@ interactions: ttl - 10800 + 3600 @@ -679,7 +1180,7 @@ interactions: id - 3659972 + 1911387939 @@ -695,7 +1196,7 @@ interactions: ttl - 10800 + 3600 @@ -723,7 +1224,7 @@ interactions: id - 3659973 + 1911387942 @@ -739,7 +1240,7 @@ interactions: ttl - 10800 + 3600 @@ -767,7 +1268,7 @@ interactions: id - 3659974 + 1911387945 @@ -783,7 +1284,7 @@ interactions: ttl - 10800 + 3600 @@ -797,14 +1298,13 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3453'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:45 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:39 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['7614'] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record.yaml index 1bf845755..04a28622a 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:45 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:40 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:40 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:46 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,13 +510,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['574'] + Content-Length: ['642'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3660000 + 1911388089 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['503'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:47 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:40 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['505'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,13 +657,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:41 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:48 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -700,16 +766,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['489'] + Content-Length: ['490'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -741,7 +807,7 @@ interactions: id - 3660000 + 1911388089 @@ -757,7 +823,7 @@ interactions: ttl - 10800 + 3600 @@ -771,18 +837,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['548'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:48 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:41 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['550'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -792,13 +857,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -816,7 +881,7 @@ interactions: id - 3660000 + 1911388089 @@ -828,16 +893,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['406'] + Content-Length: ['410'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -869,7 +934,7 @@ interactions: id - 3660000 + 1911388089 @@ -885,7 +950,7 @@ interactions: ttl - 10800 + 3600 @@ -899,18 +964,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['548'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:49 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:41 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['550'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -920,13 +984,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -934,16 +998,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -959,18 +1023,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:42 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:50 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -980,13 +1043,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1002,9 +1065,9 @@ interactions: - ttl + name - 10800 + orig.test @@ -1018,17 +1081,17 @@ interactions: - name + value - orig.test + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -1040,16 +1103,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] Content-Length: ['645'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1081,7 +1144,7 @@ interactions: id - 3660010 + 1911388149 @@ -1097,7 +1160,7 @@ interactions: ttl - 10800 + 3600 @@ -1111,18 +1174,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['548'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:51 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:42 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['550'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1132,13 +1194,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1156,7 +1218,7 @@ interactions: id - 3660010 + 1911388149 @@ -1170,9 +1232,9 @@ interactions: - ttl + name - 10800 + updated.test @@ -1186,17 +1248,17 @@ interactions: - name + value - updated.test + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -1208,16 +1270,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['770'] + Content-Length: ['773'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1249,7 +1311,7 @@ interactions: id - 3660010 + 1911388149 @@ -1265,7 +1327,7 @@ interactions: ttl - 10800 + 3600 @@ -1279,18 +1341,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['551'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:52 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:42 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['553'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1300,13 +1361,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -1320,16 +1381,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1345,14 +1406,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:43 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:52 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml new file mode 100644 index 000000000..25548fd93 --- /dev/null +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_should_modify_record_name_specified.yaml @@ -0,0 +1,1418 @@ +interactions: +- request: + body: ' + + + + domain.info + + + + + + GANDI-TOKEN + + + + + + reachlike.ca + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['241'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + + + + + entity_id + + + + + + date_updated + + 20170614T21:19:49 + + + + + + date_delete + + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 + + + + + + is_premium + + 0 + + + + + + date_hold_begin + + 20180706T11:41:46 + + + + + + date_registry_end + + 20180706T11:41:46 + + + + + + authinfo_expiration_date + + 20180605T10:49:25 + + + + + + contacts + + + + + + owner + + + + + + handle + + GANDI-USER + + + + + + id + + 1508037 + + + + + + + + + + admin + + + + + + handle + + GANDI-USER + + + + + + id + + 1508037 + + + + + + + + + + bill + + + + + + handle + + GANDI-USER + + + + + + id + + 1508037 + + + + + + + + + + tech + + + + + + handle + + GANDI-USER + + + + + + id + + 1508037 + + + + + + + + + + reseller + + + + + + + + + + nameservers + + + + a.dns.gandi.net + + b.dns.gandi.net + + c.dns.gandi.net + + + + + + + + date_restore_end + + 20180919T11:41:46 + + + + + + id + + 3084498 + + + + + + authinfo + + oee3Jaicaf + + + + + + status + + + + serverTransferProhibited + + clientTransferProhibited + + + + + + + + tags + + + + + + + + + + date_hold_end + + 20180820T11:41:46 + + + + + + services + + + + gandidns + + + + + + + + date_pending_delete_end + + 20180919T11:41:46 + + + + + + zone_id + + 2752905 + + + + + + date_renew_begin + + 20120101T00:00:00 + + + + + + fqdn + + reachlike.ca + + + + + + autorenew + + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + + + + + date_registry_creation + + 20120706T11:41:46 + + + + + + tld + + ca + + + + + + date_created + + 20120706T13:41:47 + + + + + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:43 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.version.new + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['242'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + 20 + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:44 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['122'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.record.add + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + 20 + + + + + + + + + + type + + TXT + + + + + + name + + orig.nameonly.test + + + + + + value + + challengetoken + + + + + + ttl + + 3600 + + + + + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['651'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + + + + + name + + orig.nameonly.test + + + + + + type + + TXT + + + + + + id + + 1911388278 + + + + + + value + + "challengetoken" + + + + + + ttl + + 3600 + + + + + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:44 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['514'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.version.set + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + 20 + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['288'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + 1 + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:45 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['129'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.record.list + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + 0 + + + + + + + + + + type + + TXT + + + + + + name + + orig.nameonly.test + + + + + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['499'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + + + + + + + name + + orig.nameonly.test + + + + + + type + + TXT + + + + + + id + + 1911388278 + + + + + + value + + "challengetoken" + + + + + + ttl + + 3600 + + + + + + + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:45 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['559'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.record.list + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + 0 + + + + + + + + + + id + + 1911388278 + + + + + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['410'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + + + + + + + name + + orig.nameonly.test + + + + + + type + + TXT + + + + + + id + + 1911388278 + + + + + + value + + "challengetoken" + + + + + + ttl + + 3600 + + + + + + + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:45 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['559'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.version.new + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['242'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + 21 + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:46 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['122'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.record.list + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + 21 + + + + + + + + + + name + + orig.nameonly.test + + + + + + type + + TXT + + + + + + value + + "challengetoken" + + + + + + ttl + + 3600 + + + + + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['654'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + + + + + + + name + + orig.nameonly.test + + + + + + type + + TXT + + + + + + id + + 1911388341 + + + + + + value + + "challengetoken" + + + + + + ttl + + 3600 + + + + + + + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:46 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['559'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.record.update + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + 21 + + + + + + + + + + id + + 1911388341 + + + + + + + + + + + + + + name + + orig.nameonly.test + + + + + + type + + TXT + + + + + + value + + "updated" + + + + + + ttl + + 3600 + + + + + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['772'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + + + + + + + name + + orig.nameonly.test + + + + + + type + + TXT + + + + + + id + + 1911388341 + + + + + + value + + "updated" + + + + + + ttl + + 3600 + + + + + + + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:46 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['552'] + status: {code: 200, message: OK} +- request: + body: ' + + + + domain.zone.version.set + + + + + + GANDI-TOKEN + + + + + + 2752905 + + + + + + 21 + + + + + + + + ' + headers: + Accept-Encoding: [gzip] + Content-Length: ['288'] + Content-Type: [text/xml] + User-Agent: [Python-xmlrpc/3.6] + method: POST + uri: https://rpc.gandi.net/xmlrpc/ + response: + body: {string: ' + + + + + + + + 1 + + + + + + + + '} + headers: + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:47 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['129'] + status: {code: 200, message: OK} +version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml index ce6887e8a..6403f4dfe 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:53 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:47 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -421,7 +482,7 @@ interactions: - 20 + 22 @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:48 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:54 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,19 +510,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 20 + 22 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['578'] + Content-Length: ['646'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3660031 + 1911388467 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['507'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:55 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:48 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['509'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,19 +657,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 20 + 22 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:49 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:55 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -700,16 +766,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['493'] + Content-Length: ['494'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -741,7 +807,7 @@ interactions: id - 3660031 + 1911388467 @@ -757,7 +823,7 @@ interactions: ttl - 10800 + 3600 @@ -771,18 +837,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['552'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:56 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:49 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['554'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -792,13 +857,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -816,7 +881,7 @@ interactions: id - 3660031 + 1911388467 @@ -828,16 +893,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['406'] + Content-Length: ['410'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -869,7 +934,7 @@ interactions: id - 3660031 + 1911388467 @@ -885,7 +950,7 @@ interactions: ttl - 10800 + 3600 @@ -899,18 +964,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['552'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:57 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:50 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['554'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -920,13 +984,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -934,16 +998,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -951,7 +1015,7 @@ interactions: - 21 + 23 @@ -959,18 +1023,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:50 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:58 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -980,19 +1043,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 21 + 23 @@ -1002,9 +1065,9 @@ interactions: - ttl + name - 10800 + orig.testfqdn @@ -1018,17 +1081,17 @@ interactions: - name + value - orig.testfqdn + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -1040,16 +1103,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] Content-Length: ['649'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1081,7 +1144,7 @@ interactions: id - 3660042 + 1911388533 @@ -1097,7 +1160,7 @@ interactions: ttl - 10800 + 3600 @@ -1111,18 +1174,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['552'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:58 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:50 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['554'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1132,19 +1194,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 21 + 23 @@ -1156,7 +1218,7 @@ interactions: id - 3660042 + 1911388533 @@ -1170,9 +1232,9 @@ interactions: - ttl + name - 10800 + updated.testfqdn @@ -1186,17 +1248,17 @@ interactions: - name + value - updated.testfqdn + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -1208,16 +1270,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['774'] + Content-Length: ['777'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1249,7 +1311,7 @@ interactions: id - 3660042 + 1911388533 @@ -1265,7 +1327,7 @@ interactions: ttl - 10800 + 3600 @@ -1279,18 +1341,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['555'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:41:59 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:51 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['557'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1300,19 +1361,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 21 + 23 @@ -1320,16 +1381,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1345,14 +1406,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:51 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:00 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 diff --git a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml index e7ff69be2..55bd714c3 100644 --- a/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml +++ b/tests/fixtures/cassettes/gandi/IntegrationTests/test_Provider_when_calling_update_record_with_full_name_should_modify_record.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: !!python/unicode ' + body: ' @@ -10,13 +10,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - xtestingx.com + reachlike.ca @@ -24,16 +24,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['242'] + Content-Length: ['241'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -53,7 +53,7 @@ interactions: date_updated - 20160713T03:38:42 + 20170614T21:19:49 @@ -61,7 +61,15 @@ interactions: date_delete - 20260826T15:37:15 + 20180820T01:41:46 + + + + + + can_tld_lock + + 1 @@ -77,7 +85,7 @@ interactions: date_hold_begin - 20260713T01:37:15 + 20180706T11:41:46 @@ -85,7 +93,7 @@ interactions: date_registry_end - 20260713T01:37:15 + 20180706T11:41:46 @@ -93,7 +101,7 @@ interactions: authinfo_expiration_date - 20170713T03:37:15 + 20180605T10:49:25 @@ -113,7 +121,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -121,7 +129,7 @@ interactions: id - 95450 + 1508037 @@ -139,7 +147,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -147,7 +155,7 @@ interactions: id - 95450 + 1508037 @@ -165,7 +173,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -173,7 +181,7 @@ interactions: id - 95450 + 1508037 @@ -191,7 +199,7 @@ interactions: handle - PM50-GANDI + GANDI-USER @@ -199,7 +207,7 @@ interactions: id - 95450 + 1508037 @@ -223,11 +231,11 @@ interactions: - a.dns.gandi-ote.net + a.dns.gandi.net - b.dns.gandi-ote.net + b.dns.gandi.net - c.dns.gandi-ote.net + c.dns.gandi.net @@ -237,7 +245,7 @@ interactions: date_restore_end - 20260926T01:37:15 + 20180919T11:41:46 @@ -245,7 +253,7 @@ interactions: id - 26481 + 3084498 @@ -253,7 +261,7 @@ interactions: authinfo - tfwu1lj?dH + oee3Jaicaf @@ -263,6 +271,8 @@ interactions: + serverTransferProhibited + clientTransferProhibited @@ -283,7 +293,7 @@ interactions: date_hold_end - 20260827T01:37:15 + 20180820T11:41:46 @@ -303,7 +313,7 @@ interactions: date_pending_delete_end - 20261001T01:37:15 + 20180919T11:41:46 @@ -311,7 +321,7 @@ interactions: zone_id - 684261 + 2752905 @@ -327,7 +337,7 @@ interactions: fqdn - xtestingx.com + reachlike.ca @@ -335,13 +345,65 @@ interactions: autorenew - + + + + + product_id + + 3084498 + + + + + + duration + + 1 + + + + + + contact + + GANDI-USER + + + + + + active + + 1 + + + + + + id + + 288232 + + + + + + product_type_id + + 1 + + + + + + date_registry_creation - 20160713T01:37:15 + 20120706T11:41:46 @@ -349,7 +411,7 @@ interactions: tld - com + ca @@ -357,7 +419,7 @@ interactions: date_created - 20160713T03:37:15 + 20120706T13:41:47 @@ -369,18 +431,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['3639'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:01 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:51 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['4245'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -390,13 +451,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -404,16 +465,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -421,7 +482,7 @@ interactions: - 22 + 24 @@ -429,18 +490,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:52 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:02 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -450,19 +510,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 22 + 24 @@ -494,6 +554,14 @@ interactions: + + + ttl + + 3600 + + + @@ -502,16 +570,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['578'] + Content-Length: ['646'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -541,7 +609,7 @@ interactions: id - 3660062 + 1911388656 @@ -557,7 +625,7 @@ interactions: ttl - 10800 + 3600 @@ -569,18 +637,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['507'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:02 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:52 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['509'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -590,19 +657,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 22 + 24 @@ -610,16 +677,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -635,18 +702,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:52 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:03 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -656,13 +722,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -700,16 +766,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['493'] + Content-Length: ['494'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -741,7 +807,7 @@ interactions: id - 3660062 + 1911388656 @@ -757,7 +823,7 @@ interactions: ttl - 10800 + 3600 @@ -771,18 +837,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['552'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:04 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:53 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['554'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -792,13 +857,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -816,7 +881,7 @@ interactions: id - 3660062 + 1911388656 @@ -828,16 +893,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['406'] + Content-Length: ['410'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -869,7 +934,7 @@ interactions: id - 3660062 + 1911388656 @@ -885,7 +950,7 @@ interactions: ttl - 10800 + 3600 @@ -899,18 +964,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['552'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:05 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:53 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['554'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -920,13 +984,13 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 @@ -934,16 +998,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['241'] + Content-Length: ['242'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -951,7 +1015,7 @@ interactions: - 23 + 25 @@ -959,18 +1023,17 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:53 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['122'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:05 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -980,19 +1043,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 23 + 25 @@ -1002,9 +1065,9 @@ interactions: - ttl + name - 10800 + orig.testfull @@ -1018,17 +1081,17 @@ interactions: - name + value - orig.testfull + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -1040,16 +1103,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] Content-Length: ['649'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1081,7 +1144,7 @@ interactions: id - 3660074 + 1911388725 @@ -1097,7 +1160,7 @@ interactions: ttl - 10800 + 3600 @@ -1111,18 +1174,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['552'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:06 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:54 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['554'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1132,19 +1194,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 23 + 25 @@ -1156,7 +1218,7 @@ interactions: id - 3660074 + 1911388725 @@ -1170,9 +1232,9 @@ interactions: - ttl + name - 10800 + updated.testfull @@ -1186,17 +1248,17 @@ interactions: - name + value - updated.testfull + "challengetoken" - value + ttl - "challengetoken" + 3600 @@ -1208,16 +1270,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['774'] + Content-Length: ['777'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1249,7 +1311,7 @@ interactions: id - 3660074 + 1911388725 @@ -1265,7 +1327,7 @@ interactions: ttl - 10800 + 3600 @@ -1279,18 +1341,17 @@ interactions: -'} + '} headers: - connection: [close] - content-length: ['555'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:07 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:54 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] + content-length: ['557'] status: {code: 200, message: OK} - request: - body: !!python/unicode ' + body: ' @@ -1300,19 +1361,19 @@ interactions: - tBm11EzvfADiaiKGHZafv8R4 + GANDI-TOKEN - 684261 + 2752905 - 23 + 25 @@ -1320,16 +1381,16 @@ interactions: -' + ' headers: Accept-Encoding: [gzip] - Content-Length: ['287'] + Content-Length: ['288'] Content-Type: [text/xml] - User-Agent: [xmlrpclib.py/1.0.1 (by www.pythonware.com)] + User-Agent: [Python-xmlrpc/3.6] method: POST - uri: https://rpc.ote.gandi.net/xmlrpc/ + uri: https://rpc.gandi.net/xmlrpc/ response: - body: {string: !!python/unicode ' + body: {string: ' @@ -1345,14 +1406,13 @@ interactions: -'} + '} headers: - connection: [close] + Connection: [close] + Content-Type: [text/xml; charset=utf-8] + Date: ['Wed, 14 Jun 2017 19:20:54 GMT'] + Server: [Apache] + Vary: [Accept-Encoding] content-length: ['129'] - content-type: [text/xml; charset=utf-8] - date: ['Wed, 13 Jul 2016 01:42:08 GMT'] - server: [Apache/2.2.16 (Debian) mod_fastcgi/2.4.6 mod_ssl/2.2.16 OpenSSL/0.9.8o - mod_wsgi/3.3 Python/2.6.6] - vary: [Accept-Encoding] status: {code: 200, message: OK} version: 1 From fd67cbd4144f19e9fce30730bdd22534870bdfa2 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 14 Jun 2017 22:08:23 +0200 Subject: [PATCH 3/9] Clean --- Untitled-1 | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 Untitled-1 diff --git a/Untitled-1 b/Untitled-1 deleted file mode 100644 index 5e0f4ae9d..000000000 --- a/Untitled-1 +++ /dev/null @@ -1,25 +0,0 @@ -$TTL 3600 -@ IN SOA dns17.ovh.net. tech.ovh.net. (2017061307 86400 3600 3600000 300) - IN NS dns17.ovh.net. - IN NS ns17.ovh.net. - IN MX 1 redirect.ovh.net. - IN A 46.105.127.67 - IN TXT "1|www.elogium.net" - 600 IN TXT "v=spf1 include:mx.ovh.com ~all" -_autodiscover._tcp IN SRV 0 0 443 mailconfig.ovh.net. -_imaps._tcp IN SRV 0 0 993 ssl0.ovh.net. -_submission._tcp IN SRV 0 0 465 ssl0.ovh.net. -autoconfig IN CNAME mailconfig.ovh.net. -autodiscover IN CNAME mailconfig.ovh.net. -backuppc IN CNAME ordonator.elogium.net. -domus IN A 86.245.226.1 -ftp IN CNAME elogium.net. -imap IN CNAME ssl0.ovh.net. -mail IN CNAME ssl0.ovh.net. -ordonator IN A 46.105.127.67 -pop3 IN CNAME ssl0.ovh.net. -smtp IN CNAME ssl0.ovh.net. -www IN MX 1 redirect.ovh.net. -www IN A 46.105.127.67 -www IN TXT "l|fr" -www IN TXT "3|welcome" \ No newline at end of file From b555c75b87b27a6090b72e751d89b08ebc98bcef Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 14 Jun 2017 22:24:49 +0200 Subject: [PATCH 4/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41514fd86..bb2e4ae03 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ The current supported providers are: - DNSPark ([docs](https://dnspark.zendesk.com/entries/31210577-REST-API-DNS-Documentation)) - DNSPod ([docs](https://support.dnspod.cn/Support/api)) - EasyDNS ([docs](http://docs.sandbox.rest.easydns.net/)) +- Gandi ([docs](http://doc.rpc.gandi.net/)) - Glesys ([docs](https://github.com/glesys/API/wiki/functions_domain)) - LuaDNS ([docs](http://www.luadns.com/api.html)) - Memset ([docs](https://www.memset.com/apidocs/methods_dns.html)) @@ -52,7 +53,6 @@ Potential providers are as follows. If you would like to contribute one, please - ~~DurableDNS ([docs](https://durabledns.com/wiki/doku.php/ddns))~~ Can't set TXT records - ~~Dyn ([docs](https://help.dyn.com/dns-api-knowledge-base/))~~ Unable to test, requires paid account - ~~EntryDNS ([docs](https://entrydns.net/help))~~ Unable to test, requires paid account -- Gandi ([docs](http://doc.rpc.gandi.net/)) was removed in [319ac2a46](https://github.com/AnalogJ/lexicon/commit/319ac2a4633586e60fcd32592bbd22032d8facc3) and [bf8ca76df61](https://github.com/AnalogJ/lexicon/commit/bf8ca76df616ce189dcd4c514063b4f3c8ab1439) - Google Cloud DNS ([docs](https://cloud.google.com/dns/api/v1/)) - GoDaddy DNS ([docs](https://developer.godaddy.com/getstarted#access)) - ~~Host Virtual DNS ([docs](https://github.com/hostvirtual/hostvirtual-python-sdk/blob/master/hostvirtual.py))~~ Unable to test, requires paid account From 787c18d2fb595144a832f2dff957d2ac3aaa9be2 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Thu, 15 Jun 2017 07:20:17 +0200 Subject: [PATCH 5/9] Remove duplicates _fqdn and _canonicalize_name, add a default_ttl of 3600 --- lexicon/providers/gandi.py | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/lexicon/providers/gandi.py b/lexicon/providers/gandi.py index 6810cd04f..1e738f204 100644 --- a/lexicon/providers/gandi.py +++ b/lexicon/providers/gandi.py @@ -59,6 +59,8 @@ def __init__(self, options, provider_options=None): self.apikey = self.options['auth_token'] self.api = xmlrpclib.ServerProxy(api_endpoint, allow_none=True) + self.default_ttl = 3600 + # self.domain_id is required by test suite self.domain_id = None self.zone_id = None @@ -87,7 +89,7 @@ def create_record(self, type, name, content): version = None ret = False - name = self._canonicalize_name(name) + name = self._relative_name(name) # This isn't quite "do nothing" if the record already exists. # In this case, no new record will be created, but a new zone version @@ -120,7 +122,7 @@ def list_records(self, type=None, name=None, content=None): if type is not None: opts['type'] = type.upper() if name is not None: - opts['name'] = self._canonicalize_name(name) + opts['name'] = self._relative_name(name) if content is not None: opts['value'] = self._txt_encode(content) if opts.get('type', '') == 'TXT' else content @@ -129,7 +131,7 @@ def list_records(self, type=None, name=None, content=None): for record in payload: processed_record = { 'type': record['type'], - 'name': self._fqdn(record['name']), + 'name': self._fqdn_name(record['name']), 'ttl': record['ttl'], 'content': record['value'], 'id': record['id'] @@ -180,7 +182,7 @@ def update_record(self, identifier, type=None, name=None, content=None): if type is not None: rec['type'] = type.upper() if name is not None: - rec['name'] = self._canonicalize_name(name) + rec['name'] = self._relative_name(name) if content is not None: rec['value'] = self._txt_encode(content) if rec['type'] == 'TXT' else content @@ -219,7 +221,7 @@ def delete_record(self, identifier=None, type=None, name=None, content=None): opts['id'] = identifier else: opts['type'] = type.upper() - opts['name'] = self._canonicalize_name(name) + opts['name'] = self._relative_name(name) opts["value"] = self._txt_encode(content) if opts['type'] == 'TXT' else content records = self.api.domain.zone.record.list(self.apikey, self.zone_id, 0, opts) @@ -246,19 +248,6 @@ def delete_record(self, identifier=None, type=None, name=None, content=None): print("delete_record: {0}".format(ret)) return ret - def _fqdn(self, name): - if not name.endswith('.') and not name.endswith('.{0}'.format(self.domain)): - name += '.{0}'.format(self.domain) - return name - - def _canonicalize_name(self, name): - name = name.lower() - if name.endswith('.{0}.'.format(self.domain)): - name = name[:-1] - if name.endswith('.{0}'.format(self.domain)): - name = name[:-(len(self.domain) + 1)] - return name - @staticmethod def _txt_encode(val): return ''.join(['"', val.replace('\\', '\\\\').replace('"', '\\"'), '"']) From 0ac4873d3a4c9852ddaa05be4942318d5519c4cf Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Thu, 15 Jun 2017 07:26:47 +0200 Subject: [PATCH 6/9] Replate print by logger --- lexicon/providers/gandi.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lexicon/providers/gandi.py b/lexicon/providers/gandi.py index 1e738f204..eafde37ae 100644 --- a/lexicon/providers/gandi.py +++ b/lexicon/providers/gandi.py @@ -22,6 +22,7 @@ """ from __future__ import print_function from __future__ import absolute_import +import logging from .base import Provider as BaseProvider try: @@ -29,6 +30,8 @@ except ImportError: import xmlrpc.client as xmlrpclib +LOGGER = logging.getLogger(__name__) + def ProviderParser(subparser): """Specify arguments for Gandi Lexicon Provider.""" subparser.add_argument('--auth-token', help="specify Gandi API key") @@ -109,7 +112,7 @@ def create_record(self, type, name, content): if not ret and version is not None: self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) - print("create_record: {0}".format(ret)) + LOGGER.debug("create_record: %s", ret) return ret # List all records. Return an empty list if no records found @@ -143,7 +146,7 @@ def list_records(self, type=None, name=None, content=None): records.append(processed_record) - print("list_records: {0}".format(records)) + LOGGER.debug("list_records: %s", records) return records # Update a record. Identifier must be specified. @@ -204,7 +207,7 @@ def update_record(self, identifier, type=None, name=None, content=None): if not ret and version is not None: self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) - print("update_record: {0}".format(ret)) + LOGGER.debug("update_record: %s", ret) return ret # Delete an existing record. @@ -245,7 +248,7 @@ def delete_record(self, identifier=None, type=None, name=None, content=None): if not ret and version is not None: self.api.domain.zone.version.delete(self.apikey, self.zone_id, version) - print("delete_record: {0}".format(ret)) + LOGGER.debug("delete_record: %s", ret) return ret @staticmethod From 3e6e62f9b1e73b34ca6d1755caec6abaef898601 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Thu, 15 Jun 2017 07:28:50 +0200 Subject: [PATCH 7/9] Implement empty _request --- lexicon/providers/gandi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lexicon/providers/gandi.py b/lexicon/providers/gandi.py index eafde37ae..1017b24af 100644 --- a/lexicon/providers/gandi.py +++ b/lexicon/providers/gandi.py @@ -251,6 +251,10 @@ def delete_record(self, identifier=None, type=None, name=None, content=None): LOGGER.debug("delete_record: %s", ret) return ret + def _request(self, action='GET', url='/', data=None, query_params=None): + # Not used here, as requests are handled by xmlrpc + pass + @staticmethod def _txt_encode(val): return ''.join(['"', val.replace('\\', '\\\\').replace('"', '\\"'), '"']) From 59062c60cb4113e26c04dc604ae5626ecc189074 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Thu, 15 Jun 2017 07:34:07 +0200 Subject: [PATCH 8/9] Restandardize gandi tests --- tests/providers/test_gandi.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/providers/test_gandi.py b/tests/providers/test_gandi.py index 6bd00695a..09dea6aeb 100644 --- a/tests/providers/test_gandi.py +++ b/tests/providers/test_gandi.py @@ -14,11 +14,6 @@ class GandiProviderTests(TestCase, IntegrationTests): provider_name = 'gandi' domain = 'reachlike.ca' - def _test_options(self): - cmd_options = env_auth_options(self.provider_name) - cmd_options['domain'] = self.domain - return cmd_options - @pytest.mark.skip(reason="can not set ttl when creating/updating records") def test_Provider_when_calling_list_records_after_setting_ttl(self): return From 8732f2d3cc04f61fce49354dc4b7b85e4067c450 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Thu, 15 Jun 2017 07:34:34 +0200 Subject: [PATCH 9/9] Replace fqdn_name by full_name. We don't want the trailing dot. --- lexicon/providers/gandi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexicon/providers/gandi.py b/lexicon/providers/gandi.py index 1017b24af..f073f0df8 100644 --- a/lexicon/providers/gandi.py +++ b/lexicon/providers/gandi.py @@ -134,7 +134,7 @@ def list_records(self, type=None, name=None, content=None): for record in payload: processed_record = { 'type': record['type'], - 'name': self._fqdn_name(record['name']), + 'name': self._full_name(record['name']), 'ttl': record['ttl'], 'content': record['value'], 'id': record['id']