]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1772] used ::1 instead of 127.0.0.1 2nd bind10 instance and the example test.
authorJINMEI Tatuya <jinmei@isc.org>
Mon, 26 Mar 2012 23:36:21 +0000 (16:36 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Mon, 26 Mar 2012 23:36:21 +0000 (16:36 -0700)
127.0.0.1:47807 is used by a MacOS application and the conflict makes the
test fail in environments that uses the app.  Using an IPv6 address is not
a cleanest solution, but unless we make it fully configurable we need to
handle this type of thing by some workaround anyway.  Also, I believe
it's good to use IPv6 transport for some tests in any event.

tests/lettuce/configurations/example2.org.config
tests/lettuce/features/example.feature

index 1a40d1b533c1b582c7efbb045d73d33cf508ebc0..a6afb5b4d63cb3b6631f5f1fb37384526a9fe412 100644 (file)
@@ -12,7 +12,7 @@
         "database_file": "data/example.org.sqlite3",
         "listen_on": [ {
             "port": 47807,
-            "address": "127.0.0.1"
+            "address": "::1"
         } ]
     }
 }
index d1ed6b3373d36155c7619794a0d705ed797af104..ee388f13d9d81116936c69a0e972c9c7dced11c3 100644 (file)
@@ -133,10 +133,10 @@ Feature: Example feature
         Then wait for bind10 auth of bind10_one to start
         Then wait for bind10 auth of bind10_two to start
         A query for www.example.org to 127.0.0.1:47806 should have rcode NOERROR
-        A query for www.example.org to 127.0.0.1:47807 should have rcode NOERROR
+        A query for www.example.org to [::1]:47807 should have rcode NOERROR
 
         Then set bind10 configuration Auth/database_file to data/empty_db.sqlite3
         And wait for bind10_one stderr message DATASRC_SQLITE_OPEN
 
         A query for www.example.org to 127.0.0.1:47806 should have rcode REFUSED
-        A query for www.example.org to 127.0.0.1:47807 should have rcode NOERROR
+        A query for www.example.org to [::1]:47807 should have rcode NOERROR