From 99d1b7298cb82448fdfeef79a0cf25f3cf113b1c Mon Sep 17 00:00:00 2001 From: Guido Petri <18634426+guidopetri@users.noreply.github.com> Date: Sat, 11 Jun 2022 20:30:52 -0500 Subject: [PATCH] Add support for Porkbun. Closes #667 --- CODEOWNERS | 1 + lexicon/providers/porkbun.py | 171 ++++++ lexicon/tests/providers/test_porkbun.py | 27 + .../test_provider_authenticate.yaml | 120 ++++ ...ate_with_unmanaged_domain_should_fail.yaml | 110 ++++ ...ord_for_A_with_valid_name_and_content.yaml | 238 ++++++++ ...for_CNAME_with_valid_name_and_content.yaml | 239 ++++++++ ...rd_for_TXT_with_fqdn_name_and_content.yaml | 239 ++++++++ ...rd_for_TXT_with_full_name_and_content.yaml | 239 ++++++++ ...d_for_TXT_with_valid_name_and_content.yaml | 239 ++++++++ ...ltiple_times_should_create_record_set.yaml | 358 ++++++++++++ ...with_duplicate_records_should_be_noop.yaml | 357 ++++++++++++ ...record_by_filter_should_remove_record.yaml | 416 ++++++++++++++ ...r_with_fqdn_name_should_remove_record.yaml | 416 ++++++++++++++ ...r_with_full_name_should_remove_record.yaml | 416 ++++++++++++++ ...rd_by_identifier_should_remove_record.yaml | 416 ++++++++++++++ ...content_should_leave_others_untouched.yaml | 415 ++++++++++++++ ...ecord_with_record_set_name_remove_all.yaml | 534 ++++++++++++++++++ ...alling_list_records_after_setting_ttl.yaml | 298 ++++++++++ ...ist_records_should_handle_record_sets.yaml | 417 ++++++++++++++ ...fqdn_name_filter_should_return_record.yaml | 298 ++++++++++ ...full_name_filter_should_return_record.yaml | 298 ++++++++++ ...h_invalid_filter_should_be_empty_list.yaml | 179 ++++++ ...with_name_filter_should_return_record.yaml | 298 ++++++++++ ...rds_with_no_arguments_should_list_all.yaml | 179 ++++++ ...ng_update_record_should_modify_record.yaml | 358 ++++++++++++ ...d_should_modify_record_name_specified.yaml | 358 ++++++++++++ ...d_with_fqdn_name_should_modify_record.yaml | 358 ++++++++++++ ...d_with_full_name_should_modify_record.yaml | 358 ++++++++++++ 29 files changed, 8350 insertions(+) create mode 100644 lexicon/providers/porkbun.py create mode 100644 lexicon/tests/providers/test_porkbun.py create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_authenticate.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_authenticate_with_unmanaged_domain_should_fail.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_should_remove_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_identifier_should_remove_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_name_remove_all.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_after_setting_ttl.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_should_handle_record_sets.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_name_filter_should_return_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_no_arguments_should_list_all.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_should_modify_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_should_modify_record_name_specified.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml create mode 100644 tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_with_full_name_should_modify_record.yaml diff --git a/CODEOWNERS b/CODEOWNERS index 0587a431e..9821e9487 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -68,6 +68,7 @@ lexicon/providers/online.py @kapouer lexicon/providers/ovh.py @adferrand lexicon/providers/plesk.py @ctron lexicon/providers/pointhq.py @analogj +lexicon/providers/porkbun.py @guidopetri lexicon/providers/powerdns.py @insertjokehere @splashx lexicon/providers/rackspace.py @rmarscher @mattgauf lexicon/providers/rage4.py @analogj diff --git a/lexicon/providers/porkbun.py b/lexicon/providers/porkbun.py new file mode 100644 index 000000000..d6d84ab8d --- /dev/null +++ b/lexicon/providers/porkbun.py @@ -0,0 +1,171 @@ +import logging +import requests +from lexicon.exceptions import AuthenticationError +from lexicon.providers.base import Provider as BaseProvider +import json + +LOGGER = logging.getLogger(__name__) + +NAMESERVER_DOMAINS = ["porkbun.com"] + + +def provider_parser(subparser): + """Return the parser for this provider""" + subparser.description = """ + To authenticate with Porkbun, you need both an API key and a + secret API key. These can be created at porkbun.com/account/api . + """ + + subparser.add_argument("--auth-key", help="specify API key for authentication") + subparser.add_argument( + "--auth-secret", help="specify secret API key for authentication" + ) + + +class Provider(BaseProvider): + """Provider class for Porkbun""" + + def __init__(self, config): + super(Provider, self).__init__(config) + self.api_endpoint = "https://porkbun.com/api/json/v3" + self._api_key = self._get_provider_option("auth_key") + self._secret_api_key = self._get_provider_option("auth_secret") + self._auth_data = { + "apikey": self._api_key, + "secretapikey": self._secret_api_key, + } + + self.domain = self._get_lexicon_option("domain") + + def _authenticate(self): + # more of a test that the authentication works + response = self._post("/ping") + + if response["status"] != "SUCCESS": + raise AuthenticationError("Incorrect API keys") + self.domain_id = self.domain + self._list_records() + + def _create_record(self, rtype, name, content): + active_records = self._list_records(rtype, name, content) + # if the record already exists: early exit, return success + if active_records: + LOGGER.debug("create_record: record already exists") + return True + + data = { + "type": rtype, + "content": content, + "name": self._relative_name(name), + } + + if self._get_lexicon_option("priority"): + data["prio"] = self._get_lexicon_option("priority") + + if self._get_lexicon_option("ttl"): + data["ttl"] = self._get_lexicon_option("ttl") + + response = self._post(f"/dns/create/{self.domain}", data) + + LOGGER.debug(f"create_record: {response}") + return response["status"] == "SUCCESS" + + def _list_records(self, rtype=None, name=None, content=None): + # porkbun has some weird behavior on the retrieveByNameType endpoint + # related to how it handles subdomains. + # so we ignore it and filter locally instead + records = self._post(f"/dns/retrieve/{self.domain}") + + if records["status"] != "SUCCESS": + raise requests.exceptions.HTTPError(records) + + records = records["records"] + + records = self._format_records(records) + + # filter for content if it was provided + if content is not None: + records = [x for x in records if x["content"] == content] + + # filter for name if it was provided + if name is not None: + records = [x for x in records if x["name"] == self._full_name(name)] + + # filter for rtype if it was provided + if rtype is not None: + records = [x for x in records if x["type"] == rtype] + + LOGGER.debug(f"list_records: {records}") + LOGGER.debug(f"Number of records retrieved: {len(records)}") + return records + + def _update_record(self, identifier=None, rtype=None, name=None, content=None): + if identifier is None: + records = self._list_records(rtype, name) + if len(records) == 1: + identifier = records[0]["id"] + elif len(records) == 0: + raise Exception( + "No records found matching type and name - won't update" + ) + else: + raise Exception( + "Multiple records found matching type and name - won't update" + ) + + endpoint = f"/dns/edit/{self.domain}/{identifier}" + + data = {"name": self._relative_name(name), "type": rtype, "content": content} + + # if set to 0, then this will automatically get set to 300 + if self._get_lexicon_option("ttl"): + data["ttl"] = self._get_lexicon_option("ttl") + + if self._get_lexicon_option("priority"): + data["prio"] = self._get_lexicon_option("priority") + + result = self._post(endpoint, data) + + LOGGER.debug(f"update_record: {result}") + return result["status"] == "SUCCESS" + + def _delete_record(self, identifier=None, rtype=None, name=None, content=None): + if identifier is None: + records = self._list_records(rtype, name, content) + delete_record_ids = [record["id"] for record in records] + else: + delete_record_ids = [identifier] + + LOGGER.debug(f"deleting records: {delete_record_ids}") + + for record_id in delete_record_ids: + self._post(f"/dns/delete/{self.domain}/{record_id}") + + LOGGER.debug("delete_record: success") + return True + + def _request(self, action="GET", url="/", data=None, query_params=None): + if data is None: + data = {} + if query_params is None: + query_params = {} + headers = {"Content-Type": "application/json"} + + response = requests.request( + action, + self.api_endpoint + url, + params=query_params, + data=json.dumps({**data, **self._auth_data}), + headers=headers, + ) + + response.raise_for_status() + return response.json() + + def _format_records(self, records): + for record in records: + record["name"] = self._full_name(record["name"]) + if "prio" in record: + record["options"] = {"mx": {"priority": record["prio"]}} + del record["prio"] + return records diff --git a/lexicon/tests/providers/test_porkbun.py b/lexicon/tests/providers/test_porkbun.py new file mode 100644 index 000000000..84664cd1e --- /dev/null +++ b/lexicon/tests/providers/test_porkbun.py @@ -0,0 +1,27 @@ +# Test for one implementation of the interface +from lexicon.tests.providers.integration_tests import IntegrationTestsV2 +from unittest import TestCase + + +# 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 integration_tests.IntegrationTests +class PorkbunProviderTests(TestCase, IntegrationTestsV2): + """Integration tests for Porkbun provider""" + + provider_name = "porkbun" + domain = "example.xyz" + + def _filter_post_data_parameters(self): + return ["login_token", "apikey", "secretapikey"] + + def _filter_headers(self): + return ["Authorization"] + + def _filter_query_parameters(self): + return ["secret_key"] + + def _filter_response(self, response): + """See `IntegrationTests._filter_response` for more information on how + to filter the provider response.""" + return response diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_authenticate.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_authenticate.yaml new file mode 100644 index 000000000..53dc62572 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_authenticate.yaml @@ -0,0 +1,120 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:17 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=B7r1kQtkaZNk+JDxYzONZVyzGKg4pGhlNH6CMAYGQar54tjSRckgI1w8XYfBNr+P8pQOeuocEM4NN/cGs1QVM3tIijqYOMacSZrgIoR98IzEPPQRyNYrmDDYYzbh; + Expires=Sun, 19 Jun 2022 01:15:17 GMT; Path=/ + - AWSALBCORS=B7r1kQtkaZNk+JDxYzONZVyzGKg4pGhlNH6CMAYGQar54tjSRckgI1w8XYfBNr+P8pQOeuocEM4NN/cGs1QVM3tIijqYOMacSZrgIoR98IzEPPQRyNYrmDDYYzbh; + Expires=Sun, 19 Jun 2022 01:15:17 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=gDtESXOxSvvBcZ%2CbRXLGtvML1vO784tXkYlfe9aP6M9JriGM; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:18 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=okCtZrqDYouwVsj+B133KA4OZhdpVtmVMl4mLOpoW2EUf7qR4eQgRuwZUSKZcEWbvYNSLUGMpFzdqEDjnv/mmdpIisHZ7U47tfG1sphcuZBYiXhyPWG7K6qdJvQe; + Expires=Sun, 19 Jun 2022 01:15:17 GMT; Path=/ + - AWSALBCORS=okCtZrqDYouwVsj+B133KA4OZhdpVtmVMl4mLOpoW2EUf7qR4eQgRuwZUSKZcEWbvYNSLUGMpFzdqEDjnv/mmdpIisHZ7U47tfG1sphcuZBYiXhyPWG7K6qdJvQe; + Expires=Sun, 19 Jun 2022 01:15:17 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=E-5gLYTfTi3zrhWyRGTmtE%2CsltPckNlkkX4To7Igmsu0y1p4; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_authenticate_with_unmanaged_domain_should_fail.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_authenticate_with_unmanaged_domain_should_fail.yaml new file mode 100644 index 000000000..cfff59c20 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_authenticate_with_unmanaged_domain_should_fail.yaml @@ -0,0 +1,110 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:19 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=eF9GZWfd/uxk8YIAqfcN0M+8eN90FVf7zHCf1ZMmeSEv0stBT0T8q01BJVSYIeQshRTX3DIMvgpB7GMzmoPrt9yjACgnnh1PN6STytJKRolHBbF5JQz4XdUFBAzf; + Expires=Sun, 19 Jun 2022 01:15:18 GMT; Path=/ + - AWSALBCORS=eF9GZWfd/uxk8YIAqfcN0M+8eN90FVf7zHCf1ZMmeSEv0stBT0T8q01BJVSYIeQshRTX3DIMvgpB7GMzmoPrt9yjACgnnh1PN6STytJKRolHBbF5JQz4XdUFBAzf; + Expires=Sun, 19 Jun 2022 01:15:18 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=swiDvwW4GwvXQRAJFhYfPKUByp%2CwdSNPpqcgRIwYfhSJwOeQ; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/thisisadomainidonotown.com + response: + body: + string: '{"status":"ERROR","message":"Invalid domain."}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:19 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Server: + - openresty + Set-Cookie: + - AWSALB=3gWR2yb+gb8H/Hy2YZIbYoda7XtuUtQe48Ja+EPmowVmljwOybkbYCVPxNrXCh60i4Jz41VkDKE4EN7Yo59WynercV7iWe2Op90a57Nk2bd/70QthXg6g/NRW0QF; + Expires=Sun, 19 Jun 2022 01:15:19 GMT; Path=/ + - AWSALBCORS=3gWR2yb+gb8H/Hy2YZIbYoda7XtuUtQe48Ja+EPmowVmljwOybkbYCVPxNrXCh60i4Jz41VkDKE4EN7Yo59WynercV7iWe2Op90a57Nk2bd/70QthXg6g/NRW0QF; + Expires=Sun, 19 Jun 2022 01:15:19 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=Ntx20ZtrP1ATOywF-gdOkn55xe9vOJgEzKG7iI9HouKufOHW; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + status: + code: 400 + message: '' +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml new file mode 100644 index 000000000..264339fc2 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml @@ -0,0 +1,238 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:20 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=TXf881xaKtP4C79WzPcVIRDnrmPnATqahtSBflvqG6GUFTSSCh80Isd+ATQjj6bsKYIlQalmxtpTy+FNl4qz8y92zIKF+F/o/XeYAyKf3zCKwGdUAxWcp/BaWd22; + Expires=Sun, 19 Jun 2022 01:15:19 GMT; Path=/ + - AWSALBCORS=TXf881xaKtP4C79WzPcVIRDnrmPnATqahtSBflvqG6GUFTSSCh80Isd+ATQjj6bsKYIlQalmxtpTy+FNl4qz8y92zIKF+F/o/XeYAyKf3zCKwGdUAxWcp/BaWd22; + Expires=Sun, 19 Jun 2022 01:15:19 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=o-cbE9qT7ox8x7Jqt9UbWbLxT7y%2CPHanyTd8Y3CuFjo8whgG; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:20 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=EFetPMtro4VXFpNn8nfuUe/DuIsHEJcNoMRgTOc5/dkT9XlgCtoju6h8Wur1ziTRzE1YQsgVE8qEWr3/O15cZ9TsbppFA1QClV9uaoRosQqxdmMVKZbvqdlj1X+j; + Expires=Sun, 19 Jun 2022 01:15:20 GMT; Path=/ + - AWSALBCORS=EFetPMtro4VXFpNn8nfuUe/DuIsHEJcNoMRgTOc5/dkT9XlgCtoju6h8Wur1ziTRzE1YQsgVE8qEWr3/O15cZ9TsbppFA1QClV9uaoRosQqxdmMVKZbvqdlj1X+j; + Expires=Sun, 19 Jun 2022 01:15:20 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=%2Ch1VpY74uBd04vSeKRyR3K9H96ryx9HRyUpdxxraM6SsW2Bt; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:21 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=rlGIxXTMIQ5rSwYvWallSnBLXtXyBCWlRLvk9jY85Syyh636OcPxEEE7CZ2sZew1qh6UM3vQsd94FR2quyFTgtkaaYKeah9Xp8cvCK5+rErf5VluMVle6Qnr2EwO; + Expires=Sun, 19 Jun 2022 01:15:21 GMT; Path=/ + - AWSALBCORS=rlGIxXTMIQ5rSwYvWallSnBLXtXyBCWlRLvk9jY85Syyh636OcPxEEE7CZ2sZew1qh6UM3vQsd94FR2quyFTgtkaaYKeah9Xp8cvCK5+rErf5VluMVle6Qnr2EwO; + Expires=Sun, 19 Jun 2022 01:15:21 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=2hn-5qbd1I3xyqlmskoYfDdn6nLAK96oOuZwuDqDLRjbmxMc; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "A", "content": "127.0.0.1", "name": "localhost", "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '241' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272619}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:22 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=8oJWjXpnbXS21vB7Nj/GZ/U/Y9nsLmPSNFKbRtir6qKCMbr0djd1G1QY8YmImIj0GazqFZjiOB3LsEsXrZ6IXTJ6j8CDJqa9ghUJ1OsfFyc4AhHiBtpBJSiGv1d+; + Expires=Sun, 19 Jun 2022 01:15:22 GMT; Path=/ + - AWSALBCORS=8oJWjXpnbXS21vB7Nj/GZ/U/Y9nsLmPSNFKbRtir6qKCMbr0djd1G1QY8YmImIj0GazqFZjiOB3LsEsXrZ6IXTJ6j8CDJqa9ghUJ1OsfFyc4AhHiBtpBJSiGv1d+; + Expires=Sun, 19 Jun 2022 01:15:22 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=A61bZrMXHM4DPKpZLfc4zWs08kH7R25eVCa1DLDElc%2CuNl6u; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml new file mode 100644 index 000000000..62e2d56cb --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml @@ -0,0 +1,239 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:23 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=PrJwTvxTk0waipvN4k64JjrhibgrKEuc5O/CWpCmIqSt2qdZVKwixZyY+3csagkAkpSTDYSaMN7Qs6InZhN/kpJ3JffqupefVlLo6I3jbnOYrE3qHuuzbYh+w7K/; + Expires=Sun, 19 Jun 2022 01:15:22 GMT; Path=/ + - AWSALBCORS=PrJwTvxTk0waipvN4k64JjrhibgrKEuc5O/CWpCmIqSt2qdZVKwixZyY+3csagkAkpSTDYSaMN7Qs6InZhN/kpJ3JffqupefVlLo6I3jbnOYrE3qHuuzbYh+w7K/; + Expires=Sun, 19 Jun 2022 01:15:22 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=oYWnhrLHPlVxTti82-31UyPprw1wYOl0-IqQr%2Cc4%2CVccO1b1; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:23 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=emvGigQ8oqp8WhK8UZFw4pcBTOE9qhTg10NRU3xgy4cqoL76S9gDyAQImI+G1/wWTChPn/8U2fN3hfoGU2xQjNp7ShDv3IzVcnbL9mdNh9yXOmCYYlBLmlfAWX8e; + Expires=Sun, 19 Jun 2022 01:15:23 GMT; Path=/ + - AWSALBCORS=emvGigQ8oqp8WhK8UZFw4pcBTOE9qhTg10NRU3xgy4cqoL76S9gDyAQImI+G1/wWTChPn/8U2fN3hfoGU2xQjNp7ShDv3IzVcnbL9mdNh9yXOmCYYlBLmlfAWX8e; + Expires=Sun, 19 Jun 2022 01:15:23 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=SSXj-iq2wwUZgtybP3sTixmmNmBQf-kNIWShJlPG9xxEl%2CcD; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:24 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=I3GqpP8/hlahnQDoAfrkyCcJK7YbfOc/6xwiz3jHqT4xlMXeEOC+teaBxM3l0ze8dooPLnUY3VD3lMYk4BAMrTl425wvXd8FQBaGzpYA2sBvqekqfO+JWD8nvzAO; + Expires=Sun, 19 Jun 2022 01:15:24 GMT; Path=/ + - AWSALBCORS=I3GqpP8/hlahnQDoAfrkyCcJK7YbfOc/6xwiz3jHqT4xlMXeEOC+teaBxM3l0ze8dooPLnUY3VD3lMYk4BAMrTl425wvXd8FQBaGzpYA2sBvqekqfO+JWD8nvzAO; + Expires=Sun, 19 Jun 2022 01:15:24 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=rj0Pe81Byp9jJBNrJnrGuHLAwzlk6IWZ-MReH0uEWRRBxfDH; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "CNAME", "content": "docs.example.com", "name": "docs", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '247' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272623}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:25 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ma/H3Yl16iDWlWWR8ytHo8yhpABzCMq8fyPsOYxLAqWmJ2PSGftU4A9rNpp+wFzAuA79Q2SR5sd//+EZNaHNwscsat1ILEC2JcBUsLgCckoYttOlPdo1HYMHBqZJ; + Expires=Sun, 19 Jun 2022 01:15:24 GMT; Path=/ + - AWSALBCORS=ma/H3Yl16iDWlWWR8ytHo8yhpABzCMq8fyPsOYxLAqWmJ2PSGftU4A9rNpp+wFzAuA79Q2SR5sd//+EZNaHNwscsat1ILEC2JcBUsLgCckoYttOlPdo1HYMHBqZJ; + Expires=Sun, 19 Jun 2022 01:15:24 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=MCDG3MS6M7C7A99OQwXdXapbr5VEWGfXtW45TNziwwWhqK4e; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml new file mode 100644 index 000000000..5c7b91f21 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml @@ -0,0 +1,239 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:26 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=uQQdchl7d7OS+ypE3A/H4LPZoGTLh6MW/WJzXkC6n/sl5Bk9LMK7HaZj7GlzgGfcRbEuK3Memxk/W0vGgZqixOJcLdKaOlAaMXnxBUGc6FixhV4G0thlwnBeTCc1; + Expires=Sun, 19 Jun 2022 01:15:25 GMT; Path=/ + - AWSALBCORS=uQQdchl7d7OS+ypE3A/H4LPZoGTLh6MW/WJzXkC6n/sl5Bk9LMK7HaZj7GlzgGfcRbEuK3Memxk/W0vGgZqixOJcLdKaOlAaMXnxBUGc6FixhV4G0thlwnBeTCc1; + Expires=Sun, 19 Jun 2022 01:15:25 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=px%2CrY7cQdAAnm3BYFi-yD1M%2CztZBoTj5D6BrJcebwIqy7rFh; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:26 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=GO6Hj2seYQfg6Oja1EHLZYMizmFnwWPQL+PkJXkUcjqHJTRvprk/MAMGuQJXv6oNuZA5WEDoIdTcVT6c8gKSS+DKcbYrqYG7Mr0r29dTLgGcgMm2FaxKnKNmNqC6; + Expires=Sun, 19 Jun 2022 01:15:26 GMT; Path=/ + - AWSALBCORS=GO6Hj2seYQfg6Oja1EHLZYMizmFnwWPQL+PkJXkUcjqHJTRvprk/MAMGuQJXv6oNuZA5WEDoIdTcVT6c8gKSS+DKcbYrqYG7Mr0r29dTLgGcgMm2FaxKnKNmNqC6; + Expires=Sun, 19 Jun 2022 01:15:26 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=ItIFDtQXZzNIbIbLhxU26UDN-gJbhtEY9MK9VmolNEP2L6eL; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:27 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=WKDpaRM/fDhnuYYZsmntgOQGc/CsVVRmb++ZcrFwghnzbnrhYbDmWwKuM5v6hUjqRTySwiVzzyDWGCXf6xgggYWJUBB8SPWU7kMe8u2z/F1++lonT8cjjMNAzrP+; + Expires=Sun, 19 Jun 2022 01:15:26 GMT; Path=/ + - AWSALBCORS=WKDpaRM/fDhnuYYZsmntgOQGc/CsVVRmb++ZcrFwghnzbnrhYbDmWwKuM5v6hUjqRTySwiVzzyDWGCXf6xgggYWJUBB8SPWU7kMe8u2z/F1++lonT8cjjMNAzrP+; + Expires=Sun, 19 Jun 2022 01:15:26 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=63ZLSn4XlG8Ls5BUNaBH9lf6LzIH1Qo0Qn%2CQEnWkNRTZCfW3; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "_acme-challenge.fqdn", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '259' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272628}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:28 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=nbiAib4H6xGUyVPS/hK3DfAWauK5il09W1TBJ70RN0yjWWuYq804kAWVNjPmG1QvMluWzALR8m+1a3z02grnWjx0CrCjSevIw6QhD2OqWHhM5VSjnr2//wR7PYLv; + Expires=Sun, 19 Jun 2022 01:15:27 GMT; Path=/ + - AWSALBCORS=nbiAib4H6xGUyVPS/hK3DfAWauK5il09W1TBJ70RN0yjWWuYq804kAWVNjPmG1QvMluWzALR8m+1a3z02grnWjx0CrCjSevIw6QhD2OqWHhM5VSjnr2//wR7PYLv; + Expires=Sun, 19 Jun 2022 01:15:27 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=d0%2CVUfDyBwtlXMpa5ErkvlAnanfr%2CfLnBBHGtRfouvxh64%2Cx; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml new file mode 100644 index 000000000..df984ff30 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml @@ -0,0 +1,239 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:28 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=qoVyaS16TbSwun7gERFsnJw/f9uQ1MP0L7Cu4ScNJ+8IaJnrMNCfNftVQ1QXxx+FA/6roiWJnzjKMx6y1xVlXQuExVg9J/Be27TyVMQaKgA2PM6VekZD6z9zhXFq; + Expires=Sun, 19 Jun 2022 01:15:28 GMT; Path=/ + - AWSALBCORS=qoVyaS16TbSwun7gERFsnJw/f9uQ1MP0L7Cu4ScNJ+8IaJnrMNCfNftVQ1QXxx+FA/6roiWJnzjKMx6y1xVlXQuExVg9J/Be27TyVMQaKgA2PM6VekZD6z9zhXFq; + Expires=Sun, 19 Jun 2022 01:15:28 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=fXRIVj5p6J1QMd0dJqSYppWbYqPSvIsNW%2CJMOIDvKWiIgLeS; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:29 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=iAxLCK29CNea9lqOHACsucX7vwdw96d3xsXSkpkerkqaAUS2URauKL1uDHDC8HG2a5vzjaUBOxqPqEIcuqUXU0KlbajgpRMo9Aw+T/Y0AwL6lxwctN7Uxv5c82zj; + Expires=Sun, 19 Jun 2022 01:15:29 GMT; Path=/ + - AWSALBCORS=iAxLCK29CNea9lqOHACsucX7vwdw96d3xsXSkpkerkqaAUS2URauKL1uDHDC8HG2a5vzjaUBOxqPqEIcuqUXU0KlbajgpRMo9Aw+T/Y0AwL6lxwctN7Uxv5c82zj; + Expires=Sun, 19 Jun 2022 01:15:29 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=tH1cjHDdikWM8dFdPMMS7ufG3YVaQxpN4o1rdJTfElIo-2h5; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:30 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ICr1WC+UbxROlabTJr3m8ax8i7jWtLiK5inG+bXhmiD5Bgn0ARmJLRBHwOxYwmzACvu0ddSJiqIwWJBBRyQgv56q9ygH1oH40gKvkURysE00C5PZetozZP/mKPeq; + Expires=Sun, 19 Jun 2022 01:15:29 GMT; Path=/ + - AWSALBCORS=ICr1WC+UbxROlabTJr3m8ax8i7jWtLiK5inG+bXhmiD5Bgn0ARmJLRBHwOxYwmzACvu0ddSJiqIwWJBBRyQgv56q9ygH1oH40gKvkURysE00C5PZetozZP/mKPeq; + Expires=Sun, 19 Jun 2022 01:15:29 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=d2ZG-whfDPslTLAomr%2CR17NJpRRf9aVqyG7BgmOuLxOrAiGX; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "_acme-challenge.full", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '259' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272629}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:30 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=eJ0UgxdRwxq4DCPm24W7czivV3jZP15WmiWFiQLWyCw3TOkNYUNyFVijES9uXqhRdLrerP5m+7bTGNEXUBSzqBxRfb/pL6C1Zz0ZBbyKzYkPXu+/fhKXyQcCZZ/Y; + Expires=Sun, 19 Jun 2022 01:15:30 GMT; Path=/ + - AWSALBCORS=eJ0UgxdRwxq4DCPm24W7czivV3jZP15WmiWFiQLWyCw3TOkNYUNyFVijES9uXqhRdLrerP5m+7bTGNEXUBSzqBxRfb/pL6C1Zz0ZBbyKzYkPXu+/fhKXyQcCZZ/Y; + Expires=Sun, 19 Jun 2022 01:15:30 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=Rnx9I%2CDTcA9HXblteXM2LP7og8goV3uHWTQbW%2C2KxcU13TV2; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml new file mode 100644 index 000000000..b60f71afe --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml @@ -0,0 +1,239 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:31 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=on8jXdjhPmgU2E6ZHDxGiDk6IYm65HHtG6eyPevtIcyqEAJTIbte1p2zemaPwtxtEv7DBeRIJCg3HpDe00ePPLcNqpchiM+6Am3sPd6CHFMiQAy/7BxyjUEeShF9; + Expires=Sun, 19 Jun 2022 01:15:31 GMT; Path=/ + - AWSALBCORS=on8jXdjhPmgU2E6ZHDxGiDk6IYm65HHtG6eyPevtIcyqEAJTIbte1p2zemaPwtxtEv7DBeRIJCg3HpDe00ePPLcNqpchiM+6Am3sPd6CHFMiQAy/7BxyjUEeShF9; + Expires=Sun, 19 Jun 2022 01:15:31 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=FETLkd3O2uy5RG5jzgFHnaNImdo-CZFH899AHlKc1gI17HfZ; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:32 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ZmrgMXRuiSnEHqwB8AQ4jIgyyASTCO6WueiysNwegRIYZGg+fkP4m6JgvpGmK8iBFBILNCmO3Y/hsWv6AwpGWzfBbLHmE2p1fzSqTuYBs9RLgAyQ6r7sa5eVE6aB; + Expires=Sun, 19 Jun 2022 01:15:31 GMT; Path=/ + - AWSALBCORS=ZmrgMXRuiSnEHqwB8AQ4jIgyyASTCO6WueiysNwegRIYZGg+fkP4m6JgvpGmK8iBFBILNCmO3Y/hsWv6AwpGWzfBbLHmE2p1fzSqTuYBs9RLgAyQ6r7sa5eVE6aB; + Expires=Sun, 19 Jun 2022 01:15:31 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=4vskitVDJVmXKiNRB0hKFQjSou6sDc%2CSSlSwJjjrAwxYBQvw; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:33 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=C5j4MuO4WM9wsZIbwJA+JfGry9/CFsqJ9b0D4Dz2KkkwRPs4iyERMnsxhKdishD20Olfs5ROOROgPePykB429czdvf70GkumUZfAFuHcC6CKNwd5v++/hDytIiS1; + Expires=Sun, 19 Jun 2022 01:15:32 GMT; Path=/ + - AWSALBCORS=C5j4MuO4WM9wsZIbwJA+JfGry9/CFsqJ9b0D4Dz2KkkwRPs4iyERMnsxhKdishD20Olfs5ROOROgPePykB429czdvf70GkumUZfAFuHcC6CKNwd5v++/hDytIiS1; + Expires=Sun, 19 Jun 2022 01:15:32 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=Qwc3woaLr1tLYh5hGAJvlsMpl4Mc1A1c5vk9ZUEf-RVAO9xP; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "_acme-challenge.test", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '259' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272630}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:33 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=T8Z0auhCYEMNobo6uES8+sdDFyg+Rg8L2RsM0a1qeQfUnDOpKv/TVYlx0oxI7qOz7BtNHFvLpq3A/2mpffFTsZrYzouAe5020wgSm27AB7ZDZCFQwmZSJFykBmq7; + Expires=Sun, 19 Jun 2022 01:15:33 GMT; Path=/ + - AWSALBCORS=T8Z0auhCYEMNobo6uES8+sdDFyg+Rg8L2RsM0a1qeQfUnDOpKv/TVYlx0oxI7qOz7BtNHFvLpq3A/2mpffFTsZrYzouAe5020wgSm27AB7ZDZCFQwmZSJFykBmq7; + Expires=Sun, 19 Jun 2022 01:15:33 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=pzxGnvmMcqZ8MvsZxLirPdW40p8nnbjVncU7Byg4m0MLUkv7; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml new file mode 100644 index 000000000..a20514df0 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml @@ -0,0 +1,358 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:34 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=djxOr3B1aJ87Miz8CgTJJ/S2+RW7DkyRWIVfgTJiDacjrMSBM9u95qTGW/mNCboFi3HxkVGW0dl9AXdSlcr0lnqO+Eg/LJeR4uRrQMigd3dfMO7JhansFuVGs49b; + Expires=Sun, 19 Jun 2022 01:15:34 GMT; Path=/ + - AWSALBCORS=djxOr3B1aJ87Miz8CgTJJ/S2+RW7DkyRWIVfgTJiDacjrMSBM9u95qTGW/mNCboFi3HxkVGW0dl9AXdSlcr0lnqO+Eg/LJeR4uRrQMigd3dfMO7JhansFuVGs49b; + Expires=Sun, 19 Jun 2022 01:15:34 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=omwdQXC8nkUWPrOG2Su9pY71Sv45aylAUhFCnEI1DhseEyPQ; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:35 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=NiDFYOjtLQ5ycBHV+1VNmPAYFUceyiu3TVIWbrh60BhJQGWEDKMqi/AY1iHVeRioe18J62+koe8EML30YY2G8oXA2/kMkjUL7hZWVjn78jUQV7Pe6vINF0IDcPWC; + Expires=Sun, 19 Jun 2022 01:15:35 GMT; Path=/ + - AWSALBCORS=NiDFYOjtLQ5ycBHV+1VNmPAYFUceyiu3TVIWbrh60BhJQGWEDKMqi/AY1iHVeRioe18J62+koe8EML30YY2G8oXA2/kMkjUL7hZWVjn78jUQV7Pe6vINF0IDcPWC; + Expires=Sun, 19 Jun 2022 01:15:35 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=kM8-RHAIH3lRA5HWpdDIzEog4gUpNCNWpxhc6nRZ5PgNa-Jk; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:36 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=5E2Wbg3gB9DVSDTQ5wGB6FsPtjeL00iIMTV1s1hNpWmAZQZuOunIY/qG1ETInINEKoK/gEeCV0TLd4HvpQzzx/liTKrIpd8PacGMa2cl+pxsX79rFeCHl5ICP5CO; + Expires=Sun, 19 Jun 2022 01:15:35 GMT; Path=/ + - AWSALBCORS=5E2Wbg3gB9DVSDTQ5wGB6FsPtjeL00iIMTV1s1hNpWmAZQZuOunIY/qG1ETInINEKoK/gEeCV0TLd4HvpQzzx/liTKrIpd8PacGMa2cl+pxsX79rFeCHl5ICP5CO; + Expires=Sun, 19 Jun 2022 01:15:35 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=H4jXH8CO2OnnwkOthOB6j0%2Csdm8oirbddn6BZMhHt7tL5qmZ; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken1", "name": "_acme-challenge.createrecordset", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '271' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272631}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:37 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=79LO5mpEnU58KnSIx68ETdA7489ZAfyygPo7U1x0VtM2Vx95LbV9kkbdKCojuOifi1nMyixzjrq/oPlkJGsMVriN1ivp3CjdW3TfHw0kYbG3jX2O2u5vfvETNUg4; + Expires=Sun, 19 Jun 2022 01:15:36 GMT; Path=/ + - AWSALBCORS=79LO5mpEnU58KnSIx68ETdA7489ZAfyygPo7U1x0VtM2Vx95LbV9kkbdKCojuOifi1nMyixzjrq/oPlkJGsMVriN1ivp3CjdW3TfHw0kYbG3jX2O2u5vfvETNUg4; + Expires=Sun, 19 Jun 2022 01:15:36 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=gS6ApVliVbFHpCn0IkWZmstg90buq2NbLZiEYFTrUfqB5mvU; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:37 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=DbbE31gIBe/OzkXTgG1qsgw31930FugM4Pt0FjuW4j4Rkv5yF+2LC5cj0iCCp9T/rbINSThAWiZXzFz/B2Fd+i7EqUWZT6SCtnvF93L0SeF457CPyn40T4ztcoqT; + Expires=Sun, 19 Jun 2022 01:15:37 GMT; Path=/ + - AWSALBCORS=DbbE31gIBe/OzkXTgG1qsgw31930FugM4Pt0FjuW4j4Rkv5yF+2LC5cj0iCCp9T/rbINSThAWiZXzFz/B2Fd+i7EqUWZT6SCtnvF93L0SeF457CPyn40T4ztcoqT; + Expires=Sun, 19 Jun 2022 01:15:37 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=94cdrboaoN9IFWVKSabxgyFvUG8j0zu1ORwvMXC1%2CuyLRwyl; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken2", "name": "_acme-challenge.createrecordset", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '271' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272632}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:38 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=tZkLOauZ6AX+gj9IVoe3YPTs3JT1qvvXzsqwJJFVNYl+5r6Cipj3ZJxPpHkUnKSbLQCtrSDy5fBp8xQJe/uvEkUh8DdQapxUUY+/m/3NmDpsijCnwLCCmepABZbn; + Expires=Sun, 19 Jun 2022 01:15:38 GMT; Path=/ + - AWSALBCORS=tZkLOauZ6AX+gj9IVoe3YPTs3JT1qvvXzsqwJJFVNYl+5r6Cipj3ZJxPpHkUnKSbLQCtrSDy5fBp8xQJe/uvEkUh8DdQapxUUY+/m/3NmDpsijCnwLCCmepABZbn; + Expires=Sun, 19 Jun 2022 01:15:38 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=m8WmZ9ylxcb1OPuiZpsoR5e3InEZgG4-WbbN0%2C2HMnIV6vnj; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml new file mode 100644 index 000000000..962cea747 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml @@ -0,0 +1,357 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:39 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=3WmllB0/LMsLadEU7DChop3x+Evm3Vi4rhnKioEGE7PPo+GIqyY1TR72aPL0Xud3mCUfomoSdlrqFu5wEUl1WeVmbUbnwnkdrjlMjbsAPxlHw6MUQd+vN3N4iDq1; + Expires=Sun, 19 Jun 2022 01:15:38 GMT; Path=/ + - AWSALBCORS=3WmllB0/LMsLadEU7DChop3x+Evm3Vi4rhnKioEGE7PPo+GIqyY1TR72aPL0Xud3mCUfomoSdlrqFu5wEUl1WeVmbUbnwnkdrjlMjbsAPxlHw6MUQd+vN3N4iDq1; + Expires=Sun, 19 Jun 2022 01:15:38 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=FDKPCyu7%2CnEgDOGVw28ZQslGpp1MUMDmgJ4vnmQGiiYKlvP7; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:40 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=x+wvtSywlcxvsuB493M8jU0cw00yzON1BwYR7dGr2s6cW/+Zr39YYCC3VCj67UvWQVNPUzAi1U3xr2l/6aLTLGLomwDgr9dY9igFwcryI1gUryT4cb5o4xPdayL5; + Expires=Sun, 19 Jun 2022 01:15:39 GMT; Path=/ + - AWSALBCORS=x+wvtSywlcxvsuB493M8jU0cw00yzON1BwYR7dGr2s6cW/+Zr39YYCC3VCj67UvWQVNPUzAi1U3xr2l/6aLTLGLomwDgr9dY9igFwcryI1gUryT4cb5o4xPdayL5; + Expires=Sun, 19 Jun 2022 01:15:39 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=JoTG5hGe%2CwzJ7F3flc%2CIaCS330uM1-SD00g4b%2C8rfVPJmU-Q; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:40 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=9dwvceUf2/5ChvBLGzK0Tr6Vl6i9uJuE68crfXjjES0popwSj1+FGMpdWOOlkJT8vDuPJeoAxzORfahD1SK1kw2bDmkKPW7ODEGfILR2D7HOPR2qGBSY8sSvjEcm; + Expires=Sun, 19 Jun 2022 01:15:40 GMT; Path=/ + - AWSALBCORS=9dwvceUf2/5ChvBLGzK0Tr6Vl6i9uJuE68crfXjjES0popwSj1+FGMpdWOOlkJT8vDuPJeoAxzORfahD1SK1kw2bDmkKPW7ODEGfILR2D7HOPR2qGBSY8sSvjEcm; + Expires=Sun, 19 Jun 2022 01:15:40 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=A-ow5SkZeETo5T4ZkxHV4t5AY-vBT9OD52k0lgT4G8KT6nk1; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "_acme-challenge.noop", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '259' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272635}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:41 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=xCpAfSYxMUW//AJGqyVfykd1Ks8Jb9O3O0GfXIW54Vtrs3DCzPGaX6XX87Fmj+lXnbMuzchMNBvM5K1GQPK1tMDIWgasB7XXcO0b9JsXVpvkpW9EjuUGeH6wXeFZ; + Expires=Sun, 19 Jun 2022 01:15:41 GMT; Path=/ + - AWSALBCORS=xCpAfSYxMUW//AJGqyVfykd1Ks8Jb9O3O0GfXIW54Vtrs3DCzPGaX6XX87Fmj+lXnbMuzchMNBvM5K1GQPK1tMDIWgasB7XXcO0b9JsXVpvkpW9EjuUGeH6wXeFZ; + Expires=Sun, 19 Jun 2022 01:15:41 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=vAjuP3VlV2HHjGH0rw45VHdxoPVGjQpIKkGIL6wch5UoWUjA; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:42 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=+TwOweeFd9a43J0XNEdpRWjDGctu15mex7xoAFrta03owWI0E+xBXOT3HvWli02wXvWutN9B310KpdXNfzFAndHKT1TtZ5q4Ay/1zJGKbZQy9LA/gaUhXy3TB60R; + Expires=Sun, 19 Jun 2022 01:15:41 GMT; Path=/ + - AWSALBCORS=+TwOweeFd9a43J0XNEdpRWjDGctu15mex7xoAFrta03owWI0E+xBXOT3HvWli02wXvWutN9B310KpdXNfzFAndHKT1TtZ5q4Ay/1zJGKbZQy9LA/gaUhXy3TB60R; + Expires=Sun, 19 Jun 2022 01:15:41 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=YLwajSJpyJYnOPhWovi%2Ck69F26zX835nHE-qa4OC%2CYsQ7eZ3; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:43 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=9wlKSBXEl4xbsz77qaGJgGRe+Fx8AdtzhrUiri/zHNOb4vcYnvIeYDWKE6KE32TJXRvkwuZDrKXCNXjaiy0BwFI+fEPyelggFqMdX0q7tCl83Ilw8e1dH2SYMk/q; + Expires=Sun, 19 Jun 2022 01:15:42 GMT; Path=/ + - AWSALBCORS=9wlKSBXEl4xbsz77qaGJgGRe+Fx8AdtzhrUiri/zHNOb4vcYnvIeYDWKE6KE32TJXRvkwuZDrKXCNXjaiy0BwFI+fEPyelggFqMdX0q7tCl83Ilw8e1dH2SYMk/q; + Expires=Sun, 19 Jun 2022 01:15:42 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=zfOvJCePZuGsEOUr1BfrraOU8lb3lACO8OjGFznL0zVydb3v; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_should_remove_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_should_remove_record.yaml new file mode 100644 index 000000000..c9133b2a5 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_should_remove_record.yaml @@ -0,0 +1,416 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:43 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Y8v0xAFbX+8xsmFzmwDvRuie6wZeBK4efsmFcEsL+uzodQw3iphdLQEH39partDui5l9I0JqFMjQYQ1bTPrCSHLJQq0IAcNsfYPFz3FMtXGLEvyEiwCrDLo7TlW2; + Expires=Sun, 19 Jun 2022 01:15:43 GMT; Path=/ + - AWSALBCORS=Y8v0xAFbX+8xsmFzmwDvRuie6wZeBK4efsmFcEsL+uzodQw3iphdLQEH39partDui5l9I0JqFMjQYQ1bTPrCSHLJQq0IAcNsfYPFz3FMtXGLEvyEiwCrDLo7TlW2; + Expires=Sun, 19 Jun 2022 01:15:43 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=pO8abdKrYWWCPN-ZlhhKCUn7r4hNTWKHChK33HXguuexVX1N; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:44 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ogIPrHL3cECr2bOmC2uXdVLIfLSKY3toQPiH+ecuH6Esx+hSUFGfS8obHUupsSsPTwte7XkW4GcnNw0ZSI8AAgAZO9zoHflzftdFORxwsJbdKG0qS549btyCC2z0; + Expires=Sun, 19 Jun 2022 01:15:44 GMT; Path=/ + - AWSALBCORS=ogIPrHL3cECr2bOmC2uXdVLIfLSKY3toQPiH+ecuH6Esx+hSUFGfS8obHUupsSsPTwte7XkW4GcnNw0ZSI8AAgAZO9zoHflzftdFORxwsJbdKG0qS549btyCC2z0; + Expires=Sun, 19 Jun 2022 01:15:44 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=LijTi0Duwbh7CvZWs2pGEcCWJb3fHPPccumkuOmSntmUFxTd; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:45 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=4Pyb9jvIx/6hU+1724/RNppOV/K/ekQ63lSuv5nl3tJJEY8Kf145TIZqoWBI9RItB7DVtdYOaEiddThdVA55TJwtZnl7aW+pFt4TyxYfKg+g/bQrP3q72Xjm5MCv; + Expires=Sun, 19 Jun 2022 01:15:44 GMT; Path=/ + - AWSALBCORS=4Pyb9jvIx/6hU+1724/RNppOV/K/ekQ63lSuv5nl3tJJEY8Kf145TIZqoWBI9RItB7DVtdYOaEiddThdVA55TJwtZnl7aW+pFt4TyxYfKg+g/bQrP3q72Xjm5MCv; + Expires=Sun, 19 Jun 2022 01:15:44 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=nwKx-KtfXJ7ZODmzfHXShUmrEjwsvNIrJU5lp257E6lV4f71; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "delete.testfilt", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '254' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272640}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:46 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=CLuwXNJD6xxIjjBTQi1UYZH4HEzMG9Q6E4VCcyI6axpebhfkl5XA+RK7sF4WBztKlcfkwAylRc8UozNxEEtDuQjEIYmUDIJ9wzxOzXwCAqvpA9DJmWXOAveyiO9s; + Expires=Sun, 19 Jun 2022 01:15:45 GMT; Path=/ + - AWSALBCORS=CLuwXNJD6xxIjjBTQi1UYZH4HEzMG9Q6E4VCcyI6axpebhfkl5XA+RK7sF4WBztKlcfkwAylRc8UozNxEEtDuQjEIYmUDIJ9wzxOzXwCAqvpA9DJmWXOAveyiO9s; + Expires=Sun, 19 Jun 2022 01:15:45 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=CPTIVIme35EBU6CSeLibujJSdlOmHeY5%2Cm2kA8%2Cm3KTgc8-S; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272640","name":"delete.testfilt.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:46 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ysH952WtFOgqYHQZgElDBJGMXMdpgKmVL91UqJOROrjG8Ps7m3utB2weijNJn2NI/uyuYqsfxl0z+u6+gYXBS/Foh3oCC8m63oV0qVA/QERlbPNKXfwckdPFylG+; + Expires=Sun, 19 Jun 2022 01:15:46 GMT; Path=/ + - AWSALBCORS=ysH952WtFOgqYHQZgElDBJGMXMdpgKmVL91UqJOROrjG8Ps7m3utB2weijNJn2NI/uyuYqsfxl0z+u6+gYXBS/Foh3oCC8m63oV0qVA/QERlbPNKXfwckdPFylG+; + Expires=Sun, 19 Jun 2022 01:15:46 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=CRvLe%2CX6SB4gn3x60yibJBk3jRYMLFQNHyuyQBMv5b1%2C8sRD; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/delete/example.xyz/236272640 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:47 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=36VsbGqtAPcKdlW34mvVUTd/BWQCwoPVc6rBakgyqwXCr5B3bGbopiBmUzf3xGGSAxJFCItK9uc26xbgTIQzIhxJ84/NT0NR6+caxvuncKVstc/KqgXUH0EOLiSi; + Expires=Sun, 19 Jun 2022 01:15:47 GMT; Path=/ + - AWSALBCORS=36VsbGqtAPcKdlW34mvVUTd/BWQCwoPVc6rBakgyqwXCr5B3bGbopiBmUzf3xGGSAxJFCItK9uc26xbgTIQzIhxJ84/NT0NR6+caxvuncKVstc/KqgXUH0EOLiSi; + Expires=Sun, 19 Jun 2022 01:15:47 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=M1DC6TUr7ike3LHqN3alxBHp%2CQpOfE2X%2CsXChr59VJN4FFLe; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:48 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=w2aXMrjIgOJn0SmRLwWH4UJJt/pUS0DVo6GI1OoQLrypoTbGu97mhtXusbr3T7D9HJc/5llpCGzkYj2KGaQzHHhlTIIefrFVYJZSsU4H43fEeeYfZo/Qb7+/2abU; + Expires=Sun, 19 Jun 2022 01:15:47 GMT; Path=/ + - AWSALBCORS=w2aXMrjIgOJn0SmRLwWH4UJJt/pUS0DVo6GI1OoQLrypoTbGu97mhtXusbr3T7D9HJc/5llpCGzkYj2KGaQzHHhlTIIefrFVYJZSsU4H43fEeeYfZo/Qb7+/2abU; + Expires=Sun, 19 Jun 2022 01:15:47 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=cfEbUK9MaDPKCWJi%2C9u%2Ck6bgQxEb%2Cm-tyHnHZU0PQkRJjtVP; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml new file mode 100644 index 000000000..85e7cf3c1 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml @@ -0,0 +1,416 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:48 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Z0UsV+W5Og0//n3BgjSGYnD8eI5Dqb9KqtOHhJnJbAxtTK6gnojza450Mnc5Pj+d15TvfGbgFjunST84sDfwW4XJvQJ4DOAULoGwLVB46oYvtwFqufwcYs/yN3gP; + Expires=Sun, 19 Jun 2022 01:15:48 GMT; Path=/ + - AWSALBCORS=Z0UsV+W5Og0//n3BgjSGYnD8eI5Dqb9KqtOHhJnJbAxtTK6gnojza450Mnc5Pj+d15TvfGbgFjunST84sDfwW4XJvQJ4DOAULoGwLVB46oYvtwFqufwcYs/yN3gP; + Expires=Sun, 19 Jun 2022 01:15:48 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=i4-ssmQPToYiSvJuP-J1lJ2D0HbHCzF9VUPpKOg06nTAcBpn; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:49 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=sh9MLY+rNkWFA/ebGqa6yrSqgy8PnhNSvDPmttt8YN9LdsIP7vti0s9pK41Eyy72UoWvvkO49tMmFNgF5Ukzmh6oXKMX8yS3zfKEbdziaQtFvvQvlvVud4UftWlH; + Expires=Sun, 19 Jun 2022 01:15:49 GMT; Path=/ + - AWSALBCORS=sh9MLY+rNkWFA/ebGqa6yrSqgy8PnhNSvDPmttt8YN9LdsIP7vti0s9pK41Eyy72UoWvvkO49tMmFNgF5Ukzmh6oXKMX8yS3zfKEbdziaQtFvvQvlvVud4UftWlH; + Expires=Sun, 19 Jun 2022 01:15:49 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=v3YedZ8Nd2LRVpWhalFYjUbtaUml26EoNZkDWBG-lIGKRqqI; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:50 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=nV1Tgj4L9hLkDLqmSwJGdqI83DcOCNu37HCPbQ9ZFyHle2U/sYRylcdz/4LO+tKGeLCzgV1XSI0p6pSxb3bRu04l3QgMZNyCBXRdNTN3SRPEx4mxisCPHbwQRzYe; + Expires=Sun, 19 Jun 2022 01:15:49 GMT; Path=/ + - AWSALBCORS=nV1Tgj4L9hLkDLqmSwJGdqI83DcOCNu37HCPbQ9ZFyHle2U/sYRylcdz/4LO+tKGeLCzgV1XSI0p6pSxb3bRu04l3QgMZNyCBXRdNTN3SRPEx4mxisCPHbwQRzYe; + Expires=Sun, 19 Jun 2022 01:15:49 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=HSiFPkhQ9nbyHZOYKdunTfqYPno6KWSWswDWmYx2lImtXNbo; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "delete.testfqdn", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '254' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272643}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:51 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=BcUsMiMXWjZlw38j4uTpSnF+ml0VumP+RZktJ4ki3LWQxZ5rhYu4KwHku/coWmCCacRVpLNYDCbUIRH+nEPz4bofdydrcpfsX4jxtyGUft12UfrWgyP7A3dLv8Fn; + Expires=Sun, 19 Jun 2022 01:15:50 GMT; Path=/ + - AWSALBCORS=BcUsMiMXWjZlw38j4uTpSnF+ml0VumP+RZktJ4ki3LWQxZ5rhYu4KwHku/coWmCCacRVpLNYDCbUIRH+nEPz4bofdydrcpfsX4jxtyGUft12UfrWgyP7A3dLv8Fn; + Expires=Sun, 19 Jun 2022 01:15:50 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=DeiX5u66pYJ7b05gg7rq3e7vPq7X3mZKgobpz9k3wkrWsV2%2C; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272643","name":"delete.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:52 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=7oRlmIzJ2zfNcFrk8MuPUvLbgdplRlusWG2mMkjxZkRW91+za3vEZ1QsMTWgHw1egRzvNl3kn7BJbbr9WeX9XmVeVjXUvITR+OyIcZiEkTtlmb3xPdc1BJ3J5krw; + Expires=Sun, 19 Jun 2022 01:15:51 GMT; Path=/ + - AWSALBCORS=7oRlmIzJ2zfNcFrk8MuPUvLbgdplRlusWG2mMkjxZkRW91+za3vEZ1QsMTWgHw1egRzvNl3kn7BJbbr9WeX9XmVeVjXUvITR+OyIcZiEkTtlmb3xPdc1BJ3J5krw; + Expires=Sun, 19 Jun 2022 01:15:51 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=v0nowNc036vboNr3GeD%2C93zRindRN4yI2Z0Fhr5nIyOo-s2F; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/delete/example.xyz/236272643 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:53 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=fdV8PiX+WBMzb91dOWSHNh8cbvwGbikYAFYJnzXMeP07Nucgtdvz8Iw6zg48YOVHWhC4zecMUN9wZW/XJc7lN1JzitMeYHtfWV36f15tfJU+UyBhTxHPgyvcAB9I; + Expires=Sun, 19 Jun 2022 01:15:52 GMT; Path=/ + - AWSALBCORS=fdV8PiX+WBMzb91dOWSHNh8cbvwGbikYAFYJnzXMeP07Nucgtdvz8Iw6zg48YOVHWhC4zecMUN9wZW/XJc7lN1JzitMeYHtfWV36f15tfJU+UyBhTxHPgyvcAB9I; + Expires=Sun, 19 Jun 2022 01:15:52 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=lb5rpI1gKt0NczVekRjykh87KF7CGBYjHxMELNmjJjD4%2CsfT; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:53 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=zykWtj6ob5mp5il1To686ctmWEa+uoyaVAASWil9xFuJBW8aMG6K0KqfrTIB1aKmnLo7HjgqC2ZLMNQmx2FI5VNUqs/euP8jhWpdevCtkrpNDL+JUyLJCgDRazq/; + Expires=Sun, 19 Jun 2022 01:15:53 GMT; Path=/ + - AWSALBCORS=zykWtj6ob5mp5il1To686ctmWEa+uoyaVAASWil9xFuJBW8aMG6K0KqfrTIB1aKmnLo7HjgqC2ZLMNQmx2FI5VNUqs/euP8jhWpdevCtkrpNDL+JUyLJCgDRazq/; + Expires=Sun, 19 Jun 2022 01:15:53 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=uNyKZnCYA2JfS4skZ25rnsWmxp2LFMGCPD-nAHrqF6go5qkQ; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml new file mode 100644 index 000000000..e5706e931 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml @@ -0,0 +1,416 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:54 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Dl83hsFoKF1hFA6MdSZk0/S3k/GsBCyjV4NAzVR1X4becClk6SRWDdJvSQzO/+YM1wbLOzT8JfZEVqxRBkJMAvtdPFxzlBqjM4DTQKC2OGeK+8FmSdw0QsfLcix3; + Expires=Sun, 19 Jun 2022 01:15:54 GMT; Path=/ + - AWSALBCORS=Dl83hsFoKF1hFA6MdSZk0/S3k/GsBCyjV4NAzVR1X4becClk6SRWDdJvSQzO/+YM1wbLOzT8JfZEVqxRBkJMAvtdPFxzlBqjM4DTQKC2OGeK+8FmSdw0QsfLcix3; + Expires=Sun, 19 Jun 2022 01:15:54 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=gt4nLB1BRJRkiHZuMTm9XlIfykD%2CBYHtlPZCkb3WAXcR8dXW; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:55 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ArvhxO3LDsNWvTGHEOJe8zSvCkmELdkvpcoPvkG//xcrRdOopw4j+ZHjRXYIkhspAIeydKPsqPOTmISfYppmirx5BBiK2SHJVid2ip21NiMuJpDp4KJilc3YBAVW; + Expires=Sun, 19 Jun 2022 01:15:55 GMT; Path=/ + - AWSALBCORS=ArvhxO3LDsNWvTGHEOJe8zSvCkmELdkvpcoPvkG//xcrRdOopw4j+ZHjRXYIkhspAIeydKPsqPOTmISfYppmirx5BBiK2SHJVid2ip21NiMuJpDp4KJilc3YBAVW; + Expires=Sun, 19 Jun 2022 01:15:55 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=NqOB0F-si54xKAlry4pZCgOD%2CO7FhtmVd4jJlh1YviGC5W7c; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:56 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=etY2JP3jOS6p+L2VJ+Aq/X1KzevQyxQWzFk7XsMIz6PjdDyiNZ6Oci0iJgiH/ezAmWm/A1g1W6kQnZdJd4RNn4mkZ15olzU3rh1/k0YbhoX3jRoBvTs9sqg29J7h; + Expires=Sun, 19 Jun 2022 01:15:55 GMT; Path=/ + - AWSALBCORS=etY2JP3jOS6p+L2VJ+Aq/X1KzevQyxQWzFk7XsMIz6PjdDyiNZ6Oci0iJgiH/ezAmWm/A1g1W6kQnZdJd4RNn4mkZ15olzU3rh1/k0YbhoX3jRoBvTs9sqg29J7h; + Expires=Sun, 19 Jun 2022 01:15:55 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=kUKTi3bEwIALfYRcxurcvONKsBmfZo1wBxTIF7eMMTlM%2CLhy; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "delete.testfull", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '254' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272644}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:56 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=EvDP3bntNurYQ0O8rHVzNKuQk7Gjm5dBqkeUl5WiVBd/Wv+yvzGVcX4yKGd28QxCocomWgUo0sMfhwucWMTl1DcJ5lWw2Mzhk5EnkBUUuHVpSYQfxmy/kJ7XoRQk; + Expires=Sun, 19 Jun 2022 01:15:56 GMT; Path=/ + - AWSALBCORS=EvDP3bntNurYQ0O8rHVzNKuQk7Gjm5dBqkeUl5WiVBd/Wv+yvzGVcX4yKGd28QxCocomWgUo0sMfhwucWMTl1DcJ5lWw2Mzhk5EnkBUUuHVpSYQfxmy/kJ7XoRQk; + Expires=Sun, 19 Jun 2022 01:15:56 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=INSVMpo3ur6heDcGEf07FJsMlRMyVPBnljqlPgFqhzBHTYQq; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272644","name":"delete.testfull.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:57 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=mV3ayoke9zp7XuX+LGPAIZQCyeEQLEa2ZuRCVr7cKFB6UnSWT9V9GEhvdjNtd4gnRIVqNGN8j7xQtWgxOzdpTJwrr+0jVDzArarsIhAlCiVKhu1yKXhhebhTcse+; + Expires=Sun, 19 Jun 2022 01:15:57 GMT; Path=/ + - AWSALBCORS=mV3ayoke9zp7XuX+LGPAIZQCyeEQLEa2ZuRCVr7cKFB6UnSWT9V9GEhvdjNtd4gnRIVqNGN8j7xQtWgxOzdpTJwrr+0jVDzArarsIhAlCiVKhu1yKXhhebhTcse+; + Expires=Sun, 19 Jun 2022 01:15:57 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=WjgFKfzpkvSKZtsaAul7IyUB7kwID%2CwlAFpMKIY9zkR5Xjkv; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/delete/example.xyz/236272644 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:58 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=2xzblq8ag8osycCJ1RJQHpoynE7iURPmDS+gGASlOjwBYA+GXvfUYCbzwWs/7TRNcJkOTJBSOTVFm3MQpGBh57hgP8HjZPQ04fFM4iFyu+HE8v4IbZf3mV7zZXyh; + Expires=Sun, 19 Jun 2022 01:15:57 GMT; Path=/ + - AWSALBCORS=2xzblq8ag8osycCJ1RJQHpoynE7iURPmDS+gGASlOjwBYA+GXvfUYCbzwWs/7TRNcJkOTJBSOTVFm3MQpGBh57hgP8HjZPQ04fFM4iFyu+HE8v4IbZf3mV7zZXyh; + Expires=Sun, 19 Jun 2022 01:15:57 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=ontfJoPTH3WNSxq2V7nXJCL97ufYx4-R8zYCXWxERS8P1I8Z; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:15:59 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=SS1LIozdBRVt2VlKwoC6JyzjD9rv4Np8ft3qi0SXqhBbgNHACMHeHl5pNP6OOoEAqbNnAx7r7lUfVRtdFYYdeLvdO0ZImvfRAkHb2MnuOQQOYsj+WmCGHmaJ+Qod; + Expires=Sun, 19 Jun 2022 01:15:58 GMT; Path=/ + - AWSALBCORS=SS1LIozdBRVt2VlKwoC6JyzjD9rv4Np8ft3qi0SXqhBbgNHACMHeHl5pNP6OOoEAqbNnAx7r7lUfVRtdFYYdeLvdO0ZImvfRAkHb2MnuOQQOYsj+WmCGHmaJ+Qod; + Expires=Sun, 19 Jun 2022 01:15:58 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=NFWcORxDoH7K%2CC2FhijWO8TKdZDor-q7Fl32o0-prf86Jxtv; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_identifier_should_remove_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_identifier_should_remove_record.yaml new file mode 100644 index 000000000..efa0e599a --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_by_identifier_should_remove_record.yaml @@ -0,0 +1,416 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:16:00 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=FEnoTPvnnqBYQVADxHMcqX2kZSILmT/IX1vrAchyeDLZnhi+sbLy/Dp743O3xczQW5ZD9hGKlWNHIo2zkoadsbW6sQA0578DFIGQQgFDvJMJtrcgRXN6tUEa23nJ; + Expires=Sun, 19 Jun 2022 01:15:59 GMT; Path=/ + - AWSALBCORS=FEnoTPvnnqBYQVADxHMcqX2kZSILmT/IX1vrAchyeDLZnhi+sbLy/Dp743O3xczQW5ZD9hGKlWNHIo2zkoadsbW6sQA0578DFIGQQgFDvJMJtrcgRXN6tUEa23nJ; + Expires=Sun, 19 Jun 2022 01:15:59 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=DC5I03H%2CFywKhJzXetfEHxYX%2CkuFw5P6quYjT2xMLYs5rKZ%2C; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:16:00 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=JjFiiWca0N5mCXAZ8yz3OkWcTsPB+Dw0cQ9mKRwaJG4sVl3lop73qsZvqoKNubFBlKbGU2Hc/q7COHlVs9W+YKNHssy/lPHg6ZmG4pzo+EVX0NFlBuXDcu94CvJL; + Expires=Sun, 19 Jun 2022 01:16:00 GMT; Path=/ + - AWSALBCORS=JjFiiWca0N5mCXAZ8yz3OkWcTsPB+Dw0cQ9mKRwaJG4sVl3lop73qsZvqoKNubFBlKbGU2Hc/q7COHlVs9W+YKNHssy/lPHg6ZmG4pzo+EVX0NFlBuXDcu94CvJL; + Expires=Sun, 19 Jun 2022 01:16:00 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=xWJks1j4AevH3CCA%2CRoUMEi97YWsuXNcS-mdjl-2LnmPpzy%2C; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:16:01 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=R3fyqCMpcTTH0aEj8tgPtcR+WQo69bIgU24dnjhRjaOKL/2lmvIwZfTPCdsoIIw7VxONGbgIbTSDuEf2coBqZWqGeUY+GBom2ci9Ph6y259l3bZG32yTxWpRB1nd; + Expires=Sun, 19 Jun 2022 01:16:01 GMT; Path=/ + - AWSALBCORS=R3fyqCMpcTTH0aEj8tgPtcR+WQo69bIgU24dnjhRjaOKL/2lmvIwZfTPCdsoIIw7VxONGbgIbTSDuEf2coBqZWqGeUY+GBom2ci9Ph6y259l3bZG32yTxWpRB1nd; + Expires=Sun, 19 Jun 2022 01:16:01 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=HZGroqjUDF45aPEwacvx5SOi7vJrg7RH3798l8QNG4k1LpZJ; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "delete.testid", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '252' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272647}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:16:02 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=hugtLApWSrqTszvd55z+goAm8dk1HawFnVvmwTPOAnWGhUsLsPRQc8QplK6Bd9LQ1XnWValVGyoh/lCBN/4K48GzcOEGLQq30HbhL4ElQ7CvWLojDsJo9PozOTUu; + Expires=Sun, 19 Jun 2022 01:16:02 GMT; Path=/ + - AWSALBCORS=hugtLApWSrqTszvd55z+goAm8dk1HawFnVvmwTPOAnWGhUsLsPRQc8QplK6Bd9LQ1XnWValVGyoh/lCBN/4K48GzcOEGLQq30HbhL4ElQ7CvWLojDsJo9PozOTUu; + Expires=Sun, 19 Jun 2022 01:16:02 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=8qbGKIX28VCMP5KnYi8XOsGaiNBI5QlGZEWNOwqTmbN71C1I; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272647","name":"delete.testid.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:16:03 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=1fyUJ2+5w6kwpLB4eTVCjBqnyyWfVk2xdbwK2hB6ik1fkNjp79gnXdsTNgYQp1XbV2MaKmIfy/uDrN+puKHdQDk81YoVm4C1k/Fbb7xZmS4Jjc+w7r+gNiz9xkYg; + Expires=Sun, 19 Jun 2022 01:16:02 GMT; Path=/ + - AWSALBCORS=1fyUJ2+5w6kwpLB4eTVCjBqnyyWfVk2xdbwK2hB6ik1fkNjp79gnXdsTNgYQp1XbV2MaKmIfy/uDrN+puKHdQDk81YoVm4C1k/Fbb7xZmS4Jjc+w7r+gNiz9xkYg; + Expires=Sun, 19 Jun 2022 01:16:02 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=GFEptqMW2FN%2CC1yVQDLSEEWiy1OkmfkcAUbQmHM3W1wTFXI2; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/delete/example.xyz/236272647 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:16:03 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=hZXId59DbjMnmCLbcG6ovLFu4vqJ2S3fbqxuIRDElHaZWbw4vjmG2qdIxXFW25T0bGOwkda3aahpJmIxanihC4yPKs6INa9iisGEBQIYjRSSGtstv73BErDdVt/f; + Expires=Sun, 19 Jun 2022 01:16:03 GMT; Path=/ + - AWSALBCORS=hZXId59DbjMnmCLbcG6ovLFu4vqJ2S3fbqxuIRDElHaZWbw4vjmG2qdIxXFW25T0bGOwkda3aahpJmIxanihC4yPKs6INa9iisGEBQIYjRSSGtstv73BErDdVt/f; + Expires=Sun, 19 Jun 2022 01:16:03 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=uQRPQn1n2vKHZhRIdSQ7OAg49oj6BtlZrafe1Ly7150JGEBj; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:16:04 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=RNweL34pjxIMi039aXvCOqaCCjni1IQBe5KOms7oTRbd6HVifZx8GVRmZlNcdEwlNG9nCXPcvcL/1rJHBJQyGMbTiuJRuHGzhx9hFo3l2H8e+7wnbYYLJ71upbzi; + Expires=Sun, 19 Jun 2022 01:16:04 GMT; Path=/ + - AWSALBCORS=RNweL34pjxIMi039aXvCOqaCCjni1IQBe5KOms7oTRbd6HVifZx8GVRmZlNcdEwlNG9nCXPcvcL/1rJHBJQyGMbTiuJRuHGzhx9hFo3l2H8e+7wnbYYLJ71upbzi; + Expires=Sun, 19 Jun 2022 01:16:04 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=2pbBL304SOXIUnf-Z86DXaciinCJGzdfJBDZQBSxJvKjx6iW; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml new file mode 100644 index 000000000..a338294bf --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml @@ -0,0 +1,415 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:17:56 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Wj+chPqRXMP7oQalcdpkOOJFGMcqBdgGx8saeL8BkOCRqiB1u6jpJVIHT2/j4bJBQVRk46Pg1Kv9v2fNmAA4dmhmMZm2GH/eJcVZMw/K9hTCThUbAdylbRDFmxEK; + Expires=Sun, 19 Jun 2022 01:17:55 GMT; Path=/ + - AWSALBCORS=Wj+chPqRXMP7oQalcdpkOOJFGMcqBdgGx8saeL8BkOCRqiB1u6jpJVIHT2/j4bJBQVRk46Pg1Kv9v2fNmAA4dmhmMZm2GH/eJcVZMw/K9hTCThUbAdylbRDFmxEK; + Expires=Sun, 19 Jun 2022 01:17:55 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=BQDAx00Bw6NcDVU8ZO-BMxXfSYHEFFsXf4xRyVVziVFjsiP4; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272659","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:17:56 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=yNzTreL9aoRitiInRH2d/cSNE7xZ1hi7gsylnYbCLP1rn2DLDB7lWLu9MCpspqz+fFh4oSIttpJ3GE5rSuoJcBTw87k6mEoC2TVzdY6i/1UZd7+99br+ekUaNH8Z; + Expires=Sun, 19 Jun 2022 01:17:56 GMT; Path=/ + - AWSALBCORS=yNzTreL9aoRitiInRH2d/cSNE7xZ1hi7gsylnYbCLP1rn2DLDB7lWLu9MCpspqz+fFh4oSIttpJ3GE5rSuoJcBTw87k6mEoC2TVzdY6i/1UZd7+99br+ekUaNH8Z; + Expires=Sun, 19 Jun 2022 01:17:56 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=6TDI211d99rIYW32sdp%2Ch3CuRT9lNWLlsoErj-i8j6EXCUM1; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272659","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:17:57 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=NcOXH1rlZPRmCg4p3bSvVbqX99EgpFlaKNwuqvpxoeoYro7Wip5Ds0NXMFV4hmXO3iXx2y5rd0sSRDnID+AOHcK562bC4fA7I9+wGnbx9/gVqJhmrFjEXd42Qy8U; + Expires=Sun, 19 Jun 2022 01:17:57 GMT; Path=/ + - AWSALBCORS=NcOXH1rlZPRmCg4p3bSvVbqX99EgpFlaKNwuqvpxoeoYro7Wip5Ds0NXMFV4hmXO3iXx2y5rd0sSRDnID+AOHcK562bC4fA7I9+wGnbx9/gVqJhmrFjEXd42Qy8U; + Expires=Sun, 19 Jun 2022 01:17:57 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=WJMEf0zcajnWDsTPUmTrT5rsy7WqXkEHuhyGQKQDJJxzlAtk; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272659","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:17:58 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=cn8enJe28ws6y9J41Yfv5QspImDmoYW02Zws5tBf2OC6wTmSHWTIEMFjauU3b6jSRkljGMVgvJGdEiAEiN3ZcFc6RTMkWF19EeeNzW0D2G4b/GbjgO8nCNdHHOwV; + Expires=Sun, 19 Jun 2022 01:17:57 GMT; Path=/ + - AWSALBCORS=cn8enJe28ws6y9J41Yfv5QspImDmoYW02Zws5tBf2OC6wTmSHWTIEMFjauU3b6jSRkljGMVgvJGdEiAEiN3ZcFc6RTMkWF19EeeNzW0D2G4b/GbjgO8nCNdHHOwV; + Expires=Sun, 19 Jun 2022 01:17:57 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=ReeGGb11puyYEyHoh0jhwBSTWQS5LPOXlntBU6ST9xMLlFGX; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272659","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:17:58 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=3H73AoWz13SgPyO1lUsmQ8+6+9jGglh6Elq0U0tx2wpIGehP5ts8VHm9AC+OGRLigLs6P3y4zQ3HGsWjbAPoUMQ9lRa0QFh4dwuXP7MYgHMRW5gDVa+7/03CUG0t; + Expires=Sun, 19 Jun 2022 01:17:58 GMT; Path=/ + - AWSALBCORS=3H73AoWz13SgPyO1lUsmQ8+6+9jGglh6Elq0U0tx2wpIGehP5ts8VHm9AC+OGRLigLs6P3y4zQ3HGsWjbAPoUMQ9lRa0QFh4dwuXP7MYgHMRW5gDVa+7/03CUG0t; + Expires=Sun, 19 Jun 2022 01:17:58 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=nyqlfE7hx8OcbaJZd6cQG%2CXYuS3wRZUBRpOnSkrJcHQ4Dm2W; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/delete/example.xyz/236272659 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:17:59 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Oa5se5EBOIdgIkBOvNK8uSl2Q5+jIDb6/mhVspw6FwvmbGcQEw1JyH7mUf0uGCJooqfbOD+69zroesm2LTE6jwzYiURKsuoYVJBuCkmsFBBV91Rmfr8GmuUaX/ye; + Expires=Sun, 19 Jun 2022 01:17:59 GMT; Path=/ + - AWSALBCORS=Oa5se5EBOIdgIkBOvNK8uSl2Q5+jIDb6/mhVspw6FwvmbGcQEw1JyH7mUf0uGCJooqfbOD+69zroesm2LTE6jwzYiURKsuoYVJBuCkmsFBBV91Rmfr8GmuUaX/ye; + Expires=Sun, 19 Jun 2022 01:17:59 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=CJEMtWUjBuhp%2ClCBYx55GncH9zVDAWL7xHqStRK-E9um10pT; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:00 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=PPXxdX1tAxmT9/VrKVyupZYqVGqAMQqf3c4bj5p1SbOjWFm+6pqtGk9zZ7pn8zQZcTclFwC/VtW+8Kilyl2BryjIYvEzH7jZ7jlYZbjDmj/sDhMR7d7Lo48+pCy4; + Expires=Sun, 19 Jun 2022 01:18:00 GMT; Path=/ + - AWSALBCORS=PPXxdX1tAxmT9/VrKVyupZYqVGqAMQqf3c4bj5p1SbOjWFm+6pqtGk9zZ7pn8zQZcTclFwC/VtW+8Kilyl2BryjIYvEzH7jZ7jlYZbjDmj/sDhMR7d7Lo48+pCy4; + Expires=Sun, 19 Jun 2022 01:18:00 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=RqJNwRP-rMz2PSGprolOu9ds6gjCcCZAq1F0bSlW97gs4s9c; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_name_remove_all.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_name_remove_all.yaml new file mode 100644 index 000000000..7135a2a31 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_name_remove_all.yaml @@ -0,0 +1,534 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:06 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=DzvSQxhTU0a2+IvCufaaybfvGiCl760w9Z/q3NYny4H3OUAoDlTvvt8uSAcE0mzdZ7rgWON/VAVOy9WcFveGEgvSQpFZ/K4MkBhBZKtB16uT0Q8VcjEBV60tiDZU; + Expires=Sun, 19 Jun 2022 01:19:06 GMT; Path=/ + - AWSALBCORS=DzvSQxhTU0a2+IvCufaaybfvGiCl760w9Z/q3NYny4H3OUAoDlTvvt8uSAcE0mzdZ7rgWON/VAVOy9WcFveGEgvSQpFZ/K4MkBhBZKtB16uT0Q8VcjEBV60tiDZU; + Expires=Sun, 19 Jun 2022 01:19:06 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=O8sIxbUJgywDXeh4yTJ1lu0abQfOercRbegMDuNVNU4oylaj; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"updated.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272951","name":"updated.testfull.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:07 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=SfEF80aUy4ExUQbiZ3GTfxGZqH97qIQEjjcC3XvzFi3+8MKnTc52CfslzjXmHYjkcYfGQ7SwbeWiwy50yNgnpDFaAh6RynpWPfIgnG1ZxOlYUj/V+6Z+AkAweg98; + Expires=Sun, 19 Jun 2022 01:19:07 GMT; Path=/ + - AWSALBCORS=SfEF80aUy4ExUQbiZ3GTfxGZqH97qIQEjjcC3XvzFi3+8MKnTc52CfslzjXmHYjkcYfGQ7SwbeWiwy50yNgnpDFaAh6RynpWPfIgnG1ZxOlYUj/V+6Z+AkAweg98; + Expires=Sun, 19 Jun 2022 01:19:07 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=dhOZqxjyt8-L8T0JJr5BKIq2i5yoR4PxFjnHsMLuAAy-xPoe; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"updated.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272951","name":"updated.testfull.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:08 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=nwlmCZyrToBDdwye04b73Ons9EEgB7X7aNccIzVFM0TySzfltGs8NqGJiChbIigQnEQY4TP9uPXFaqCn7V1iIGn31R4E/wNv41qSJeaIstQ81nK5CakIcoz8riFe; + Expires=Sun, 19 Jun 2022 01:19:07 GMT; Path=/ + - AWSALBCORS=nwlmCZyrToBDdwye04b73Ons9EEgB7X7aNccIzVFM0TySzfltGs8NqGJiChbIigQnEQY4TP9uPXFaqCn7V1iIGn31R4E/wNv41qSJeaIstQ81nK5CakIcoz8riFe; + Expires=Sun, 19 Jun 2022 01:19:07 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=u9jL5Zv0EB4usVP4TMwujoO%2CwDpjC2eKEYSLP7od13Gb6dmD; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"updated.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272951","name":"updated.testfull.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:08 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=21CWQMueMA2bpHhwZnTMIcWWQ/haecHo8YHq0OrB/1ZbBJC6ErG5DqUCMfl7PvL1Pclhh0/xyianLE2T3gJih/w/04Vxec8XOhcTXlvzZ2uO2WkeMWcohxX38ZTE; + Expires=Sun, 19 Jun 2022 01:19:08 GMT; Path=/ + - AWSALBCORS=21CWQMueMA2bpHhwZnTMIcWWQ/haecHo8YHq0OrB/1ZbBJC6ErG5DqUCMfl7PvL1Pclhh0/xyianLE2T3gJih/w/04Vxec8XOhcTXlvzZ2uO2WkeMWcohxX38ZTE; + Expires=Sun, 19 Jun 2022 01:19:08 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=xf1fWhqPK7KGvaFHNaWLu2WpE-hx4ZB%2C4IwZz2AThNeRGCc8; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken2", "name": "_acme-challenge.deleterecordset", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '271' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272981}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:09 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Civ4lryIYxoCBalgLnxscGnSg9daYVwixqEHq+vWff2P/jeiXYRx+fhrpcvsPdtP45IQk6slKqSAmjxma8fK5Vbar+CK+Z+MUb9aEVLZK1uLdM2AVeJjgC1unQIq; + Expires=Sun, 19 Jun 2022 01:19:09 GMT; Path=/ + - AWSALBCORS=Civ4lryIYxoCBalgLnxscGnSg9daYVwixqEHq+vWff2P/jeiXYRx+fhrpcvsPdtP45IQk6slKqSAmjxma8fK5Vbar+CK+Z+MUb9aEVLZK1uLdM2AVeJjgC1unQIq; + Expires=Sun, 19 Jun 2022 01:19:09 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=%2CbMwRJ5tDUqSeLG4L84bpdcOFnq185tGH-t12ylvLrMYG5Yq; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"updated.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272951","name":"updated.testfull.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272981","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:10 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=fRTW4s/EO4EnRvSYgml8R7W3URnK/Qvp+vMXTRkFkJ8RQ/ORRDDIJXJ5Vm3olElhA+fr2QPdlxeIAaEAx7901AyVt33iBiVZ3jyFF/Nyt7Vdh0U8zbJKKtjqf1pv; + Expires=Sun, 19 Jun 2022 01:19:09 GMT; Path=/ + - AWSALBCORS=fRTW4s/EO4EnRvSYgml8R7W3URnK/Qvp+vMXTRkFkJ8RQ/ORRDDIJXJ5Vm3olElhA+fr2QPdlxeIAaEAx7901AyVt33iBiVZ3jyFF/Nyt7Vdh0U8zbJKKtjqf1pv; + Expires=Sun, 19 Jun 2022 01:19:09 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=D4Lsz7K%2C45EkOVsYWilUBocSM9FNq3anhB0G3IOqsovr3e6m; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/delete/example.xyz/236272672 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:11 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=BBzK67hCjjYrtfMlV9dDnEFsmdji8M8x//1BJ7A5w9LMRaitN0rlmDip//Az1gC8H94pfOJd7Rym+/dkSWJBkVfy5XzdHc3jq+gcAqkP53KDZsN+3+AJD1/ZWKf1; + Expires=Sun, 19 Jun 2022 01:19:10 GMT; Path=/ + - AWSALBCORS=BBzK67hCjjYrtfMlV9dDnEFsmdji8M8x//1BJ7A5w9LMRaitN0rlmDip//Az1gC8H94pfOJd7Rym+/dkSWJBkVfy5XzdHc3jq+gcAqkP53KDZsN+3+AJD1/ZWKf1; + Expires=Sun, 19 Jun 2022 01:19:10 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=9zGtgQo1v-xmFk6tvdq%2CF8u1NXVhG95m57Xhu-urSwIoiExA; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/delete/example.xyz/236272981 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:11 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=EOi3ihmb7WQ4HNwZSiN3QepWRbxTz2keaLA1JRHm+ELu+uKYuKItLiWM0J9QY99ihyfj2Ae4ZxP3u8X+Ku0Fu/15eXk0nDWa5qk5bGXolOjxNfKatNMzPlO78xc8; + Expires=Sun, 19 Jun 2022 01:19:11 GMT; Path=/ + - AWSALBCORS=EOi3ihmb7WQ4HNwZSiN3QepWRbxTz2keaLA1JRHm+ELu+uKYuKItLiWM0J9QY99ihyfj2Ae4ZxP3u8X+Ku0Fu/15eXk0nDWa5qk5bGXolOjxNfKatNMzPlO78xc8; + Expires=Sun, 19 Jun 2022 01:19:11 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=QloyUO6ihU7oXcI4gaomnaBtGLx5CT%2C8zYWSMw21NVmd0AK6; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"updated.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272951","name":"updated.testfull.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:19:12 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=MUS9TJk47qWIMSZvpn5/PqitgPhmSCiof6cJkHL0Vyi3mqgncmFku0cJ6nXRuSoxxz3viqiRxDiSE9Roi0z7VE1jgKDo6hPbl/VpfkH+mqgnsVv4ZJz+QDALAksO; + Expires=Sun, 19 Jun 2022 01:19:12 GMT; Path=/ + - AWSALBCORS=MUS9TJk47qWIMSZvpn5/PqitgPhmSCiof6cJkHL0Vyi3mqgncmFku0cJ6nXRuSoxxz3viqiRxDiSE9Roi0z7VE1jgKDo6hPbl/VpfkH+mqgnsVv4ZJz+QDALAksO; + Expires=Sun, 19 Jun 2022 01:19:12 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=MEhlX3vXpKAFaiBHubGRuKs25TF1VxwiR0WpERlzajvDN5MR; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_after_setting_ttl.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_after_setting_ttl.yaml new file mode 100644 index 000000000..1fe2a49f0 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_after_setting_ttl.yaml @@ -0,0 +1,298 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:01 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=LEfGuPsJhdkbfugDAw9l2WYQLiKsUzMJKgvJLkJKiuaZXNK/GB71ECLyl7B7fVmK+ma7v0w1PPQUBo1dsEnfYPZKTAU3lhRb8y0+7XMr1TFGlen2fN5/NK3x0ktx; + Expires=Sun, 19 Jun 2022 01:18:01 GMT; Path=/ + - AWSALBCORS=LEfGuPsJhdkbfugDAw9l2WYQLiKsUzMJKgvJLkJKiuaZXNK/GB71ECLyl7B7fVmK+ma7v0w1PPQUBo1dsEnfYPZKTAU3lhRb8y0+7XMr1TFGlen2fN5/NK3x0ktx; + Expires=Sun, 19 Jun 2022 01:18:01 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=8yrT%2CV42vsCCM9zvY3dPQuwDlaKBK%2CNarmyH%2C19jsfIhNzy2; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:02 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=htXcRncVH8nReE70rBbCtaI7g5KyEU3zJjbHPnfVo4CDVW7osH/vzUxQ0BH013r+h6p2lu8P2YG1S7fE9vtpuE9U5XcFcUAbmY5L+QbQQSZPuJbplbIuK4PHTQqS; + Expires=Sun, 19 Jun 2022 01:18:02 GMT; Path=/ + - AWSALBCORS=htXcRncVH8nReE70rBbCtaI7g5KyEU3zJjbHPnfVo4CDVW7osH/vzUxQ0BH013r+h6p2lu8P2YG1S7fE9vtpuE9U5XcFcUAbmY5L+QbQQSZPuJbplbIuK4PHTQqS; + Expires=Sun, 19 Jun 2022 01:18:02 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=GPFRQ39o6DBVppWNVK-UOh%2C6aNroWIyUcyFWZKhDpo0AaDxr; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:03 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=DxsuUZsYObj/hjFncXvNVaWUW0qQNiPuG/vIaf4/knarXM6XGQ76zdHdJ5WXA7l2cARuHxDO9iKvtoMcBIyHQCCqvlSvHnp51pE+X08Uz50ULfd0m+6/qLQ8rqJ0; + Expires=Sun, 19 Jun 2022 01:18:03 GMT; Path=/ + - AWSALBCORS=DxsuUZsYObj/hjFncXvNVaWUW0qQNiPuG/vIaf4/knarXM6XGQ76zdHdJ5WXA7l2cARuHxDO9iKvtoMcBIyHQCCqvlSvHnp51pE+X08Uz50ULfd0m+6/qLQ8rqJ0; + Expires=Sun, 19 Jun 2022 01:18:03 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=yva0mG7w01i0yHgPyQtuImOnPTRNMVQoAg8BkwYVmfvEQ%2Clj; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "ttlshouldbe3600", "name": "ttl.fqdn", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272889}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:04 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=10nafRdEC+mS5MiOgnOwbaFrdWdyUqPbxTaW0U1jYxKw9rIKaKnU/W8YuvAfkeoaPTEM+VBPjWjXbiC6T0W5mzsMeQDDLibXCAR2oLYfmNMxRVvmGR77cynF3Jpc; + Expires=Sun, 19 Jun 2022 01:18:03 GMT; Path=/ + - AWSALBCORS=10nafRdEC+mS5MiOgnOwbaFrdWdyUqPbxTaW0U1jYxKw9rIKaKnU/W8YuvAfkeoaPTEM+VBPjWjXbiC6T0W5mzsMeQDDLibXCAR2oLYfmNMxRVvmGR77cynF3Jpc; + Expires=Sun, 19 Jun 2022 01:18:03 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=tGXGe6FXywR8CnGJ6jvJhDKyin426ZMU4aHXk9S%2CUyo%2CCjpm; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:04 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=qTyVMBG9JjTfKJWu988oThOu4h/96Quszre9KMXEQjZSXIv4+kT9JfFf+YgPmw+L2/6pWLbwWNoNmo0XdsynSe/7Uiffmpbv9Znpw9e1Bk/cXkxGzV0+aizXatGU; + Expires=Sun, 19 Jun 2022 01:18:04 GMT; Path=/ + - AWSALBCORS=qTyVMBG9JjTfKJWu988oThOu4h/96Quszre9KMXEQjZSXIv4+kT9JfFf+YgPmw+L2/6pWLbwWNoNmo0XdsynSe/7Uiffmpbv9Znpw9e1Bk/cXkxGzV0+aizXatGU; + Expires=Sun, 19 Jun 2022 01:18:04 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=vfpcYD4tHBSyP%2CgPs8TbUC5%2C1js13OuFmvVaWDB0Z2Txue1t; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_should_handle_record_sets.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_should_handle_record_sets.yaml new file mode 100644 index 000000000..d1faf5e74 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_should_handle_record_sets.yaml @@ -0,0 +1,417 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:05 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=PpEuPX2ROJvlvCrUYHcwJ9RiLR/4F8b+zr0jDo/FxL23tTa3uRk9wNnxPRxZsGqWUg/mxJcYkzRliXWDFeRZdLbOCmE4M7tB6hvlL8v1DiyihN0VYx805V/7C6gR; + Expires=Sun, 19 Jun 2022 01:18:05 GMT; Path=/ + - AWSALBCORS=PpEuPX2ROJvlvCrUYHcwJ9RiLR/4F8b+zr0jDo/FxL23tTa3uRk9wNnxPRxZsGqWUg/mxJcYkzRliXWDFeRZdLbOCmE4M7tB6hvlL8v1DiyihN0VYx805V/7C6gR; + Expires=Sun, 19 Jun 2022 01:18:05 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=RQcQNowsBY4EHz0XW4bZR19isC6hTdPzHSbS3f%2CTmngmn4bw; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:06 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=qIFvODsY8ucW2Zfj1gWaPgBL0p4KOlZlP3K2ydhcPTesJt9V0shy15h+DxjcIdfwrFYL7P9oZjBrLiXxLmrK2rMI1FkICF0BLd0P9LXNAOeEXQJQHfvHBOlOYqj6; + Expires=Sun, 19 Jun 2022 01:18:05 GMT; Path=/ + - AWSALBCORS=qIFvODsY8ucW2Zfj1gWaPgBL0p4KOlZlP3K2ydhcPTesJt9V0shy15h+DxjcIdfwrFYL7P9oZjBrLiXxLmrK2rMI1FkICF0BLd0P9LXNAOeEXQJQHfvHBOlOYqj6; + Expires=Sun, 19 Jun 2022 01:18:05 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=gp8lBzO8Qzlz7NmrzNkx1ud1vE6ebNlhEYnfWFo5eJ32qnsf; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:06 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=P4lyNgxv6NjzT3beNXmI1ScFMg9qvubfltBA0rWrYjKodiVpiilMCMubTbJ/7FN8xVC8H2mWXXIGSGA0MrGoSak8ihe+6DNDtOQYJfMsXHmb2f27hym268amSt/N; + Expires=Sun, 19 Jun 2022 01:18:06 GMT; Path=/ + - AWSALBCORS=P4lyNgxv6NjzT3beNXmI1ScFMg9qvubfltBA0rWrYjKodiVpiilMCMubTbJ/7FN8xVC8H2mWXXIGSGA0MrGoSak8ihe+6DNDtOQYJfMsXHmb2f27hym268amSt/N; + Expires=Sun, 19 Jun 2022 01:18:06 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=jcv8oz1a4vOZiWBcRyO73HS37BoMM2bhgbE4rxfqGMo4zOOP; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken1", "name": "_acme-challenge.listrecordset", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '269' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272899}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:07 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=BWU5v/fzlR7XLIvPULyadEDTbBt6T9gbq/Xn2a/jN3OQGcquV4XB+HBeca4VZLZNF4CR/ftbh4TEITLa+LtOLmYNO8zZa9le9VBSu2lPQwLffoBZz36ZbnarvHPl; + Expires=Sun, 19 Jun 2022 01:18:07 GMT; Path=/ + - AWSALBCORS=BWU5v/fzlR7XLIvPULyadEDTbBt6T9gbq/Xn2a/jN3OQGcquV4XB+HBeca4VZLZNF4CR/ftbh4TEITLa+LtOLmYNO8zZa9le9VBSu2lPQwLffoBZz36ZbnarvHPl; + Expires=Sun, 19 Jun 2022 01:18:07 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=iDqmdJEXlHKBCteP1K-upeXP3Ogbsm9u8J3un82wkrWKfnu5; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:08 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=pqnZVBRfEzRNr8/OA1FaH+/nLOajeIUkvmj/cxUvX76HvxHZ0P3wUQuyj2is4voBONOV4QJEuldDhDQ9NvbVAVKfGc2RguSuGmrqy2bXfXAzoGbYa/17AL+xLg+P; + Expires=Sun, 19 Jun 2022 01:18:07 GMT; Path=/ + - AWSALBCORS=pqnZVBRfEzRNr8/OA1FaH+/nLOajeIUkvmj/cxUvX76HvxHZ0P3wUQuyj2is4voBONOV4QJEuldDhDQ9NvbVAVKfGc2RguSuGmrqy2bXfXAzoGbYa/17AL+xLg+P; + Expires=Sun, 19 Jun 2022 01:18:07 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=TaT3ewHeQ7G5pRYnZoWrzoTBgPPFHIDyewjmzjftdhQVh1DM; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken2", "name": "_acme-challenge.listrecordset", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '269' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272903}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:09 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=IcGHoPjv+R+GpH/AMnaOCaWDPerdM6Naz9oYZ8WSiRxC9XvChlyOkDszN/0hxZL6Vxl3N5JxlqQtgihvTcG0LRp0jKnxn1kBpXBOXazhhFIgpRYyJHIMqHhvxEOq; + Expires=Sun, 19 Jun 2022 01:18:08 GMT; Path=/ + - AWSALBCORS=IcGHoPjv+R+GpH/AMnaOCaWDPerdM6Naz9oYZ8WSiRxC9XvChlyOkDszN/0hxZL6Vxl3N5JxlqQtgihvTcG0LRp0jKnxn1kBpXBOXazhhFIgpRYyJHIMqHhvxEOq; + Expires=Sun, 19 Jun 2022 01:18:08 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=T1bUNFRUuYKBbgtN0vOWJwQUas-2-HsghjXZPF8o1KGlF2SM; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:09 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=RZjnd1TVlRfWG3hR/qJ56lmmpahOB8HNwsvyYMiv+P3RRUQB1DyghYHsP3pLKA5nIM76rpbY4BWAVQv0JqbfNQC0117PTDftaOFVlkrYZRbpocIIyhDr5bDCC+0F; + Expires=Sun, 19 Jun 2022 01:18:09 GMT; Path=/ + - AWSALBCORS=RZjnd1TVlRfWG3hR/qJ56lmmpahOB8HNwsvyYMiv+P3RRUQB1DyghYHsP3pLKA5nIM76rpbY4BWAVQv0JqbfNQC0117PTDftaOFVlkrYZRbpocIIyhDr5bDCC+0F; + Expires=Sun, 19 Jun 2022 01:18:09 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=hXkb70VDndbBvPcuht2QrxXaSySE1U8gWsK7Q6qZ3HAsPKiB; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml new file mode 100644 index 000000000..d1688f6b0 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml @@ -0,0 +1,298 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:10 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Xbao7/RhC6jhZcSimoLDRZredssi7Rf4EnJUV1ZBfktCrdj+tHfDK4AZb5mhIMCRY3YIA8IUjIolMXwuC/yjgQZAGso+zQIGiOsbIi6DbpvLz1lClsrGhg4KCQNf; + Expires=Sun, 19 Jun 2022 01:18:10 GMT; Path=/ + - AWSALBCORS=Xbao7/RhC6jhZcSimoLDRZredssi7Rf4EnJUV1ZBfktCrdj+tHfDK4AZb5mhIMCRY3YIA8IUjIolMXwuC/yjgQZAGso+zQIGiOsbIi6DbpvLz1lClsrGhg4KCQNf; + Expires=Sun, 19 Jun 2022 01:18:10 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=PQMKzNlaCfKgDoyDDjOvimGtjB3btGqVwEDMihSFtNXwOl8w; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:11 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=phwhVp0Az8M2mpOkpFpSsT5PkOFOzC176/sA+dtjtn+JBIYJizabPR7uJRPJM6MNRuDIpVpJzNPHJgfvgm4CleWgnzXOkUwe6eVxGsl5afCrpCaHY9ja6YK0dQur; + Expires=Sun, 19 Jun 2022 01:18:10 GMT; Path=/ + - AWSALBCORS=phwhVp0Az8M2mpOkpFpSsT5PkOFOzC176/sA+dtjtn+JBIYJizabPR7uJRPJM6MNRuDIpVpJzNPHJgfvgm4CleWgnzXOkUwe6eVxGsl5afCrpCaHY9ja6YK0dQur; + Expires=Sun, 19 Jun 2022 01:18:10 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=XJONjGqJGbGIGyyNfs9KXIDlHquKpbKV155WHQWBsnVcHRJG; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:11 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ofa6ezkvuKKy8ajBmN565uSRxAk4+y5HAq2cDqmwinI2x4+gU95jx+1rEtblXny3b14i0+Ot5VNB+CXJ+8ZHx98W6cAVG8vRxtglgxVezPXiDr67e6l7wsqlHTvl; + Expires=Sun, 19 Jun 2022 01:18:11 GMT; Path=/ + - AWSALBCORS=ofa6ezkvuKKy8ajBmN565uSRxAk4+y5HAq2cDqmwinI2x4+gU95jx+1rEtblXny3b14i0+Ot5VNB+CXJ+8ZHx98W6cAVG8vRxtglgxVezPXiDr67e6l7wsqlHTvl; + Expires=Sun, 19 Jun 2022 01:18:11 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=VNh2D%2CxeJudOPqCRDkt9yDpeDm59S%2CfR7As3auLtFIWUEV%2Cg; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "random.fqdntest", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '254' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272907}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:12 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Y4xEDgFbeUEOLfVoxCsvhkQZnwhcit/QsMj/iEug2T6yzUh70tkyuXoUHQfi7yXnWkMOiF0dK/F4vf46eBqaXK9lVVlP5wryLHuC7gqHUib8GjBom2xxru71665t; + Expires=Sun, 19 Jun 2022 01:18:12 GMT; Path=/ + - AWSALBCORS=Y4xEDgFbeUEOLfVoxCsvhkQZnwhcit/QsMj/iEug2T6yzUh70tkyuXoUHQfi7yXnWkMOiF0dK/F4vf46eBqaXK9lVVlP5wryLHuC7gqHUib8GjBom2xxru71665t; + Expires=Sun, 19 Jun 2022 01:18:12 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=zrQhdrpa0a1FKb-RGHuLO6pMppfjHOI9ephLvdQ1TSNIAibz; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:13 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=fXh9DBLzG+6tyuouzNkj4GaI2R8cmVirww2WSgj4KvebqMYDdzkValoB8PpfTSfNU0Ry/wbbcybXZg6Xd9+UGn1Tqqid+KBfb9P9Ws5nCs/EeelGNkCO6borak9b; + Expires=Sun, 19 Jun 2022 01:18:12 GMT; Path=/ + - AWSALBCORS=fXh9DBLzG+6tyuouzNkj4GaI2R8cmVirww2WSgj4KvebqMYDdzkValoB8PpfTSfNU0Ry/wbbcybXZg6Xd9+UGn1Tqqid+KBfb9P9Ws5nCs/EeelGNkCO6borak9b; + Expires=Sun, 19 Jun 2022 01:18:12 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=vvQ8j9msZGCJQOaI90udMdPiv0makQmM6U0%2Cw269I4CNRLVf; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml new file mode 100644 index 000000000..8a78c7123 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml @@ -0,0 +1,298 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:14 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ZRBrT1G3suFYr0Tlh7RjFRzJfIhycelKH7Uq13iZWb1jLhev+5BVYKpRc2MM3dYTlf1NzmDCxRFi8lHNagbY15OJ4yn3J0y3M4ZB9RLvyKj8jhzj0cPTLwps2ac/; + Expires=Sun, 19 Jun 2022 01:18:13 GMT; Path=/ + - AWSALBCORS=ZRBrT1G3suFYr0Tlh7RjFRzJfIhycelKH7Uq13iZWb1jLhev+5BVYKpRc2MM3dYTlf1NzmDCxRFi8lHNagbY15OJ4yn3J0y3M4ZB9RLvyKj8jhzj0cPTLwps2ac/; + Expires=Sun, 19 Jun 2022 01:18:13 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=duVerPOz53O5D56uOT2NqvqhbWth1S7sDopValC8By6VrmPV; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:14 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=C/klivKyFRCRvACH9Fq7PiMlBqEsIYHQw35nya/jkgOBubVlyKQrgxuljBld+rnBaUthBp7VdhX0DeDN/EdGZiMo/ac1sDO9sMJhmWxhNLZAHA3x1ffGj6XIo7ps; + Expires=Sun, 19 Jun 2022 01:18:14 GMT; Path=/ + - AWSALBCORS=C/klivKyFRCRvACH9Fq7PiMlBqEsIYHQw35nya/jkgOBubVlyKQrgxuljBld+rnBaUthBp7VdhX0DeDN/EdGZiMo/ac1sDO9sMJhmWxhNLZAHA3x1ffGj6XIo7ps; + Expires=Sun, 19 Jun 2022 01:18:14 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=BU81ezfe0w0c2nHHVrgyqOgrAKTYQkoqH9dUy2Lf2BTlhkOY; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:15 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=UHjhVJF84UtYXK1HAw/CK5pN55VEkmOjN77FZnSshN4RSPyfzpAS8lcY5uPNUndBljc2nnYOGGGk21dYrouX29yg9YCPoOzR2ZAAYwidDfUr5VfcUmKxuunoj84W; + Expires=Sun, 19 Jun 2022 01:18:15 GMT; Path=/ + - AWSALBCORS=UHjhVJF84UtYXK1HAw/CK5pN55VEkmOjN77FZnSshN4RSPyfzpAS8lcY5uPNUndBljc2nnYOGGGk21dYrouX29yg9YCPoOzR2ZAAYwidDfUr5VfcUmKxuunoj84W; + Expires=Sun, 19 Jun 2022 01:18:15 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=Sng0TDJNHOHclatL7US%2CRgmGQjPvPmSrm5Q2GK1W98pRMm1B; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "random.fulltest", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '254' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272913}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:16 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Om0F3uMyNgmjN2TTx2+22EyTriDipCfHOAq5AInyvBsO9MBYZ6F7d/6B2+0l+BE3s9u3COPZ+b4y9UPmAVxQRYLdvwD0R86mrf84UCYu7fTKHiO4WqkCnmDwE9kE; + Expires=Sun, 19 Jun 2022 01:18:15 GMT; Path=/ + - AWSALBCORS=Om0F3uMyNgmjN2TTx2+22EyTriDipCfHOAq5AInyvBsO9MBYZ6F7d/6B2+0l+BE3s9u3COPZ+b4y9UPmAVxQRYLdvwD0R86mrf84UCYu7fTKHiO4WqkCnmDwE9kE; + Expires=Sun, 19 Jun 2022 01:18:15 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=vmF3Tn3GsBLLTOKKdy64xmnHQxjU7Q8BiQbbNdTOHnQF%2CmQ%2C; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:17 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=2Y8gdbJd1VgHHkyZPkvY1TGopotseB8Vy1LFlsvuInGKZIPyk3BWyyt4PzeCQqFmlR68ZKiDZXTSl88tAO0iZBr+H3d/I5uzmXIPKYIVXOU8W8aSS3BVERYCsS3K; + Expires=Sun, 19 Jun 2022 01:18:16 GMT; Path=/ + - AWSALBCORS=2Y8gdbJd1VgHHkyZPkvY1TGopotseB8Vy1LFlsvuInGKZIPyk3BWyyt4PzeCQqFmlR68ZKiDZXTSl88tAO0iZBr+H3d/I5uzmXIPKYIVXOU8W8aSS3BVERYCsS3K; + Expires=Sun, 19 Jun 2022 01:18:16 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=hnrHQopLdjHmqr0PG2wrflilPpYp2S3awE0A8iqOaie7cBRA; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml new file mode 100644 index 000000000..1da64a032 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml @@ -0,0 +1,179 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:17 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ka7S/uOiuXwIbs/QQMKaTLLIY4iqBz7jGKBdQneSqpfiKwjR2ejo+wHQlsN40CrP/3afKZp+lOLZtPEK42X8X5A/NWb2JAAL3HaOqH85kIvw8GYmHQL7kJZMadCn; + Expires=Sun, 19 Jun 2022 01:18:17 GMT; Path=/ + - AWSALBCORS=ka7S/uOiuXwIbs/QQMKaTLLIY4iqBz7jGKBdQneSqpfiKwjR2ejo+wHQlsN40CrP/3afKZp+lOLZtPEK42X8X5A/NWb2JAAL3HaOqH85kIvw8GYmHQL7kJZMadCn; + Expires=Sun, 19 Jun 2022 01:18:17 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=IC1LFt%2CSMkNW0tHBQ%2CVPG4h9pp1DcauvljRZEjrUJKnyCf8f; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:18 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=txcMkqcjkBNrfIt0dXRT5BGCCh+6MqLYYjXypL2Cdqw4YWZ6dI3THtGAFRF4Hm6tvgOQhlZEZ1Nb04WbX1SBLL9ZqjyOVbu7iEC+4PqQvcg+RIQx7jSRKbQpp28U; + Expires=Sun, 19 Jun 2022 01:18:18 GMT; Path=/ + - AWSALBCORS=txcMkqcjkBNrfIt0dXRT5BGCCh+6MqLYYjXypL2Cdqw4YWZ6dI3THtGAFRF4Hm6tvgOQhlZEZ1Nb04WbX1SBLL9ZqjyOVbu7iEC+4PqQvcg+RIQx7jSRKbQpp28U; + Expires=Sun, 19 Jun 2022 01:18:18 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=kLc9UVQvZxw4vM8ehqAS1HfWARqgMboVkKvr3Jbv0RBc%2CLjz; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:19 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=3MHk3eITnE3qzsX2dRpUiAPGMVYhG3jtQAq848B/1FGGHkNbI73RJ3FEs8BdvDtderQ9s5qCdY0VjRSSu3936WZUDtGGW23Xkeu48Jo+1Df6fG5fmEsh7ren4oPC; + Expires=Sun, 19 Jun 2022 01:18:18 GMT; Path=/ + - AWSALBCORS=3MHk3eITnE3qzsX2dRpUiAPGMVYhG3jtQAq848B/1FGGHkNbI73RJ3FEs8BdvDtderQ9s5qCdY0VjRSSu3936WZUDtGGW23Xkeu48Jo+1Df6fG5fmEsh7ren4oPC; + Expires=Sun, 19 Jun 2022 01:18:18 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=qqA2ADoY5AYAR8O2k7sbrPIiufRG8%2C9tFC%2CM4yQvCXoxs%2CcD; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_name_filter_should_return_record.yaml new file mode 100644 index 000000000..e403d5b30 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_name_filter_should_return_record.yaml @@ -0,0 +1,298 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:19 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=6YVLoe6RO27Q3dpZWA8jXUC7ikLW6k8hvIizIKnm1mkC8abYc0aYR9c7MYnMuezpoTyRmEFU8e8MNiYSD/UxjddK/aMYvtgJpHs+dGkNsU6rTm1rl4mK3LB8YfwJ; + Expires=Sun, 19 Jun 2022 01:18:19 GMT; Path=/ + - AWSALBCORS=6YVLoe6RO27Q3dpZWA8jXUC7ikLW6k8hvIizIKnm1mkC8abYc0aYR9c7MYnMuezpoTyRmEFU8e8MNiYSD/UxjddK/aMYvtgJpHs+dGkNsU6rTm1rl4mK3LB8YfwJ; + Expires=Sun, 19 Jun 2022 01:18:19 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=SHOAzbCxue2tuuD7%2CzuzT3ANgb6BHWZheNp7jeFKa4CPYUjr; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:20 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=oHla/dxRH+uhYUUaYxEI4lcZcFy3uOnp/PJJE3mSGzONYYEyv+V/VktnOrAjmpW/1hcJhDp6yQVztVy8R/jBR4QJcmGUy5o6Ga5ZueDNwauXFsC1nPnvmVomJDWN; + Expires=Sun, 19 Jun 2022 01:18:20 GMT; Path=/ + - AWSALBCORS=oHla/dxRH+uhYUUaYxEI4lcZcFy3uOnp/PJJE3mSGzONYYEyv+V/VktnOrAjmpW/1hcJhDp6yQVztVy8R/jBR4QJcmGUy5o6Ga5ZueDNwauXFsC1nPnvmVomJDWN; + Expires=Sun, 19 Jun 2022 01:18:20 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=2XdrJRtJB81qe2c8RrOkmpoVdWHlx6jmSs9w8UFuzCo5xUn3; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:21 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=lTokUzS6ozhBEQHPZ4F1h4GmwWI119fGH+R/Tb+6vZZ65kb+aObIHfEpBCoXlbz0fgoZQhOBEa/W18mSty+IvCSuF+7rFYu7dpZbtbCc0vHCvrrY/9oEFmSxUwCC; + Expires=Sun, 19 Jun 2022 01:18:20 GMT; Path=/ + - AWSALBCORS=lTokUzS6ozhBEQHPZ4F1h4GmwWI119fGH+R/Tb+6vZZ65kb+aObIHfEpBCoXlbz0fgoZQhOBEa/W18mSty+IvCSuF+7rFYu7dpZbtbCc0vHCvrrY/9oEFmSxUwCC; + Expires=Sun, 19 Jun 2022 01:18:20 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=zRqRtPEurWsfG51qrnEcaa2zRfQAjKeU%2C-4Iuj6RttUrZt1x; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "random.test", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '250' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272921}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:22 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=mtaIMynuQiV/K+JcPs0+lSS5Kbqp/TFDt700DazH9ZyZFsATVDGK/ahYbk9nl5q60At9mySRB81JZqdhEa/9hYZFYHLGpB+V4PmyfzueWpqBr9Bc8bGyENf4/ySe; + Expires=Sun, 19 Jun 2022 01:18:21 GMT; Path=/ + - AWSALBCORS=mtaIMynuQiV/K+JcPs0+lSS5Kbqp/TFDt700DazH9ZyZFsATVDGK/ahYbk9nl5q60At9mySRB81JZqdhEa/9hYZFYHLGpB+V4PmyfzueWpqBr9Bc8bGyENf4/ySe; + Expires=Sun, 19 Jun 2022 01:18:21 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=V%2CxHeqVHxfQa56i80zqqQKdVLZpyFGPz04Ufuv1xCj5k6mam; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:23 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=nlD/bakxHr43iial4IQqOJaxnYMo6R9D8j/zoIeI6BTufSajWLS3MapVmTgNWoWKGE04QI7PX48d9zpNgjdVbzzrP8JNxxB8952nneNvrq8mooXnnchPMEm/G4co; + Expires=Sun, 19 Jun 2022 01:18:22 GMT; Path=/ + - AWSALBCORS=nlD/bakxHr43iial4IQqOJaxnYMo6R9D8j/zoIeI6BTufSajWLS3MapVmTgNWoWKGE04QI7PX48d9zpNgjdVbzzrP8JNxxB8952nneNvrq8mooXnnchPMEm/G4co; + Expires=Sun, 19 Jun 2022 01:18:22 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=Bwc%2CNaiBYDvpSRDqunGFVf6t-3NrVv1uwcj-0tqAuLijyPqF; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_no_arguments_should_list_all.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_no_arguments_should_list_all.yaml new file mode 100644 index 000000000..9bc3aacb0 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_list_records_with_no_arguments_should_list_all.yaml @@ -0,0 +1,179 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:23 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=hlCMjTFljTkbUn7qPI0o/3eEz+K7lAcW3UMGwjiX8Nc6JgHQUTRghbmhP/LDnBtZd1S1iXhIaRCeBRlUh+DnCuFRbWH0P/Z4lGZFQ3/j9StRbbYNCTcTY7P84PwJ; + Expires=Sun, 19 Jun 2022 01:18:23 GMT; Path=/ + - AWSALBCORS=hlCMjTFljTkbUn7qPI0o/3eEz+K7lAcW3UMGwjiX8Nc6JgHQUTRghbmhP/LDnBtZd1S1iXhIaRCeBRlUh+DnCuFRbWH0P/Z4lGZFQ3/j9StRbbYNCTcTY7P84PwJ; + Expires=Sun, 19 Jun 2022 01:18:23 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=Phj%2CLZbX7%2CaNuJdEnMGjgLcTyeY5HWFjMpeSQu2OlRhLDqZx; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:24 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=wORuY9FQCv8RP2IpM4aqpCVcLR4EFCJ+M9dfH/5Pe20rPeiRRLlWjpBq3JEJKgyElw0i7Swv5/LqtMA8o155GRX3o1I254H0mGhcpmkfrILeZV+nUlp/C/Y+cZdS; + Expires=Sun, 19 Jun 2022 01:18:24 GMT; Path=/ + - AWSALBCORS=wORuY9FQCv8RP2IpM4aqpCVcLR4EFCJ+M9dfH/5Pe20rPeiRRLlWjpBq3JEJKgyElw0i7Swv5/LqtMA8o155GRX3o1I254H0mGhcpmkfrILeZV+nUlp/C/Y+cZdS; + Expires=Sun, 19 Jun 2022 01:18:24 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=4ysJDTWd7kpyLGfxcyMVb4%2CLJ%2CecmLIr8FfQCkUXRTBxKhU7; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:25 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=OSdNfqF/d6rN6jkT6iaaM6ItZR+rj3fyZyvnChNNUcevTQ8jLJmxDlFX2Las9ryyoQI17mOKX6w+dfQ2hpquLrfG6W29HdfbWjSoJ7mGe2w+squoeaxnn16wSI+y; + Expires=Sun, 19 Jun 2022 01:18:25 GMT; Path=/ + - AWSALBCORS=OSdNfqF/d6rN6jkT6iaaM6ItZR+rj3fyZyvnChNNUcevTQ8jLJmxDlFX2Las9ryyoQI17mOKX6w+dfQ2hpquLrfG6W29HdfbWjSoJ7mGe2w+squoeaxnn16wSI+y; + Expires=Sun, 19 Jun 2022 01:18:25 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=fHrjnfXnAL6jB8MvLSZpxzQ5vRQ6NcPq9vYCGZHdztcSrPbk; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_should_modify_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_should_modify_record.yaml new file mode 100644 index 000000000..7129d71e6 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_should_modify_record.yaml @@ -0,0 +1,358 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:26 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=tAQ4NZQH33j34UG7bqf+eFKGKzBmkVGEpsslozxQI5xa9MJ/GizgN8Oj8/Ft1Vb6sOVId1+6vka6HEu2EvGarkBVNdXIe2wPhF/v+PyzgOK0kBzNhUHjg1Z2abFk; + Expires=Sun, 19 Jun 2022 01:18:26 GMT; Path=/ + - AWSALBCORS=tAQ4NZQH33j34UG7bqf+eFKGKzBmkVGEpsslozxQI5xa9MJ/GizgN8Oj8/Ft1Vb6sOVId1+6vka6HEu2EvGarkBVNdXIe2wPhF/v+PyzgOK0kBzNhUHjg1Z2abFk; + Expires=Sun, 19 Jun 2022 01:18:26 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=PQe69QGPGVT5Xf5i2bNn7ftKlSGQkFhhycGXW0xVWxJKq2c9; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:27 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=LB6g4/SeaQcDv7noYbyaCpazEx4nb7afO90I8t5qq0HTRQG4bicInOECRLrO9NO926KV9wv/YoA0V8ZCPiNt3h2qMkqXbv8XZeXbaVF4TrO/yGzAMWL6AfHDwtJZ; + Expires=Sun, 19 Jun 2022 01:18:26 GMT; Path=/ + - AWSALBCORS=LB6g4/SeaQcDv7noYbyaCpazEx4nb7afO90I8t5qq0HTRQG4bicInOECRLrO9NO926KV9wv/YoA0V8ZCPiNt3h2qMkqXbv8XZeXbaVF4TrO/yGzAMWL6AfHDwtJZ; + Expires=Sun, 19 Jun 2022 01:18:26 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=wSQXPaJlXqKPAH%2CzMnaOI8%2C%2CcyjN7NRnMWP7gMzIW4S07Bbt; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:28 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=zquZbEn/+Cn/R/ydb0AkCd0qsUn2mOLnXM306gAUgXhQAmlN47Fcc5e1QKmAt8unlWbuyupMBj8EfdI+UOn+qi1dOP3ukQTeZrFNdxN2yVpQIwR1UhftuG7JDJDM; + Expires=Sun, 19 Jun 2022 01:18:27 GMT; Path=/ + - AWSALBCORS=zquZbEn/+Cn/R/ydb0AkCd0qsUn2mOLnXM306gAUgXhQAmlN47Fcc5e1QKmAt8unlWbuyupMBj8EfdI+UOn+qi1dOP3ukQTeZrFNdxN2yVpQIwR1UhftuG7JDJDM; + Expires=Sun, 19 Jun 2022 01:18:27 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=mqqR24agiKKoEpo8EmywccVFwTY%2CA8EmDLHunlcczAMgYjjM; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "orig.test", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '248' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272930}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:28 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=R6dRann16p+H1UxDeBIyoy3YJ9b8/Tbfm/NmBBkxk/Py+6nRFLMQdOHpc2JFEEQh1x/u9NLzmIH27husQGM1M67O1kwBaomI10a4LfrKkclJ0wifK19K0hTO8xE/; + Expires=Sun, 19 Jun 2022 01:18:28 GMT; Path=/ + - AWSALBCORS=R6dRann16p+H1UxDeBIyoy3YJ9b8/Tbfm/NmBBkxk/Py+6nRFLMQdOHpc2JFEEQh1x/u9NLzmIH27husQGM1M67O1kwBaomI10a4LfrKkclJ0wifK19K0hTO8xE/; + Expires=Sun, 19 Jun 2022 01:18:28 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=d9-VEk5glkAoj4kGKyt4NU59scwd2uYtXGE%2CAySXOKkry2pb; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"orig.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:29 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Mu3eF19SUFE9iIP4ohgHV9Lx/vv1QlSP05l72ZTkQAnnIkkOIBPVcirpwJfXRxlPBIBPF+4Q59YH3vXdhGz3rc3rgCNWnEvjNLLUlAxz8shsLe0FKgVZSXrJPFAN; + Expires=Sun, 19 Jun 2022 01:18:29 GMT; Path=/ + - AWSALBCORS=Mu3eF19SUFE9iIP4ohgHV9Lx/vv1QlSP05l72ZTkQAnnIkkOIBPVcirpwJfXRxlPBIBPF+4Q59YH3vXdhGz3rc3rgCNWnEvjNLLUlAxz8shsLe0FKgVZSXrJPFAN; + Expires=Sun, 19 Jun 2022 01:18:29 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=acqyNK4jYmETnA5yhpD5-lcRV6j1pu6%2CW5qi5F6KuOSLIAmF; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "updated.test", "type": "TXT", "content": "challengetoken", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '251' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/edit/example.xyz/236272930 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:30 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=WdxuoBbSmGmENh08jpSuMkBlPj3t6N5yub89zfEb5qvnGqGfnDxqcqPimC5QQ+d0Zi12I3ZLbCvFZaivMXELKpRFjb6IQhxaTseOqyYJxCNpsHlkh1HBUtbnne0q; + Expires=Sun, 19 Jun 2022 01:18:30 GMT; Path=/ + - AWSALBCORS=WdxuoBbSmGmENh08jpSuMkBlPj3t6N5yub89zfEb5qvnGqGfnDxqcqPimC5QQ+d0Zi12I3ZLbCvFZaivMXELKpRFjb6IQhxaTseOqyYJxCNpsHlkh1HBUtbnne0q; + Expires=Sun, 19 Jun 2022 01:18:30 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=HFCycFnd25e0EGC7N5dzgKd5QdaSbOqoeBM%2CyXXceEG53LKG; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_should_modify_record_name_specified.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_should_modify_record_name_specified.yaml new file mode 100644 index 000000000..1a406c6ed --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_should_modify_record_name_specified.yaml @@ -0,0 +1,358 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:31 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=um5MKu84RgUyLbwH0aKsi5GHNthkj8ZyvZu/OSx+pQJT+WcateWWLde9zCyYlLzM0yEIik+KVHaZfo4qyNuJR/hrb4RNqFVY1+nHOXswURJYrFTnyfyllEocIDPZ; + Expires=Sun, 19 Jun 2022 01:18:30 GMT; Path=/ + - AWSALBCORS=um5MKu84RgUyLbwH0aKsi5GHNthkj8ZyvZu/OSx+pQJT+WcateWWLde9zCyYlLzM0yEIik+KVHaZfo4qyNuJR/hrb4RNqFVY1+nHOXswURJYrFTnyfyllEocIDPZ; + Expires=Sun, 19 Jun 2022 01:18:30 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=P3jYPHF0iCzCnSBXwv4DsHOF7SW1bWP%2CwUmK9xzvNEc4PVJO; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:32 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=WjoPx6r5Qnad/T5IyFPHU1c2f+rpKhxEkf77IHnyY2X1uOdoPRWsclgXSb5eS79yyt8psJ+j0uf1mbBfW0NPI0abTCMG8oqKE/Zcg8RIAWvrW+Uh404dLr9xee4J; + Expires=Sun, 19 Jun 2022 01:18:31 GMT; Path=/ + - AWSALBCORS=WjoPx6r5Qnad/T5IyFPHU1c2f+rpKhxEkf77IHnyY2X1uOdoPRWsclgXSb5eS79yyt8psJ+j0uf1mbBfW0NPI0abTCMG8oqKE/Zcg8RIAWvrW+Uh404dLr9xee4J; + Expires=Sun, 19 Jun 2022 01:18:31 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=PVnloSxiOBEKvKqSfVkK4qNQEC1UU2CBuh0KYLteHVNeQWE6; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:32 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=3M5OZeiMnya/GA+jomfXlunNZa1WTRGdPAeqXrYHd7h20WBnlsHqYSBCZOvVxLZS+DUdNyYHX5PHhWSUlafIx/CcKu/ZE4vC3EXQicLI6oQoLWfqI1fSP/EaF5u4; + Expires=Sun, 19 Jun 2022 01:18:32 GMT; Path=/ + - AWSALBCORS=3M5OZeiMnya/GA+jomfXlunNZa1WTRGdPAeqXrYHd7h20WBnlsHqYSBCZOvVxLZS+DUdNyYHX5PHhWSUlafIx/CcKu/ZE4vC3EXQicLI6oQoLWfqI1fSP/EaF5u4; + Expires=Sun, 19 Jun 2022 01:18:32 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=0YGJsu3-sQVrqxSif8JMqlsKkFx4m7Z9sqZxRbFDkPd1gWi8; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "orig.nameonly.test", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '257' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272937}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:33 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=nBOIAq2yqXuFDYRU/8UkTacDbOSxlzsea/QR7xdgzSfbPHzIxG/GPVI87vHnUySG976Qa7JQKQ4Lj8OjfxZ/WrS/c3ELBtNcEP7cClqBaqDmlFokUb4CUUhu2t5T; + Expires=Sun, 19 Jun 2022 01:18:33 GMT; Path=/ + - AWSALBCORS=nBOIAq2yqXuFDYRU/8UkTacDbOSxlzsea/QR7xdgzSfbPHzIxG/GPVI87vHnUySG976Qa7JQKQ4Lj8OjfxZ/WrS/c3ELBtNcEP7cClqBaqDmlFokUb4CUUhu2t5T; + Expires=Sun, 19 Jun 2022 01:18:33 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=ymCqG8mtWCbknFTtzUw5rSmtgFPTcruA%2C9Nphqn9Z9tnHl1Y; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:34 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=SjBpw4w6y9zjD8KX8Ru5iLvFuHQytttyD2Y6u2vcp2TPbSpUjE/lcrdJOeP0CdyYdPy4moqyIjBpMEgWAlGBFcrkXyemPFPEeyXYyDUhDQsFbbkmGSGY/FD8j54G; + Expires=Sun, 19 Jun 2022 01:18:33 GMT; Path=/ + - AWSALBCORS=SjBpw4w6y9zjD8KX8Ru5iLvFuHQytttyD2Y6u2vcp2TPbSpUjE/lcrdJOeP0CdyYdPy4moqyIjBpMEgWAlGBFcrkXyemPFPEeyXYyDUhDQsFbbkmGSGY/FD8j54G; + Expires=Sun, 19 Jun 2022 01:18:33 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=jPsBMHPrkyq-Z%2C55CPDL5U7-btH2CKu9H32n2YkCS71UKlJy; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "orig.nameonly.test", "type": "TXT", "content": "updated", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '250' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/edit/example.xyz/236272937 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:34 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=s4KmJ3DMjeOPkyu7fCsJ7XvN16gx5tsws5DI3rKQ0JXzLJOovOE3x97PiWphbpxSUkSNz+5jyOn1waP25MEvo+EFGZL5COAbDZkYjSzjzxlNcOpxnBVNJ3TX+6d+; + Expires=Sun, 19 Jun 2022 01:18:34 GMT; Path=/ + - AWSALBCORS=s4KmJ3DMjeOPkyu7fCsJ7XvN16gx5tsws5DI3rKQ0JXzLJOovOE3x97PiWphbpxSUkSNz+5jyOn1waP25MEvo+EFGZL5COAbDZkYjSzjzxlNcOpxnBVNJ3TX+6d+; + Expires=Sun, 19 Jun 2022 01:18:34 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=h7n2h0d6upv4t2qadJL-5Vt%2CvLA0dY6eRdRrqtQBdAprAASI; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml new file mode 100644 index 000000000..7353e7c0f --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml @@ -0,0 +1,358 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:35 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=QQ58CjpvVkvOgjy8oTDZ4Dqf0/CBRTUc5G4wdmdx8SLjkGK3KfZsx+scwNG5miAyZKKFdMjszNqNt0O7hax+7ozcDmZ3QkKtwZwdJF1ldpI0S/wgrAew8iNDkBBU; + Expires=Sun, 19 Jun 2022 01:18:35 GMT; Path=/ + - AWSALBCORS=QQ58CjpvVkvOgjy8oTDZ4Dqf0/CBRTUc5G4wdmdx8SLjkGK3KfZsx+scwNG5miAyZKKFdMjszNqNt0O7hax+7ozcDmZ3QkKtwZwdJF1ldpI0S/wgrAew8iNDkBBU; + Expires=Sun, 19 Jun 2022 01:18:35 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=RrmP8wH1-%2Co4GV7PgPAtqJCbfzRijwEJ%2C9SxwCsIgRjRNB5T; path=/; + secure; HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:36 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=87yg3lfKINH+uAr7p159jyJs1TnkDQh0xb+z0QIj6QST1zey2rJKV7Oa3ESbjV94d4Z2jofwwUIk/gRC5aJgV0HMb6iWkqnGSrO+L8S7fUADVdxaIEEKLGrLA0qp; + Expires=Sun, 19 Jun 2022 01:18:36 GMT; Path=/ + - AWSALBCORS=87yg3lfKINH+uAr7p159jyJs1TnkDQh0xb+z0QIj6QST1zey2rJKV7Oa3ESbjV94d4Z2jofwwUIk/gRC5aJgV0HMb6iWkqnGSrO+L8S7fUADVdxaIEEKLGrLA0qp; + Expires=Sun, 19 Jun 2022 01:18:36 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=rqsHhNoAIWDC-L6JgJqtp5sl6jpMu77mXKGhEqFQPFRWQyMY; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:37 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=PkhrXTWknFMYfWlw0+KDIr4OZ7YPm/dZVxviVbe1uktut23CIIzYcxJVVvPCfIzUW7OYl9wkicchESTl026M2VoV50NymsjiH1ZnPJHQc3258kBdkGWjwsPkJfzi; + Expires=Sun, 19 Jun 2022 01:18:36 GMT; Path=/ + - AWSALBCORS=PkhrXTWknFMYfWlw0+KDIr4OZ7YPm/dZVxviVbe1uktut23CIIzYcxJVVvPCfIzUW7OYl9wkicchESTl026M2VoV50NymsjiH1ZnPJHQc3258kBdkGWjwsPkJfzi; + Expires=Sun, 19 Jun 2022 01:18:36 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=vRrm9Oe0VAIfVMFKBIB6SfV72z8Vh7Gjk08tfZAbTwxKe53k; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "orig.testfqdn", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '252' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272944}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:37 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=G6LVJCf4PpOEIIfBVj7nv1CqGlGHJJ6ssrM3OWsbInT/IKS191YeZ3trPPNiOiwkAEClRZBL4tRWCP6MJy48GtmfV8gLmOGZKwUOrZ2TG796pjcMLfmzg6v69H+c; + Expires=Sun, 19 Jun 2022 01:18:37 GMT; Path=/ + - AWSALBCORS=G6LVJCf4PpOEIIfBVj7nv1CqGlGHJJ6ssrM3OWsbInT/IKS191YeZ3trPPNiOiwkAEClRZBL4tRWCP6MJy48GtmfV8gLmOGZKwUOrZ2TG796pjcMLfmzg6v69H+c; + Expires=Sun, 19 Jun 2022 01:18:37 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=Bk2Zuss5eZFuuSAOjodb8snU1NBSim-TJ13NEpyf%2C7mFVG54; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"orig.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:38 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=aOomLtn6y6jOYSG9SPMhRxyYOuFofINqlyTfrNzMdjzlZA9T7Tdlw20zxhtmniRwq5ZTgU96cWgPIAEHsUjMUagjMup9YOXhohoxnQMS8dE/cuR/8UP2DQmL9fM1; + Expires=Sun, 19 Jun 2022 01:18:38 GMT; Path=/ + - AWSALBCORS=aOomLtn6y6jOYSG9SPMhRxyYOuFofINqlyTfrNzMdjzlZA9T7Tdlw20zxhtmniRwq5ZTgU96cWgPIAEHsUjMUagjMup9YOXhohoxnQMS8dE/cuR/8UP2DQmL9fM1; + Expires=Sun, 19 Jun 2022 01:18:38 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=YtfdPlyJ6Jr1eOPvfKxLQnBnLvWKj0RjicoCT9JBQ1SHAyqw; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "updated.testfqdn", "type": "TXT", "content": "challengetoken", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '255' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/edit/example.xyz/236272944 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:39 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=Apa1vrR1Ig7KKHAbgtIcgrk3jCcOSmpJtj4X2B5IChTALOXSQK3coOecGcY5nRGMJl5rjpIfWVAGaw76M3Vg3fK4V8QXqXofenA7XenEGjUgEQJhrnWogVWnk6n5; + Expires=Sun, 19 Jun 2022 01:18:38 GMT; Path=/ + - AWSALBCORS=Apa1vrR1Ig7KKHAbgtIcgrk3jCcOSmpJtj4X2B5IChTALOXSQK3coOecGcY5nRGMJl5rjpIfWVAGaw76M3Vg3fK4V8QXqXofenA7XenEGjUgEQJhrnWogVWnk6n5; + Expires=Sun, 19 Jun 2022 01:18:38 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=73T-MD95BLls-q40tKmNDJ8lK85BBU6YIH8y-4Ny0qitlJnA; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1 diff --git a/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_with_full_name_should_modify_record.yaml b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_with_full_name_should_modify_record.yaml new file mode 100644 index 000000000..8c06954d5 --- /dev/null +++ b/tests/fixtures/cassettes/porkbun/IntegrationTests/test_provider_when_calling_update_record_with_full_name_should_modify_record.yaml @@ -0,0 +1,358 @@ +interactions: +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/ping + response: + body: + string: '{"status":"SUCCESS","yourIp":"8.8.8.8"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:40 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=GNhlNl8X9k3zWLASkLtJaICbReVXunVISbGsuXKjsNPLbLw0lpAT2W8M7qSsv76irWrhHAsZvyKesVgwASxepEYv39YBI+xOJz9uTyFqOCSI2kMg4Db1Vibalq/2; + Expires=Sun, 19 Jun 2022 01:18:39 GMT; Path=/ + - AWSALBCORS=GNhlNl8X9k3zWLASkLtJaICbReVXunVISbGsuXKjsNPLbLw0lpAT2W8M7qSsv76irWrhHAsZvyKesVgwASxepEYv39YBI+xOJz9uTyFqOCSI2kMg4Db1Vibalq/2; + Expires=Sun, 19 Jun 2022 01:18:39 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=hg5Nx%2CHgAxM1A8W5XgcIubHp6TvVZ1jyYlx0UxxULAY9ST0s; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"updated.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:41 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=ywIKUYfkZDAn1jFy6I3u0zuDGjA0On3GFa6Jmcjsf0uayHO2B19rEEb22B9tHDSEl6OYPP17mkUDsOTanIKEH6bVQ5R7p53toSHcv3z6qhkYLyrJL8+MyiNaA/mu; + Expires=Sun, 19 Jun 2022 01:18:40 GMT; Path=/ + - AWSALBCORS=ywIKUYfkZDAn1jFy6I3u0zuDGjA0On3GFa6Jmcjsf0uayHO2B19rEEb22B9tHDSEl6OYPP17mkUDsOTanIKEH6bVQ5R7p53toSHcv3z6qhkYLyrJL8+MyiNaA/mu; + Expires=Sun, 19 Jun 2022 01:18:40 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=i1qG3IiG53XL08JTHJQ5fw6XeligEN-bF3cdplhSScZ8PUm1; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"updated.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:41 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=aN4qZPvdi/Gcq4y1WHED/JJTD7ny1ZBIBdy4THBxIgGQ3MYDxb/z67IaPxkvrbeySdYa2C1Esx3yxbwq6sZyjkRQKrRpLUhGEu5xsIpoxcABmvADCXJtryMjnhkk; + Expires=Sun, 19 Jun 2022 01:18:41 GMT; Path=/ + - AWSALBCORS=aN4qZPvdi/Gcq4y1WHED/JJTD7ny1ZBIBdy4THBxIgGQ3MYDxb/z67IaPxkvrbeySdYa2C1Esx3yxbwq6sZyjkRQKrRpLUhGEu5xsIpoxcABmvADCXJtryMjnhkk; + Expires=Sun, 19 Jun 2022 01:18:41 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=Ezy6Vx1JNEPfykynR069Izk%2C0-iiSxJfBz13BukZBcocd4MG; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"type": "TXT", "content": "challengetoken", "name": "orig.testfull", "ttl": + 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '252' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/create/example.xyz + response: + body: + string: '{"status":"SUCCESS","id":236272951}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:42 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=yTnGp1IBwTse27KwGnJRrDytV95MDflf+INf9+wbcbcRFzvlucGGG2R9bxUysTtqL6mTDKZS2K+s2OtQxSd0jhnUQTL/HxooL3ZhiHBsY9EgGcp6kuRUZwDhbj+l; + Expires=Sun, 19 Jun 2022 01:18:42 GMT; Path=/ + - AWSALBCORS=yTnGp1IBwTse27KwGnJRrDytV95MDflf+INf9+wbcbcRFzvlucGGG2R9bxUysTtqL6mTDKZS2K+s2OtQxSd0jhnUQTL/HxooL3ZhiHBsY9EgGcp6kuRUZwDhbj+l; + Expires=Sun, 19 Jun 2022 01:18:42 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=uT7z23qxdqkT0JXGCXNKcvnduMW6dXWffCXsFbc2ARW7WrGQ; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '170' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/retrieve/example.xyz + response: + body: + string: '{"status":"SUCCESS","cloudflare":"disabled","records":[{"id":"236096065","name":"example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236238296","name":"www.example.xyz","type":"A","content":"8.8.8.8","ttl":"600","prio":"0"},{"id":"236272619","name":"localhost.example.xyz","type":"A","content":"127.0.0.1","ttl":"3600","prio":"0"},{"id":"230514990","name":"example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514991","name":"www.example.xyz","type":"ALIAS","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"230514992","name":"*.example.xyz","type":"CNAME","content":"pixie.porkbun.com","ttl":"600","prio":null},{"id":"236272623","name":"docs.example.xyz","type":"CNAME","content":"docs.example.com","ttl":"3600","prio":"0"},{"id":"230514985","name":"example.xyz","type":"MX","content":"fwd1.porkbun.com","ttl":"600","prio":"10"},{"id":"230514986","name":"example.xyz","type":"MX","content":"fwd2.porkbun.com","ttl":"600","prio":"20"},{"id":"236272899","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272903","name":"_acme-challenge.listrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272907","name":"random.fqdntest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272913","name":"random.fulltest.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272660","name":"_acme-challenge.deleterecordinset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272921","name":"random.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272672","name":"_acme-challenge.deleterecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272930","name":"updated.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272937","name":"orig.nameonly.test.example.xyz","type":"TXT","content":"updated","ttl":"3600","prio":"0"},{"id":"236272944","name":"updated.testfqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272951","name":"orig.testfull.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272628","name":"_acme-challenge.fqdn.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272629","name":"_acme-challenge.full.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272630","name":"_acme-challenge.test.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"},{"id":"236272631","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken1","ttl":"3600","prio":"0"},{"id":"236272632","name":"_acme-challenge.createrecordset.example.xyz","type":"TXT","content":"challengetoken2","ttl":"3600","prio":"0"},{"id":"236272889","name":"ttl.fqdn.example.xyz","type":"TXT","content":"ttlshouldbe3600","ttl":"3600","prio":"0"},{"id":"236272635","name":"_acme-challenge.noop.example.xyz","type":"TXT","content":"challengetoken","ttl":"3600","prio":"0"}]}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:42 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=x07E17t3Vgt5cIlmFIUhDWH0UfGv5f7HJ3PqoSMh8s9LgKPZd0JFiG+tDYRPVxy8dVCqjI7qvtQj8CI5K4oSW8wcD63m8AFTVQCaEvFfZkFGnhojaWz6wm4ctYh0; + Expires=Sun, 19 Jun 2022 01:18:42 GMT; Path=/ + - AWSALBCORS=x07E17t3Vgt5cIlmFIUhDWH0UfGv5f7HJ3PqoSMh8s9LgKPZd0JFiG+tDYRPVxy8dVCqjI7qvtQj8CI5K4oSW8wcD63m8AFTVQCaEvFfZkFGnhojaWz6wm4ctYh0; + Expires=Sun, 19 Jun 2022 01:18:42 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=YxExZpT0xfuymO08vPYALT84t-8FVAKA2CPiRkd01Z43YVke; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: '{"name": "updated.testfull", "type": "TXT", "content": "challengetoken", + "ttl": 3600}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '255' + Content-Type: + - application/json + User-Agent: + - python-requests/2.27.1 + method: POST + uri: https://porkbun.com/api/json/v3/dns/edit/example.xyz/236272951 + response: + body: + string: '{"status":"SUCCESS"}' + headers: + Cache-Control: + - no-store, no-cache, must-revalidate + Connection: + - keep-alive + Content-Language: + - en-US, en + Content-Type: + - application/json + Date: + - Sun, 12 Jun 2022 01:18:43 GMT + Expires: + - Thu, 19 Nov 1981 08:52:00 GMT + Pragma: + - no-cache + Referrer-Policy: + - origin + Server: + - openresty + Set-Cookie: + - AWSALB=azeC/TtBAlNxi/kkv53jeuPP8uMcylxzLgmprpRE5nuFtrmWxAT+1xOAHRTzdx5MAelF/BHlgnLXMslixgB83i3N45YGwPQP3uV+7YlKGIgKo6qumKtBG7obec+2; + Expires=Sun, 19 Jun 2022 01:18:43 GMT; Path=/ + - AWSALBCORS=azeC/TtBAlNxi/kkv53jeuPP8uMcylxzLgmprpRE5nuFtrmWxAT+1xOAHRTzdx5MAelF/BHlgnLXMslixgB83i3N45YGwPQP3uV+7YlKGIgKo6qumKtBG7obec+2; + Expires=Sun, 19 Jun 2022 01:18:43 GMT; Path=/; SameSite=None; Secure + - BUNSESSION2=YhFttmRUC5m9pGYqaRsp1DyqYeMKqBcx5-bj36ncv7rYeTxi; path=/; secure; + HttpOnly; SameSite=Lax + Strict-Transport-Security: + - max-age=63072000; includeSubDomains; preload + Transfer-Encoding: + - chunked + X-Content-Type-Options: + - nosniff + X-Frame-Options: + - sameorigin + X-XSS-Protection: + - 1; mode=block + status: + code: 200 + message: OK +version: 1