]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2025] Make xfr master/slaves run on IPv6 entirely (to avoid issues with certain...
authorMukund Sivaraman <muks@isc.org>
Mon, 25 Jun 2012 19:42:22 +0000 (01:12 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 25 Jun 2012 19:42:22 +0000 (01:12 +0530)
tests/lettuce/configurations/xfrin/inmem_slave.conf
tests/lettuce/configurations/xfrin/retransfer_master.conf
tests/lettuce/configurations/xfrin/retransfer_slave.conf
tests/lettuce/configurations/xfrin/retransfer_slave_notify.conf
tests/lettuce/features/inmemory_over_sqlite3.feature
tests/lettuce/features/terrain/transfer.py
tests/lettuce/features/xfrin_bind10.feature
tests/lettuce/features/xfrin_notify_handling.feature

index a6d88ee0131cb1dfcc9aa6e616aee9221a0128a0..9b693005dacdeceb636cabcb90ddcd79bb04a4de 100644 (file)
@@ -19,8 +19,8 @@
             } ]
         } ],
         "listen_on": [ {
-            "port": 47806,
-            "address": "127.0.0.1"
+            "address": "::1",
+            "port": 47806
         } ]
     },
     "Boss": {
index 3f91a5a3c1abed94366f6d4c83f223da283fbeba..5efd13317282a0ea1592d8b740ee99adedd34fda 100644 (file)
@@ -10,7 +10,7 @@
     "Auth": {
         "database_file": "data/example.org.sqlite3",
         "listen_on": [ {
-            "address": "127.0.0.1",
+            "address": "::1",
             "port": 47807
         } ]
     },
@@ -19,7 +19,7 @@
             "origin": "example.org"
         } ],
         "test_notify_slaves": [ {
-            "address": "127.0.0.1",
+            "address": "::1",
             "port": 47806
         } ]
     },
index 2296b8f9a32589f5cc4d1d834bac2c4016339cad..260147dfbe06c49ef72f444bd1f511c742fc4d6b 100644 (file)
@@ -10,8 +10,8 @@
     "Auth": {
         "database_file": "data/test_nonexistent_db.sqlite3",
         "listen_on": [ {
-            "port": 47806,
-            "address": "127.0.0.1"
+            "address": "::1",
+            "port": 47806
         } ]
     },
     "Boss": {
index 383a39596f04442af4894942e70093adb9b88f11..57244a49f8a2cb1494be4c663b22f9b8d4557366 100644 (file)
     "Auth": {
         "database_file": "data/xfrin-notify.sqlite3",
         "listen_on": [ {
-            "address": "127.0.0.1",
+            "address": "::1",
             "port": 47806
         } ]
     },
     "Xfrin": {
         "zones": [ {
             "name": "example.org",
-            "master_addr": "127.0.0.1",
+            "master_addr": "::1",
             "master_port": 47807
         } ]
     },
index 2e486895641f758a023729a7b881415b1fdb3b71..851cacaa42e39f7568e320497d2e3b26bba91d93 100644 (file)
@@ -26,18 +26,18 @@ Feature: In-memory zone using SQLite3 backend
         And wait for bind10 stderr message XFRIN_STARTED
         And wait for bind10 stderr message ZONEMGR_STARTED
 
-        A query for www.example.org should have rcode NOERROR
+        A query for www.example.org to [::1]:47806 should have rcode NOERROR
         """
         www.example.org.        3600    IN      A       192.0.2.63
         """
-        A query for mail.example.org should have rcode NXDOMAIN
+        A query for mail.example.org to [::1]:47806 should have rcode NXDOMAIN
         When I send bind10 the command Xfrin retransfer example.org IN ::1 47807
         Then wait for new bind10 stderr message XFRIN_TRANSFER_SUCCESS not XFRIN_XFR_PROCESS_FAILURE
         Then wait for new bind10 stderr message AUTH_LOAD_ZONE
 
-        A query for www.example.org should have rcode NOERROR
+        A query for www.example.org to [::1]:47807 should have rcode NOERROR
         The answer section of the last query response should be
         """
         www.example.org.        3600    IN      A       192.0.2.1
         """
-        A query for mail.example.org should have rcode NOERROR
+        A query for mail.example.org to [::1]:47806 should have rcode NOERROR
index 4ba45b89bef9ed11b4edaac92db97ee04ed74177..eb4ddc0b72f63b4b05596373813f35cf4c214999 100644 (file)
@@ -67,11 +67,11 @@ def perform_axfr(step, zone_name, address, port):
     Step definition:
     An AXFR transfer of <zone_name> [from <address>:<port>]
 
-    Address defaults to 127.0.0.1
+    Address defaults to ::1
     Port defaults to 47806
     """
     if address is None:
-        address = "127.0.0.1"
+        address = "::1"
     # convert [IPv6_addr] to IPv6_addr:
     address = re.sub(r"\[(.+)\]", r"\1", address)
     if port is None:
index a967e700b3f4e8879209f5d3e477347b6c66b3d6..7a45ddd8b5d877bfe4339085bf05fa96c8a44eec 100644 (file)
@@ -23,11 +23,11 @@ Feature: Xfrin
     # Now we use the first step again to see if the file has been created
     The file data/test_nonexistent_db.sqlite3 should exist
 
-    A query for www.example.org should have rcode REFUSED
-    When I send bind10 the command Xfrin retransfer example.org IN 127.0.0.1 47807
+    A query for www.example.org to [::1]:47806 should have rcode REFUSED
+    When I send bind10 the command Xfrin retransfer example.org IN ::1 47807
     Then wait for new bind10 stderr message XFRIN_TRANSFER_SUCCESS not XFRIN_XFR_PROCESS_FAILURE
     Then wait for new bind10 stderr message ZONEMGR_RECEIVE_XFRIN_SUCCESS
-    A query for www.example.org should have rcode NOERROR
+    A query for www.example.org to [::1]:47806 should have rcode NOERROR
 
     # The transferred zone should have 11 non-NSEC3 RRs and 1 NSEC3 RR.
     # The following check will get these by AXFR, so the total # of RRs
index 2a445b6e8d30915f3029f893112936a194c5b663..e514b83c1dcf06d0d3a71681acd2ad7ba18aff5f 100644 (file)
@@ -16,7 +16,7 @@ Feature: Xfrin incoming notify handling
     And wait for bind10 stderr message XFRIN_STARTED
     And wait for bind10 stderr message ZONEMGR_STARTED
 
-    A query for www.example.org should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:47806 should have rcode NXDOMAIN
 
     When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
     Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
@@ -26,4 +26,4 @@ Feature: Xfrin incoming notify handling
     Then wait for new bind10 stderr message XFRIN_TRANSFER_SUCCESS not XFRIN_XFR_PROCESS_FAILURE
     Then wait for new bind10 stderr message ZONEMGR_RECEIVE_XFRIN_SUCCESS
 
-    A query for www.example.org should have rcode NOERROR
+    A query for www.example.org to [::1]:47806 should have rcode NOERROR