From f2d0c6d6a829e85919935eea8efdf68548005d17 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sat, 16 Aug 2025 06:57:18 -0400 Subject: New upstream version 2.2.0. --- tests/client.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'tests/client.py') 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." ) ) -- cgit v1.2.3