From: Peter van Dijk Date: Fri, 27 Jun 2025 07:41:36 +0000 (+0200) Subject: add test X-Git-Tag: rec-5.3.0-alpha2~43^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F15733%2Fhead;p=thirdparty%2Fpdns.git add test --- diff --git a/regression-tests.api/test_Views.py b/regression-tests.api/test_Views.py index 962a762961..e179c01cd2 100644 --- a/regression-tests.api/test_Views.py +++ b/regression-tests.api/test_Views.py @@ -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()