]> granicus.if.org Git - pdns/commitdiff
rec: Make sure that the updated allow-from list has only one entry
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Oct 2018 11:44:47 +0000 (13:44 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Oct 2018 11:44:47 +0000 (13:44 +0200)
regression-tests.api/test_RecursorConfig.py

index 2a3c1f11998ea8f91ade56d76bcceabba3cb1900..fb0af18b77fea25944b946b116e21c4359b27930 100644 (file)
@@ -18,6 +18,8 @@ class RecursorConfig(ApiTestCase):
             headers={'content-type': 'application/json'})
         self.assert_success_json(r)
         data = r.json()
+        self.assertIn("value", data)
+        self.assertEquals(len(data["value"]), 1)
         self.assertEquals("127.0.0.1/32", data["value"][0])
 
     def test_config_allow_from_replace_error(self):