]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1455] add (dummy) methods for rfc2136 prerequisite checks
authorJelte Jansen <jelte@isc.org>
Mon, 21 May 2012 11:32:15 +0000 (13:32 +0200)
committerJelte Jansen <jelte@isc.org>
Tue, 22 May 2012 19:20:08 +0000 (21:20 +0200)
src/lib/python/isc/ddns/session.py
src/lib/python/isc/ddns/tests/session_tests.py

index 36541d99c7fa83ccccfa5701c13349b5be5b3905..4ac81f7a76e294cf7a6ae7d215efb12d90c6d015 100644 (file)
@@ -123,7 +123,7 @@ class UpdateSession:
         try:
             datasrc_client, zname, zclass = self.__get_update_zone()
             # conceptual code that would follow
-            self.__check_prerequisites()
+            self.__check_prerequisites()
             # self.__check_update_acl()
             # self.__do_update()
             # self.__make_response(Rcode.NOERROR())
@@ -187,3 +187,21 @@ class UpdateSession:
         self.__message.make_response()
         self.__message.clear_section(SECTION_ZONE)
         self.__message.set_rcode(rcode)
+
+    def __check_prerequisite_rrset_exists(self):
+        pass
+
+    def __check_prerequisite_rrset_exists(self, foo):
+        pass
+
+    def __check_prerequisite_rrset_does_not_exist(self):
+        pass
+
+    def __check_prerequisite_name_in_use(self):
+        pass
+
+    def __check_prerequisite_name_not_in_use(self):
+        pass
+
+    def __check_prerequisites(self):
+        pass
index 1bf4e40a4f3220619fcd22101bb43991731a6831..5f4c07b467ff016113bffabc531e8431e3a272b1 100644 (file)
@@ -148,6 +148,24 @@ class SessionTest(unittest.TestCase):
         # zone class doesn't match
         self.check_notauth(Name('example.org'), RRClass.CH())
 
+    def test_check_prerequisite_exists(self):
+        pass
+
+    def test_check_prerequisite_exists_value(self):
+        pass
+
+    def test_check_prerequisite_does_not_exist(self):
+        pass
+
+    def test_check_prerequisite_name_in_use(self):
+        pass
+
+    def test_check_prerequisite_name_not_in_use(self):
+        pass
+
+    def test_check_prerequisites(self):
+        pass
+
 if __name__ == "__main__":
     isc.log.init("bind10")
     isc.log.resetUnitTestRootLogger()