Repository: AnalogJ/lexicon

Issue:
Can't use lexicon with pending Cloudflare domains
I cannot use Lexicon with a domain that is `pending` (not `active`) in Cloudflare. It's useful to to be able to manipulate DNS records for `pending` domains before changing nameservers to minimize disruption.

## Context

1. Add a domain (e.g., `example.com`) in Cloudflare.
2. Do not change the nameservers for `example.com` to point to Cloudflare so that it remains with a `pending` status.
3. Add an API token in Cloudflare with Zone.DNS Edit and Zone.Zone Read permissions.

## Example

```sh
$ lexicon --version
lexicon 3.12.0
$ lexicon cloudflare --auth-token abc...XYZ list example.com A
Traceback (most recent call last):
  File "/home/user/.local/bin/lexicon", line 8, in <module>
    sys.exit(main())
  File "/home/user/.local/pipx/venvs/dns-lexicon/lib/python3.9/site-packages/lexicon/cli.py", line 132, in main
    results = client.execute()
  File "/home/user/.local/pipx/venvs/dns-lexicon/lib/python3.9/site-packages/lexicon/client.py", line 81, in execute
    self.provider.authenticate()
  File "/home/user/.local/pipx/venvs/dns-lexicon/lib/python3.9/site-packages/lexicon/providers/base.py", line 73, in authenticate
    self._authenticate()
  File "/home/user/.local/pipx/venvs/dns-lexicon/lib/python3.9/site-packages/lexicon/providers/cloudflare.py", line 51, in _authenticate
    raise AuthenticationError("No domain found")
lexicon.exceptions.AuthenticationError: No domain found
```


Discussion:

Resolving patch:
diff --git a/lexicon/providers/cloudflare.py b/lexicon/providers/cloudflare.py
--- a/lexicon/providers/cloudflare.py
+++ b/lexicon/providers/cloudflare.py
@@ -45,7 +45,7 @@ def __init__(self, config):
     def _authenticate(self):
         zone_id = self._get_provider_option("zone_id")
         if not zone_id:
-            payload = self._get("/zones", {"name": self.domain, "status": "active"})
+            payload = self._get("/zones", {"name": self.domain})
 
             if not payload["result"]:
                 raise AuthenticationError("No domain found")


Test patch:
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_authenticate.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_authenticate.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_authenticate.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_authenticate.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_authenticate_with_unmanaged_domain_should_fail.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_authenticate_with_unmanaged_domain_should_fail.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_authenticate_with_unmanaged_domain_should_fail.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_authenticate_with_unmanaged_domain_should_fail.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=thisisadomainidonotown.com&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=thisisadomainidonotown.com
   response:
     body:
       string: '{"success":false,"errors":[{"code":0,"message":"Actor ''com.cloudflare.api.token.a633057935c0c4ff1a07cfd50ae97df6''
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_A_with_valid_name_and_content.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_CNAME_with_valid_name_and_content.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_fqdn_name_and_content.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_full_name_and_content.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_for_TXT_with_valid_name_and_content.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_multiple_times_should_create_record_set.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_create_record_with_duplicate_records_should_be_noop.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_should_remove_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_should_remove_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_should_remove_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_should_remove_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_fqdn_name_should_remove_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_filter_with_full_name_should_remove_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_identifier_should_remove_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_identifier_should_remove_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_identifier_should_remove_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_by_identifier_should_remove_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_by_content_should_leave_others_untouched.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_name_remove_all.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_name_remove_all.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_name_remove_all.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_delete_record_with_record_set_name_remove_all.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_after_setting_ttl.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_after_setting_ttl.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_after_setting_ttl.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_after_setting_ttl.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_should_handle_record_sets.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_should_handle_record_sets.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_should_handle_record_sets.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_should_handle_record_sets.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_fqdn_name_filter_should_return_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_full_name_filter_should_return_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_invalid_filter_should_be_empty_list.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_name_filter_should_return_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_name_filter_should_return_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_name_filter_should_return_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_name_filter_should_return_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_no_arguments_should_list_all.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_no_arguments_should_list_all.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_no_arguments_should_list_all.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_list_records_with_no_arguments_should_list_all.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_should_modify_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_should_modify_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_should_modify_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_should_modify_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_should_modify_record_name_specified.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_should_modify_record_name_specified.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_should_modify_record_name_specified.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_should_modify_record_name_specified.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_with_fqdn_name_should_modify_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh
diff --git a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_with_full_name_should_modify_record.yaml b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_with_full_name_should_modify_record.yaml
--- a/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_with_full_name_should_modify_record.yaml
+++ b/tests/fixtures/cassettes/cloudflare/IntegrationTests/test_provider_when_calling_update_record_with_full_name_should_modify_record.yaml
@@ -17,7 +17,7 @@ interactions:
       User-Agent:
       - python-requests/2.22.0
     method: GET
-    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net&status=active
+    uri: https://api.cloudflare.com/client/v4/zones?name=pacalis.net
   response:
     body:
       string: '{"result":[{"id":"4f282fede870f505f531b56a761ecd44","name":"pacalis.net","status":"active","paused":false,"type":"full","development_mode":0,"name_servers":["christian.ns.cloudflare.com","dina.ns.cloudflare.com"],"original_name_servers":["ns1.digitalocean.com","ns2.digitalocean.com","ns3.digitalocean.com"],"original_registrar":"ovh