From: Remi Gacogne Date: Tue, 2 Oct 2018 11:44:47 +0000 (+0200) Subject: rec: Make sure that the updated allow-from list has only one entry X-Git-Tag: dnsdist-1.3.3~79^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9a7adb06a81cac153242fd8cfe5733746c0215a;p=thirdparty%2Fpdns.git rec: Make sure that the updated allow-from list has only one entry --- diff --git a/regression-tests.api/test_RecursorConfig.py b/regression-tests.api/test_RecursorConfig.py index 2a3c1f1199..fb0af18b77 100644 --- a/regression-tests.api/test_RecursorConfig.py +++ b/regression-tests.api/test_RecursorConfig.py @@ -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):