]> granicus.if.org Git - pdns/commitdiff
API: Add test demonstrating issue #4766
authorChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 17 Dec 2016 16:17:20 +0000 (17:17 +0100)
committerChristian Hofstaedtler <christian@hofstaedtler.name>
Sat, 17 Dec 2016 16:17:20 +0000 (17:17 +0100)
regression-tests.api/test_Zones.py

index 5ef562195f3bbf1ab9a96a8e75cd5b053838e149..64c73ee06e748ac35c7304d4fcefa34b64bb8495 100644 (file)
@@ -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.