From: Christian Hofstaedtler Date: Sat, 17 Dec 2016 16:17:20 +0000 (+0100) Subject: API: Add test demonstrating issue #4766 X-Git-Tag: dnsdist-1.1.0~12^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d7f3c756b432d20cd36758989a30784994fbe20;p=thirdparty%2Fpdns.git API: Add test demonstrating issue #4766 --- diff --git a/regression-tests.api/test_Zones.py b/regression-tests.api/test_Zones.py index 5ef562195f..64c73ee06e 100644 --- a/regression-tests.api/test_Zones.py +++ b/regression-tests.api/test_Zones.py @@ -936,6 +936,8 @@ fred IN A 192.168.0.4 self.assertNotEquals(serverset['comments'], []) # verify that modified_at has been set by pdns self.assertNotEquals([c for c in serverset['comments']][0]['modified_at'], 0) + # verify that TTL is correct (regression test) + self.assertEquals(serverset['ttl'], 3600) def test_zone_comment_delete(self): # Test: Delete ONLY comments.