diff options
| author | 2025-08-16 06:57:19 -0400 | |
|---|---|---|
| committer | 2025-08-16 06:57:19 -0400 | |
| commit | c9fc792d96e0600fc4bf8f3796808f386698b876 (patch) | |
| tree | d12914dd0f736f033e11c3da88d4b48163db984f /tests/client.py | |
| parent | e3250c6adb5a91040ce9c05e3fb37a466e2b6bc2 (diff) | |
| parent | f2d0c6d6a829e85919935eea8efdf68548005d17 (diff) | |
Update upstream source from tag 'upstream/2.2.0'
Update to upstream version '2.2.0'
with Debian dir 166658e2cbfe10c912aaad67f9266c4902cbaed2
Diffstat (limited to 'tests/client.py')
| -rw-r--r-- | tests/client.py | 16 |
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." ) ) |
