]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
add test 15733/head
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 27 Jun 2025 07:41:36 +0000 (09:41 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 27 Jun 2025 08:15:09 +0000 (10:15 +0200)
regression-tests.api/test_Views.py

index 962a7629612402d2e29744c098db168b6f1fd685..e179c01cd27c6bb5627ced7a3cff08527f2ed206 100644 (file)
@@ -120,6 +120,14 @@ class Views(ApiTestCase, AuthZonesHelperMixin):
         print(r.content)
         self.assertEqual(r.status_code, 404)
 
+    def test_zonelist_variant(self):
+        r = self.session.get(
+            self.url("/api/v1/servers/localhost/zones"),
+            headers={'content-type': 'application/json'})
+
+        self.assertEqual(r.status_code, 200)
+        self.assertIn("example.com..spiceoflife", [obj["name"] for obj in r.json()])
+
     def test_views_novariant(self):
         return self._test_views()