summaryrefslogtreecommitdiffstats
path: root/tests/client.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-08-16 06:57:18 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-08-16 06:57:18 -0400
commitf2d0c6d6a829e85919935eea8efdf68548005d17 (patch)
tree8d5e71317acaa6b7db42d34cea461dbef1cb621b /tests/client.py
parentb10c92e14e6bc28dfd5e7ca235fc4a2a521f8272 (diff)
New upstream version 2.2.0.upstream/2.2.0upstream
Diffstat (limited to 'tests/client.py')
-rw-r--r--tests/client.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/client.py b/tests/client.py
index 3b3a813..719ab84 100644
--- a/tests/client.py
+++ b/tests/client.py
@@ -1005,6 +1005,19 @@ class TestClientAuth(unittest.TestCase):
)
],
)
+ responses.post(
+ url=urljoin(API_ENDPOINT, "domain/updateNs/example.com"),
+ json={"status": "SUCCESS"},
+ match=[
+ matchers.json_params_matcher(
+ {
+ "apikey": "key",
+ "secretapikey": "secret",
+ "ns": ["ns1.example.com"],
+ }
+ )
+ ],
+ )
with tempfile.TemporaryDirectory() as temp_dir:
filename = Path(temp_dir, "records.bind")
@@ -1015,7 +1028,8 @@ class TestClientAuth(unittest.TestCase):
"$TTL 1234\n"
"@ IN SOA dns.example.com. dns2.example.com. (100 300 100 6000 600)\n"
"example.com. IN 600 A 127.0.0.3\n"
- "sub.example.com. 600 IN A 127.0.0.4"
+ "sub.example.com. 600 IN A 127.0.0.4\n"
+ "example.com IN 86400 NS ns1.example.com."
)
)