]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2904] Change test port from 4780XX to 5617XX
authorKean Johnston <kean@isc.org>
Sun, 12 Jan 2014 19:08:20 +0000 (21:08 +0200)
committerKean Johnston <kean@isc.org>
Sun, 12 Jan 2014 19:08:20 +0000 (21:08 +0200)
Apple has a service that (in IPv4) listens on port 47807. This causes conflicts
with the test suite on that platform. Use ports higher up in the RFC6335 dynamic
ports range (5617XX).

43 files changed:
src/lib/cc/tests/data_unittests.cc
src/lib/config/tests/testdata/spec22.spec
src/lib/config/tests/testdata/spec27.spec
src/lib/python/isc/cc/tests/session_test.py
src/lib/python/isc/config/tests/config_data_test.py
tests/lettuce/README
tests/lettuce/configurations/DO_NOT_USE_127.0.0.1:47807 [deleted file]
tests/lettuce/configurations/auth/auth_badzone.config.orig
tests/lettuce/configurations/auth/auth_basic.config.orig
tests/lettuce/configurations/bindctl/bindctl.config.orig
tests/lettuce/configurations/bindctl_commands.config.orig
tests/lettuce/configurations/ddns/ddns.config.orig
tests/lettuce/configurations/ddns/noddns.config.orig
tests/lettuce/configurations/example.org.config.orig
tests/lettuce/configurations/example.org.inmem.config
tests/lettuce/configurations/example2.org.config
tests/lettuce/configurations/glue.config
tests/lettuce/configurations/inmemory_over_sqlite3/secondary.conf
tests/lettuce/configurations/ixfr-out/testset1-config.db
tests/lettuce/configurations/multi_instance/multi_auth.config.orig
tests/lettuce/configurations/no_db_file.config
tests/lettuce/configurations/nsec3/nsec3_auth.config
tests/lettuce/configurations/resolver/resolver_basic.config.orig
tests/lettuce/configurations/xfrin/inmem_slave.conf
tests/lettuce/configurations/xfrin/retransfer_master.conf.orig
tests/lettuce/configurations/xfrin/retransfer_master_diffs.conf
tests/lettuce/configurations/xfrin/retransfer_master_nons.conf.orig
tests/lettuce/configurations/xfrin/retransfer_master_v4.conf.orig
tests/lettuce/configurations/xfrin/retransfer_slave.conf.orig
tests/lettuce/configurations/xfrin/retransfer_slave_diffs.conf
tests/lettuce/configurations/xfrin/retransfer_slave_notify.conf.orig
tests/lettuce/configurations/xfrin/retransfer_slave_notify_v4.conf
tests/lettuce/configurations/xfrout_master.conf
tests/lettuce/features/ddns_system.feature
tests/lettuce/features/example.feature
tests/lettuce/features/inmemory_over_sqlite3.feature
tests/lettuce/features/terrain/bind10_control.py
tests/lettuce/features/terrain/nsupdate.py
tests/lettuce/features/terrain/querying.py
tests/lettuce/features/terrain/transfer.py
tests/lettuce/features/xfrin_bind10.feature
tests/lettuce/features/xfrin_notify_handling.feature
tests/lettuce/features/xfrout_bind10.feature

index fa8e5fc0406c4a82a532b7534a62053306e46656..4f1057c1e720bdbcea6d4041d1a108dbd3d47b49 100644 (file)
@@ -84,7 +84,7 @@ TEST(Element, from_and_to_json) {
     sv.push_back("\"asdf\"");
     sv.push_back("null");
     sv.push_back("[ 1, 2, 3, 4 ]");
-    sv.push_back("{ \"name\": \"foo\", \"value\": 47806 }");
+    sv.push_back("{ \"name\": \"foo\", \"value\": 56176 }");
     sv.push_back("[ { \"a\": 1, \"b\": \"c\" }, { \"a\": 2, \"b\": \"d\" } ]");
     sv.push_back("8.23");
     sv.push_back("123.456");
@@ -570,12 +570,12 @@ TEST(Element, ListElement) {
     el->set(0, Element::fromJSON("\"foo\""));
     EXPECT_EQ(el->get(0)->stringValue(), "foo");
 
-    el->add(Element::create(47806));
-    EXPECT_EQ(el->get(3)->intValue(), 47806);
+    el->add(Element::create(56176));
+    EXPECT_EQ(el->get(3)->intValue(), 56176);
 
     el->remove(1);
     el->remove(1);
-    EXPECT_EQ(el->str(), "[ \"foo\", 47806 ]");
+    EXPECT_EQ(el->str(), "[ \"foo\", 56176 ]");
 
     // hmm, it errors on EXPECT_THROW(el->get(3), std::out_of_range)
     EXPECT_ANY_THROW(el->get(3));
@@ -600,8 +600,8 @@ TEST(Element, MapElement) {
 
     EXPECT_TRUE(isNull(el->get("value3")));
 
-    el->set("value3", Element::create(47806));
-    EXPECT_EQ(el->get("value3")->intValue(), 47806);
+    el->set("value3", Element::create(56176));
+    EXPECT_EQ(el->get("value3")->intValue(), 56176);
 
     el->remove("value3");
     EXPECT_TRUE(isNull(el->get("value3")));
index cccd77bfae8fb3b6668bafa6c6fe6fa4c341d523..687db08bee716667d363d70d066bf4c12dccfba1 100644 (file)
                 "item_name": "v92b",
                 "item_type": "integer",
                 "item_optional": false,
-                "item_default": 47806
+                "item_default": 56176
               }
             ]
           }
index 0b246b90b0dcc46bb3fb89f93ee524ba4b6d3830..2c730214723382ce50d38ce59fbb344139cc59d0 100644 (file)
                     "item_name": "v92b",
                     "item_type": "integer",
                     "item_optional": false,
-                    "item_default": 47806
+                    "item_default": 56176
                   }
                 ]
               }
index 65afb6ca74484b1a6d76332787117dce81421afa..7b4771c92c593da5768eb849140c75f67c03a4ac 100644 (file)
@@ -334,10 +334,10 @@ class testSession(unittest.TestCase):
         self.assertEqual(sess._sequence, 1)
         self.assertEqual(sess._next_sequence(), 2)
         self.assertEqual(sess._sequence, 2)
-        sess._sequence = 47805
-        self.assertEqual(sess._sequence, 47805)
-        self.assertEqual(sess._next_sequence(), 47806)
-        self.assertEqual(sess._sequence, 47806)
+        sess._sequence = 56175
+        self.assertEqual(sess._sequence, 56175)
+        self.assertEqual(sess._next_sequence(), 56176)
+        self.assertEqual(sess._sequence, 56176)
 
     def test_group_subscribe(self):
         sess = MySession()
index 83f22c925c74faff3868e143ac55c7b011a1c18c..74d13f27ca547904de38f34020f75f93372e1404 100644 (file)
@@ -667,7 +667,7 @@ class TestMultiConfigData(unittest.TestCase):
                      'modified': False,
                      'name': 'Spec22/value9/v92/v92b',
                      'type': 'integer',
-                     'value': 47806
+                     'value': 56176
                     }
                    ]
         maps = self.mcd.get_value_maps("/Spec22/value9")
index 48c4043464d6054ae572da218a0687d4af0af712..786fe0220a0411ac1934fc91e05899a0a679c625 100644 (file)
@@ -21,9 +21,9 @@ it is called python-pip. On FreeBSD the port is devel/py-pip.
 Running the tests
 -----------------
 
-At this moment, we have a fixed port for local tests in our setups, port 47806.
+At this moment, we have a fixed port for local tests in our setups, port 56176.
 This port must be free. (TODO: can we make this run-time discovered?).
-Port 47805 is used for cmdctl, and must also be available.
+Port 56175 is used for cmdctl, and must also be available.
 (note, we will need to extend this to a range, or if possible, we will need to
 do some on-the-fly available port finding)
 
diff --git a/tests/lettuce/configurations/DO_NOT_USE_127.0.0.1:47807 b/tests/lettuce/configurations/DO_NOT_USE_127.0.0.1:47807
deleted file mode 100644 (file)
index d8f0b5f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Note well:
-
-In some configuration we intentionally use an IPv6 address (::1) with
-port 47807.  DO NOT CHANGE THAT; at least do not change it to
-127.0.0.1:47807.  See git e3f4b290d17a68db728166cdffcbe93517966e8b
-for why.
index f86882aba354b41dc9503387e2170c9768a3934f..02e2186956dc49e794e01ec0f307122dee11ba1d 100644 (file)
@@ -9,7 +9,7 @@
     },
     "Auth": {
         "listen_on": [{
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         }]
     },
index 24f615c69ac875b00e64b2e853bc52c44c8448cf..e94e73a77bec18a4e56cee69b1078147ca17cdea 100644 (file)
@@ -9,7 +9,7 @@
     },
     "Auth": {
         "listen_on": [ {
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         } ]
     },
index ef0e8e24c887c03296d7b19b9fb9561bfeccbfc7..51615cb547e97734651a0462c1c4ec3b1bdcc332 100644 (file)
@@ -10,7 +10,7 @@
     "Auth": {
         "database_file": "data/example.org.sqlite3",
         "listen_on": [ {
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         } ]
     },
index 980262b7d85fc6e1498e41fb4a7fe1a19aad644a..1b560add215e84ed4f6aeeea81e309929a3ef1c3 100644 (file)
@@ -10,7 +10,7 @@
     "Auth": {
         "database_file": "data/example.org.sqlite3",
         "listen_on": [ {
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         } ]
     },
index 02978be37aeb1f130326d3f95c99aa908378b682..c3bf319782336c5e752ebbbb7c8ffe72241908bb 100644 (file)
@@ -21,7 +21,7 @@
         "database_file": "data/ddns/example.org.sqlite3",
         "listen_on": [
             {
-                "port": 47806,
+                "port": 56176,
                 "address":
                 "127.0.0.1"
             }
index d0759248603be1864d59209dc8a589d92612e955..2b3f9cabafd401019cf4d89e7ac631e271fd54b7 100644 (file)
@@ -14,7 +14,7 @@
         "database_file": "data/ddns/example.org.sqlite3",
         "listen_on": [
             {
-                "port": 47806,
+                "port": 56176,
                 "address": "127.0.0.1"
             }
         ]
index 7da6304fba102b9a021e9aa0108fe09689ac0b43..005096c5441fbec54f3559ff396898003ff3915a 100644 (file)
@@ -10,7 +10,7 @@
     "Auth": {
         "database_file": "data/example.org.sqlite3",
         "listen_on": [ {
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         } ]
     },
index 2eadedbeb54b302384e0a943e382069bd701c43f..a7c4d9ffaf74001fce7b3e8d710bc362969c43df 100644 (file)
@@ -9,7 +9,7 @@
     },
     "Auth": {
         "listen_on": [{
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         }]
     },
index 3bb3330ca82012fea5ac991ab7bae40a698e4d6a..0425860760d96de4b2d6ed6e2c022a37a13d9bb6 100644 (file)
@@ -11,7 +11,7 @@
     "Auth": {
         "database_file": "data/example.org.sqlite3",
         "listen_on": [ {
-            "port": 47807,
+            "port": 56177,
             "address": "::1"
         } ]
     },
index fc301d38871fccc7b8a0c65658b6fcff55662467..13df1a431c55ee78551cc62b1d3c7beaf0a9b31c 100644 (file)
@@ -9,7 +9,7 @@
     },
     "Auth": {
         "listen_on": [{
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         }]
     },
index d93a8c6964cc90d1783f9c1a1d80fc6c7f2cd5d8..f49498a3768be7032094a0eec35d373741e7322f 100644 (file)
@@ -9,7 +9,7 @@
     },
     "Auth": {
         "listen_on": [ {
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         } ]
     },
index 38d29a77d74581c2be117536d3e73ba7b598a5c2..9623d8e77d8caf341ae385c46b3a877ac5e5b6d4 100644 (file)
         "database_file": "data/ixfr-out/zones.sqlite3",
         "listen_on": [
             {
-                "port": 47806,
+                "port": 56176,
                 "address": "::"
             },
             {
-                "port": 47806,
+                "port": 56176,
                 "address": "0.0.0.0"
             }
         ]
index 96e25d8113959ae3f716e1a3a8ade3b2e01f6eba..5d9ca6849a22bb1f039672b37c62b021ee5aee95 100644 (file)
@@ -10,7 +10,7 @@
     "Auth": {
         "database_file": "data/test_nonexistent_db.sqlite3",
         "listen_on": [ {
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         } ]
     },
index 9e6c168118b16b532e77874bdfaa3f78eba61ae0..3229238d45dd8504fb6a7b570d18e86a01ad7f82 100644 (file)
@@ -11,7 +11,7 @@
     "Auth": {
         "database_file": "data/test_nonexistent_db.sqlite3",
         "listen_on": [ {
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         } ]
     },
index 5dfffa1d574c4784291fd3a16278802895f44ac6..d2a06431320e73e4c553c74a44cbbae694357a2f 100644 (file)
@@ -11,7 +11,7 @@
     "Auth": {
         "datasources": [
             {"zones": [{"origin": "example.", "file": "configurations/nsec3/rfc5155-example.zone.signed"}], "type": "memory"}],
-            "listen_on": [{"port": 47806, "address": "0.0.0.0"}
+            "listen_on": [{"port": 56176, "address": "0.0.0.0"}
         ]
     },
     "data_sources": {
index fe5ddd04cfec2f58ed5c32e7162f5c259b001eab..7f7004fb5fe9e15574ec021920fee036aa31c045 100644 (file)
@@ -13,7 +13,7 @@
             "from": "127.0.0.1"
         } ],
         "listen_on": [ {
-            "port": 47806,
+            "port": 56176,
             "address": "127.0.0.1"
         } ]
     },
index fedf372e2546ea9206be4de4bcd21a1334f93432..4f6ac1788e929ea94bc6487e1d4990bc2392ff4e 100644 (file)
@@ -11,7 +11,7 @@
         "database_file": "data/inmem-xfrin.sqlite3",
         "listen_on": [ {
             "address": "::1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "data_sources": {
index d7ea9a56e2e4a9b17b3584f5db701d6d85750967..f3529fccfe56c28291383240eac16cb09de195fd 100644 (file)
@@ -11,7 +11,7 @@
         "database_file": "data/example.org.sqlite3",
         "listen_on": [ {
             "address": "::1",
-            "port": 47807
+            "port": 56177
         } ]
     },
     "data_sources": {
@@ -30,7 +30,7 @@
         } ],
         "also_notify": [ {
             "address": "::1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "Init": {
index 34d2d036fd327752d04295b96fb9eef4951ca04a..d25f69cd9136e82beb422a58cb1e5b965108d503 100644 (file)
@@ -11,7 +11,7 @@
         "database_file": "data/xfrin-diffs.sqlite3",
         "listen_on": [ {
             "address": "::1",
-            "port": 47807
+            "port": 56177
         } ]
     },
     "data_sources": {
@@ -30,7 +30,7 @@
         } ],
         "also_notify": [ {
             "address": "::1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "Stats": {
index bccadf727d3240150469e4a33028c6f559481ba1..ecb9e054c5747c4c4fdd4190f5508a5e33affb46 100644 (file)
@@ -11,7 +11,7 @@
         "database_file": "data/example.org-nons.sqlite3",
         "listen_on": [ {
             "address": "::1",
-            "port": 47807
+            "port": 56177
         } ]
     },
     "data_sources": {
@@ -30,7 +30,7 @@
         } ],
         "also_notify": [ {
             "address": "::1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "Stats": {
index 755c91b7095e7f203fca7e6d8824baa6fc6be1bb..5eca05fc22a3f21cbe73e532813022c1042594e7 100644 (file)
@@ -11,7 +11,7 @@
         "database_file": "data/example.org.sqlite3",
         "listen_on": [ {
             "address": "127.0.0.1",
-            "port": 47809
+            "port": 56179
         } ]
     },
     "data_sources": {
@@ -30,7 +30,7 @@
         } ],
         "also_notify": [ {
             "address": "127.0.0.1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "Init": {
index aff8218855cb552d1af04bb4458793d3be3f8e9f..6c32f48dedbf51fa2637b9b1f74272ba25dc9704 100644 (file)
@@ -10,7 +10,7 @@
     "Auth": {
         "listen_on": [ {
             "address": "::1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "data_sources": {
index 24bfa2af35ba94ec97f24e34d9663147e9f059cb..acaf9219f526ff53f8c86187fc53987048040f66 100644 (file)
     "Auth": {
         "listen_on": [ {
             "address": "::1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "Xfrin": {
         "zones": [ {
             "name": "example",
             "master_addr": "::1",
-            "master_port": 47807
+            "master_port": 56177
         } ]
     },
     "data_sources": {
index c4ba1efe7070e5c39d335f2f8b37484b68d5221a..4076ea5ce68a691614d1d85a40b26e63b72a96cc 100644 (file)
@@ -10,7 +10,7 @@
     "Auth": {
         "listen_on": [ {
             "address": "::1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "data_sources": {
@@ -27,7 +27,7 @@
         "zones": [ {
             "name": "example.org",
             "master_addr": "::1",
-            "master_port": 47807,
+            "master_port": 56177,
             "request_ixfr": "no"
         } ]
     },
index b99f3f72beb916720ba9a4f8ce93e9f69de227eb..5d44a002b4b0acb90016b19f21b996980531834b 100644 (file)
@@ -10,7 +10,7 @@
     "Auth": {
         "listen_on": [ {
             "address": "127.0.0.1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "data_sources": {
@@ -27,7 +27,7 @@
         "zones": [ {
             "name": "example.org",
             "master_addr": "127.0.0.1",
-            "master_port": 47809,
+            "master_port": 56179,
             "request_ixfr": "no"
         } ]
     },
index 755e69899bd5b42e70a0df5283ac6e94f6dd12c0..da5381cd212c6e756f47f2b38bbdadd50344da24 100644 (file)
@@ -11,7 +11,7 @@
         "database_file": "data/xfrout.sqlite3",
         "listen_on": [ {
             "address": "::1",
-            "port": 47806
+            "port": 56176
         } ]
     },
     "data_sources": {
index 6747b53a07fed196c714f7abfbd0a4abdb6910fd..9b3f116607f17ae7ce27040883cee952bfc3fd07 100644 (file)
@@ -164,16 +164,16 @@ Feature: DDNS System
     #    And wait for primary stderr message XFROUT_STARTED
     #    And wait for primary stderr message DDNS_STARTED
 
-    #    And I start bind10 with configuration example2.org.config with cmdctl port 47804 as secondary
+    #    And I start bind10 with configuration example2.org.config with cmdctl port 56174 as secondary
     #    And wait for secondary stderr message AUTH_SERVER_STARTED
     #    And wait for secondary stderr message XFRIN_STARTED
 
     #    # Sanity check
     #    The SOA serial for example.org should be 1234
-    #    The SOA serial for example.org at 127.0.0.1:47807 should be 1234
+    #    The SOA serial for example.org at 127.0.0.1:56177 should be 1234
 
     #    When I use DDNS to set the SOA serial to 1235
     #    The DDNS response should be SUCCESS
 
     #    The SOA serial for example.org should be 1235
-    #    The SOA serial for example.org at 127.0.0.1:47807 should be 1235
+    #    The SOA serial for example.org at 127.0.0.1:56177 should be 1235
index 48cef20ea9045444fe4d60d4dd7f7c6d24da40c7..0a11a16949eed307a549fb5ff8e872037fd01075 100644 (file)
@@ -129,8 +129,8 @@ Feature: Example feature
         # where
         A query for www.example.org class CH should have rcode REFUSED
         A query for www.example.org to 127.0.0.1 should have rcode NOERROR
-        A query for www.example.org to 127.0.0.1:47806 should have rcode NOERROR
-        A query for www.example.org type A class IN to 127.0.0.1:47806 should have rcode NOERROR
+        A query for www.example.org to 127.0.0.1:56176 should have rcode NOERROR
+        A query for www.example.org type A class IN to 127.0.0.1:56176 should have rcode NOERROR
 
     Scenario: example.org mixed-case query
         # This scenario performs a mixed-case query and checks that the
@@ -207,19 +207,19 @@ Feature: Example feature
         And wait for bind10_one stderr message CMDCTL_STARTED
         And wait for bind10_one stderr message AUTH_SERVER_STARTED
 
-        And I start bind10 with configuration example2.org.config with cmdctl port 47804 as bind10_two
+        And I start bind10 with configuration example2.org.config with cmdctl port 56174 as bind10_two
         And wait for bind10_two stderr message BIND10_STARTED_CC
         And wait for bind10_two stderr message CMDCTL_STARTED
         And wait for bind10_two stderr message AUTH_SERVER_STARTED
 
-        A query for www.example.org to 127.0.0.1:47806 should have rcode NOERROR
-        A query for www.example.org to [::1]:47807 should have rcode NOERROR
+        A query for www.example.org to 127.0.0.1:56176 should have rcode NOERROR
+        A query for www.example.org to [::1]:56177 should have rcode NOERROR
         The SOA serial for example.org should be 1234
-        The SOA serial for example.org at 127.0.0.1:47806 should be 1234
-        The SOA serial for example.org at ::1:47807 should be 1234
+        The SOA serial for example.org at 127.0.0.1:56176 should be 1234
+        The SOA serial for example.org at ::1:56177 should be 1234
 
         Then set bind10 configuration data_sources/classes/IN[0]/params to {"database_file": "data/empty_db.sqlite3"}
         And wait for bind10_one stderr message DATASRC_SQLITE_CONNOPEN
 
-        A query for www.example.org to 127.0.0.1:47806 should have rcode REFUSED
-        A query for www.example.org to [::1]:47807 should have rcode NOERROR
+        A query for www.example.org to 127.0.0.1:56176 should have rcode REFUSED
+        A query for www.example.org to [::1]:56177 should have rcode NOERROR
index 7d8ad6ddd1a1789c59994bdff7b13c14f329a4eb..2f230b9de8a19f73672dd425f465fd3831a2a3f1 100644 (file)
@@ -12,7 +12,7 @@ Feature: In-memory zone using SQLite3 backend
         The SOA serial for example.org should be 1234
 
     Scenario: 2. In-memory datasource backed by sqlite3
-        Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+        Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
         And wait for master stderr message BIND10_STARTED_CC
         And wait for master stderr message CMDCTL_STARTED
         And wait for master stderr message AUTH_SERVER_STARTED
@@ -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 to [::1]:47806 should have rcode NOERROR
+        A query for www.example.org to [::1]:56176 should have rcode NOERROR
         """
         www.example.org.        3600    IN      A       192.0.2.63
         """
-        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
+        A query for mail.example.org to [::1]:56176 should have rcode NXDOMAIN
+        When I send bind10 the command Xfrin retransfer example.org IN ::1 56177
         Then wait for new bind10 stderr message XFRIN_TRANSFER_SUCCESS not XFRIN_XFR_PROCESS_FAILURE
         Then wait for new bind10 stderr message AUTH_DATASRC_CLIENTS_BUILDER_LOAD_ZONE
 
-        A query for www.example.org to [::1]:47807 should have rcode NOERROR
+        A query for www.example.org to [::1]:56177 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 to [::1]:47806 should have rcode NOERROR
+        A query for mail.example.org to [::1]:56176 should have rcode NOERROR
index e288aa934a6d796887ae93c54beffe53480aa8a6..701fac4859a3f9bf2df695130e84d7ca25933740 100644 (file)
@@ -40,7 +40,7 @@ def start_bind10(step, config_file, cmdctl_port, msgq_sockfile, process_name):
                 will be used. The path is relative to the base lettuce
                 directory.
     cmdctl_port ('with cmdctl port <portnr>', optional): The port on which
-                b10-cmdctl listens for bindctl commands. Defaults to 47805.
+                b10-cmdctl listens for bindctl commands. Defaults to 56175.
     msgq_sockfile ('with msgq socket file', optional): The msgq socket file
                 that will be used for internal communication
     process_name ('as <name>', optional). This is the name that can be used
@@ -59,7 +59,7 @@ def start_bind10(step, config_file, cmdctl_port, msgq_sockfile, process_name):
         args.append('-c')
         args.append(config_file)
     if cmdctl_port is None:
-        args.append('--cmdctl-port=47805')
+        args.append('--cmdctl-port=56175')
     else:
         args.append('--cmdctl-port=' + cmdctl_port)
     if process_name is None:
@@ -126,7 +126,7 @@ def run_bindctl(commands, cmdctl_port=None, ignore_failure=False):
        commands: a sequence of strings which will be sent.
        cmdctl_port: a port number on which cmdctl is listening, is converted
                     to string if necessary. If not provided, or None, defaults
-                    to 47805
+                    to 56175
        ignore_failure(bool): if set to True, don't examin the result code
                     of bindctl and assert it succeeds.
 
@@ -135,7 +135,7 @@ def run_bindctl(commands, cmdctl_port=None, ignore_failure=False):
        Fails if the return code is not 0
     """
     if cmdctl_port is None:
-        cmdctl_port = 47805
+        cmdctl_port = 56175
     args = ['bindctl', '-p', str(cmdctl_port)]
     bindctl = subprocess.Popen(args, 1, None, subprocess.PIPE,
                                subprocess.PIPE, None)
@@ -268,7 +268,7 @@ def config_set_command(step, name, value, cmdctl_port):
     name ('configuration <name>'): Identifier of the configuration to set
     value ('to <value>'): value to set it to.
     cmdctl_port ('with cmdctl port <portnr>', optional): cmdctl port to send
-                the command to. Defaults to 47805.
+                the command to. Defaults to 56175.
     Fails if cmdctl does not exit with status code 0.
     """
     commands = ["config set " + name + " " + value,
@@ -282,7 +282,7 @@ def send_multiple_commands(step, cmdctl_port):
     Run bindctl, and send it the given multiline set of commands.
     A quit command is always appended.
     cmdctl_port ('with cmdctl port <portnr>', optional): cmdctl port to send
-                the command to. Defaults to 47805.
+                the command to. Defaults to 56175.
     Fails if cmdctl does not exit with status code 0.
     """
     commands = step.multiline.split("\n")
@@ -299,7 +299,7 @@ def config_remove_command(step, name, value, cmdctl_port):
     value ('value <value>'): if name is a named set, use value to identify
                              item to remove
     cmdctl_port ('with cmdctl port <portnr>', optional): cmdctl port to send
-                the command to. Defaults to 47805.
+                the command to. Defaults to 56175.
     Fails if cmdctl does not exit with status code 0.
     """
     cmd = "config remove " + name
@@ -317,7 +317,7 @@ def send_command(step, cmdctl_port, ignore_failure, command):
     Parameters:
     command ('the command <command>'): The command to send.
     cmdctl_port ('with cmdctl port <portnr>', optional): cmdctl port to send
-                the command to. Defaults to 47805.
+                the command to. Defaults to 56175.
     ignore_failure ('ignoring failure', optional): set to None if bindctl
     is expected to succeed (normal case, which is the default); if it is
     not None, it means bindctl is expected to fail (and it's acceptable).
index 26964f51108932da8205e4acb41bc028393e1ff4..78e89eea83ae0bc9a3136444a4d73fbb2982ca98 100644 (file)
@@ -106,7 +106,7 @@ def prepare_update(step, zone, server, port):
     if port is not None:
         commands[0] = commands[0] + " " + port
     else:
-        commands[0] = commands[0] + " 47806"
+        commands[0] = commands[0] + " 56176"
     if zone is not None:
         commands.append("zone " + zone)
     world.nsupdate_commands = commands
index d585e5e044de00919f07ddd13734d42287b85bbe..1ba0b9325c9c70aefb62fc5aece69c47a8bd6b91 100644 (file)
@@ -18,7 +18,7 @@
 #
 # query for <name> [type X] [class X] [to <addr>[:port]] should have rcode <rc>
 #
-# By default, it will send queries to 127.0.0.1:47806 unless specified
+# By default, it will send queries to 127.0.0.1:56176 unless specified
 # otherwise. The rcode is always checked. If the result is not NO_ANSWER,
 # the result will be stored in last_query_result, which can then be inspected
 # more closely, for instance with the step
@@ -221,7 +221,7 @@ def query(step, dnssec, recursive, query_name, qtype, qclass, addr, port,
     addr ('to <address>', optional): The IP address of the nameserver to query.
                            Defaults to 127.0.0.1.
     port (':<port>', optional): The port number of the nameserver to query.
-                      Defaults to 47806.
+                      Defaults to 56176.
     rcode ('should have rcode <rcode>'): The expected rcode of the answer.
     """
     if qtype is None:
@@ -232,7 +232,7 @@ def query(step, dnssec, recursive, query_name, qtype, qclass, addr, port,
         addr = "127.0.0.1"
     addr = re.sub(r"\[(.+)\]", r"\1", addr) # convert [IPv6_addr] to IPv6_addr
     if port is None:
-        port = 47806
+        port = 56176
     additional_arguments = []
     if dnssec is not None:
         additional_arguments.append("+dnssec")
@@ -254,7 +254,7 @@ def query(step, dnssec, recursive, query_name, qtype, qclass, addr, port,
 def query_soa(step, query_name, address, port, serial=None):
     """
     Convenience function to check the SOA SERIAL value of the given zone at
-    the nameserver at the default address (127.0.0.1:47806).
+    the nameserver at the default address (127.0.0.1:56176).
     Parameters:
     query_name ('for <name>'): The zone to find the SOA record for.
     serial ('should be <number>'): The expected value of the SOA SERIAL.
@@ -264,7 +264,7 @@ def query_soa(step, query_name, address, port, serial=None):
     if address is None:
         address = "127.0.0.1"
     if port is None:
-        port = "47806"
+        port = "56176"
     query_result = QueryResult(query_name, "SOA", "IN", address, port)
     assert "NOERROR" == query_result.rcode,\
         "Got " + query_result.rcode + ", expected NOERROR"
index 0983de5505e81b6158bf5b672d3e1105ef58c71c..5f219911d1930e2a5293ced11df10d46df144a6c 100644 (file)
@@ -61,11 +61,11 @@ class TransferResult(object):
 
 def parse_addr_port(address, port):
     if address is None:
-        address = "::1"         # default address
+        address = "::1"   # default address
     # convert [IPv6_addr] to IPv6_addr:
     address = re.sub(r"\[(.+)\]", r"\1", address)
     if port is None:
-        port = 47806            # default port
+        port = 56176            # default port
     return (address, port)
 
 @step('An AXFR transfer of ([\w.]+)(?: from ([\d.]+|\[[0-9a-fA-F:]+\])(?::([0-9]+))?)?')
@@ -78,19 +78,19 @@ def perform_axfr(step, zone_name, address, port):
     An AXFR transfer of <zone_name> [from <address>:<port>]
 
     Address defaults to ::1
-    Port defaults to 47806
+    Port defaults to 56176
     """
     (address, port) = parse_addr_port(address, port)
     args = [ 'dig', 'AXFR', '@' + str(address), '-p', str(port), zone_name ]
     world.transfer_result = TransferResult(args)
 
-@step('A customized AXFR transfer of ([\w.]+)(?: from ([\d.]+|\[[0-9a-fA-F:]+\])(?::([0-9]+))?)?(?: with pose of (\d+) seconds?)?')
+@step('A customized AXFR transfer of ([\w.]+)(?: from ([\d.]+|\[[0-9a-fA-F:]+\])(?::([0-9]+))?)?(?: with pause of (\d+) seconds?)?')
 def perform_custom_axfr(step, zone_name, address, port, delay):
     """Checks AXFR transfer, and store the result in the form of internal
     CustomTransferResult class, which is compatible with TransferResult.
 
     Step definition:
-    A customized AXFR transfer of <zone_name> [from <address>:<port>] [with pose of <delay> second]
+    A customized AXFR transfer of <zone_name> [from <address>:<port>] [with pause of <delay> second]
 
     If optional delay is specified (not None), it waits for the specified
     seconds after sending the AXFR query before starting receiving
@@ -144,13 +144,13 @@ def perform_ixfr(step, zone_name, serial, address, port, protocol):
     An IXFR transfer of <zone_name> <serial> [from <address>:port] [over <tcp|udp>]
 
     Address defaults to 127.0.0.1
-    Port defaults to 47806
+    Port defaults to 56176
     If either tcp or udp is specified, only this protocol will be used.
     """
     if address is None:
         address = "127.0.0.1"
     if port is None:
-        port = 47806
+        port = 56176
     args = [ 'dig', 'IXFR=' + str(serial), '@' + str(address), '-p', str(port), zone_name ]
     if protocol is not None:
         assert protocol == 'tcp' or protocol == 'udp', "Unknown protocol: " + protocol
index db4bddb90521acba38299b36bcd07176778a0ccd..c3b5bdbbb1fbe82726db09909a7049bf74120840 100644 (file)
@@ -6,7 +6,7 @@ Feature: Xfrin
     # This file is actually automatically created.
     The file data/test_nonexistent_db.sqlite3 should not exist
 
-    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -24,10 +24,10 @@ Feature: Xfrin
     # The DB currently doesn't know anything about the zone, so we install
     # an empty zone for xfrin.
     The file data/test_nonexistent_db.sqlite3 should exist
-    A query for www.example.org to [::1]:47806 should have rcode REFUSED
+    A query for www.example.org to [::1]:56176 should have rcode REFUSED
     Then make empty zone example.org in DB file data/test_nonexistent_db.sqlite3
 
-    When I send bind10 the command Xfrin retransfer example.org IN ::1 47807
+    When I send bind10 the command Xfrin retransfer example.org IN ::1 56177
     # The data we receive contain a NS RRset that refers to three names in the
     # example.org. zone. All these three are nonexistent in the data, producing
     # 3 separate warning messages in the log.
@@ -40,7 +40,7 @@ Feature: Xfrin
     # we can't reliably use 'wait for new'.  In this case this should be the
     # only occurrence of this message, so this should be okay.
     Then wait for bind10 stderr message ZONEMGR_RECEIVE_XFRIN_SUCCESS
-    A query for www.example.org to [::1]:47806 should have rcode NOERROR
+    A query for www.example.org to [::1]:56176 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
@@ -53,18 +53,18 @@ Feature: Xfrin
 
     # Now try to offer another update. However, the validation of
     # data should fail. The old version shoud still be available.
-    When I send bind10 the following commands with cmdctl port 47804:
+    When I send bind10 the following commands with cmdctl port 56174:
     """
     config set data_sources/classes/IN[0]/params/database_file data/example.org-nons.sqlite3
     config set Auth/database_file data/example.org-nons.sqlite3
     config commit
     """
-    Then I send bind10 the command Xfrin retransfer example.org IN ::1 47807
+    Then I send bind10 the command Xfrin retransfer example.org IN ::1 56177
     And wait for new bind10 stderr message XFRIN_ZONE_INVALID
     And wait for new bind10 stderr message XFRIN_INVALID_ZONE_DATA
     # We can't use 'wait for new' here; see above.
     Then wait for bind10 stderr message ZONEMGR_RECEIVE_XFRIN_FAILED
-    A query for example.org type NS to [::1]:47806 should have rcode NOERROR
+    A query for example.org type NS to [::1]:56176 should have rcode NOERROR
     And transfer result should have 13 rrs
 
     Scenario: Transfer with TSIG
@@ -75,7 +75,7 @@ Feature: Xfrin
     # non-TSIG config, add TSIG on the master side, see it fail, add TSIG
     # on the slave side, then check again.
 
-    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
     And wait for master stderr message AUTH_SERVER_STARTED
     And wait for master stderr message XFROUT_STARTED
 
@@ -87,7 +87,7 @@ Feature: Xfrin
     Then make empty zone example.org in DB file data/test_nonexistent_db.sqlite3
 
     # Set slave config for 'automatic' xfrin
-    When I set bind10 configuration Xfrin/zones to [{"master_port": 47806, "name": "example.org", "master_addr": "::1"}]
+    When I set bind10 configuration Xfrin/zones to [{"master_port": 56176, "name": "example.org", "master_addr": "::1"}]
 
     # Make sure it is fully open
     When I send bind10 the command Xfrin retransfer example.org
@@ -96,7 +96,7 @@ Feature: Xfrin
     And wait for bind10 stderr message ZONEMGR_RECEIVE_XFRIN_SUCCESS
 
     # First to master, a transfer should then fail
-    When I send bind10 the following commands with cmdctl port 47804:
+    When I send bind10 the following commands with cmdctl port 56174:
     """
     config add tsig_keys/keys "example.key.:c2VjcmV0"
     config set Xfrout/zone_config[0]/transfer_acl [{"action": "ACCEPT", "from": "::1", "key": "example.key."}]
@@ -127,7 +127,7 @@ Feature: Xfrin
     # do here).
     The file data/test_nonexistent_db.sqlite3 should not exist
 
-    Given I have bind10 running with configuration xfrin/retransfer_master_nons.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master_nons.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -144,10 +144,10 @@ Feature: Xfrin
     # Now we use the first step again to see if the file has been created,
     # then install empty zone data
     The file data/test_nonexistent_db.sqlite3 should exist
-    A query for www.example.org to [::1]:47806 should have rcode REFUSED
+    A query for www.example.org to [::1]:56176 should have rcode REFUSED
     Then make empty zone example.org in DB file data/test_nonexistent_db.sqlite3
 
-    When I send bind10 the command Xfrin retransfer example.org IN ::1 47807
+    When I send bind10 the command Xfrin retransfer example.org IN ::1 56177
     # It should complain once about invalid data, then again that the whole
     # zone is invalid and then reject it.
     And wait for new bind10 stderr message XFRIN_ZONE_INVALID
@@ -157,7 +157,7 @@ Feature: Xfrin
     # The zone still doesn't exist as it is rejected.
     # FIXME: This step fails. Probably an empty zone is created in the data
     # source :-|. This should be REFUSED, not SERVFAIL.
-    A query for www.example.org to [::1]:47806 should have rcode SERVFAIL
+    A query for www.example.org to [::1]:56176 should have rcode SERVFAIL
 
     # TODO:
     # * IXFR - generate an sqlite db that contains the journal. Check it was
@@ -170,7 +170,7 @@ Feature: Xfrin
     # scenario. Just this time, the master contains the differences table
     # and the slave has a previous version of the zone, so we use the IXFR.
 
-    Given I have bind10 running with configuration xfrin/retransfer_master_diffs.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master_diffs.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -184,20 +184,20 @@ Feature: Xfrin
     And wait for bind10 stderr message XFRIN_STARTED
     And wait for bind10 stderr message ZONEMGR_STARTED
 
-    A query for example. type SOA to [::1]:47806 should have rcode NOERROR
+    A query for example. type SOA to [::1]:56176 should have rcode NOERROR
     The answer section of the last query response should be
     """
     example.    3600    IN      SOA     ns1.example. hostmaster.example. 94 3600 900 7200 300
     """
 
     # To invoke IXFR we need to use refresh command
-    When I send bind10 the command Xfrin refresh example. IN ::1 47807
+    When I send bind10 the command Xfrin refresh example. IN ::1 56177
     Then wait for new bind10 stderr message XFRIN_GOT_INCREMENTAL_RESP
     Then wait for new bind10 stderr message XFRIN_IXFR_TRANSFER_SUCCESS not XFRIN_XFR_PROCESS_FAILURE
     # This can't be 'wait for new'
     Then wait for bind10 stderr message ZONEMGR_RECEIVE_XFRIN_SUCCESS
 
-    A query for example. type SOA to [::1]:47806 should have rcode NOERROR
+    A query for example. type SOA to [::1]:56176 should have rcode NOERROR
     The answer section of the last query response should be
     """
     example.    3600    IN      SOA     ns1.example. hostmaster.example. 100 3600 900 7200 300
index 2f43dfdfe672474fcacc43ec5039e246e67baca9..bba4f83ff39a2684ca17edb592bbcb2b6d50e51f 100644 (file)
@@ -7,7 +7,7 @@ Feature: Xfrin incoming notify handling
     server or slave server is unreachable.
 
     Scenario: Handle incoming notify
-    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -22,12 +22,12 @@ 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 to [::1]:47806 should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:56176 should have rcode NXDOMAIN
 
     #
     # Test1 for Xfrout statistics
     #
-    check initial statistics not containing example.org for Xfrout with cmdctl port 47804 except for the following items
+    check initial statistics not containing example.org for Xfrout with cmdctl port 56174 except for the following items
       | item_name                | min_value | max_value |
       | socket.unixdomain.open   |         0 |         1 |
     # Note: .Xfrout.socket.unixdomain.open can be either expected to
@@ -49,7 +49,7 @@ Feature: Xfrin incoming notify handling
     # reason is same as the case of .Xfrout.socket.unixdomain.open. as described
     # above.
 
-    When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
+    When I send bind10 with cmdctl port 56174 the command Xfrout notify example.org IN
     Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
     Then wait for new bind10 stderr message AUTH_RECEIVED_NOTIFY
     # From this point we can't reliably 'wait for new' because the ordering
@@ -61,7 +61,7 @@ Feature: Xfrin incoming notify handling
     Then wait for bind10 stderr message ZONEMGR_RECEIVE_XFRIN_SUCCESS
     Then wait for master stderr message NOTIFY_OUT_REPLY_RECEIVED
 
-    A query for www.example.org to [::1]:47806 should have rcode NOERROR
+    A query for www.example.org to [::1]:56176 should have rcode NOERROR
     # Make sure handling statistics command handling checked below is
     # after this query
     And wait for bind10 stderr message AUTH_SEND_NORMAL_RESPONSE
@@ -73,14 +73,14 @@ Feature: Xfrin incoming notify handling
     #
 
     # wait until the last stats requesting is finished
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     # note that this does not 100% guarantee the stats updated Xfrout
     # statistics.  But there doesn't seem to be a better log message that
     # suggests this event.
     wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
     last bindctl output should not contain "error"
 
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.zones.IN except for the following items
       | item_name                | item_value |
       | _SERVER_.notifyoutv6     |          1 |
@@ -88,7 +88,7 @@ Feature: Xfrin incoming notify handling
       | example.org..notifyoutv6 |          1 |
       | example.org..xfrreqdone  |          1 |
 
-    When I query statistics socket of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics socket of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.socket.unixdomain except for the following items
       | item_name | item_value |
       | open      |          1 |
@@ -127,7 +127,7 @@ Feature: Xfrin incoming notify handling
     # Test for handling incoming notify only in IPv4
     #
     Scenario: Handle incoming notify (IPv4)
-    Given I have bind10 running with configuration xfrin/retransfer_master_v4.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master_v4.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -142,12 +142,12 @@ 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 to 127.0.0.1:47806 should have rcode NXDOMAIN
+    A query for www.example.org to 127.0.0.1:56176 should have rcode NXDOMAIN
 
     #
     # Test1 for Xfrout statistics
     #
-    check initial statistics not containing example.org for Xfrout with cmdctl port 47804 except for the following items
+    check initial statistics not containing example.org for Xfrout with cmdctl port 56174 except for the following items
       | item_name                | min_value | max_value |
       | socket.unixdomain.open   |         0 |         1 |
     # Note: See above about .Xfrout.socket.unixdomain.open.
@@ -161,7 +161,7 @@ Feature: Xfrin incoming notify handling
       | axfr_running    |         0 |         1 |
     # Note: See above about soa_in_progress and axfr_running of Xfrin
 
-    When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
+    When I send bind10 with cmdctl port 56174 the command Xfrout notify example.org IN
     Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
     Then wait for new bind10 stderr message AUTH_RECEIVED_NOTIFY
     # From this point we can't reliably 'wait for new' because the ordering
@@ -173,7 +173,7 @@ Feature: Xfrin incoming notify handling
     Then wait for bind10 stderr message ZONEMGR_RECEIVE_XFRIN_SUCCESS
     Then wait for master stderr message NOTIFY_OUT_REPLY_RECEIVED
 
-    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:56176 should have rcode NOERROR
     # Make sure handling statistics command handling checked below is
     # after this query
     And wait for bind10 stderr message AUTH_SEND_NORMAL_RESPONSE
@@ -185,14 +185,14 @@ Feature: Xfrin incoming notify handling
     #
 
     # wait until the last stats requesting is finished
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     # note that this does not 100% guarantee the stats updated Xfrout
     # statistics.  But there doesn't seem to be a better log message that
     # suggests this event.
     wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
     last bindctl output should not contain "error"
 
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.zones.IN except for the following items
       | item_name                | item_value |
       | _SERVER_.notifyoutv4     |          1 |
@@ -200,7 +200,7 @@ Feature: Xfrin incoming notify handling
       | example.org..notifyoutv4 |          1 |
       | example.org..xfrreqdone  |          1 |
 
-    When I query statistics socket of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics socket of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.socket.unixdomain except for the following items
       | item_name | item_value |
       | open      |          1 |
@@ -239,7 +239,7 @@ Feature: Xfrin incoming notify handling
     # Test for Xfr request rejected
     #
     Scenario: Handle incoming notify (XFR request rejected)
-    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -254,12 +254,12 @@ 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 to [::1]:47806 should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:56176 should have rcode NXDOMAIN
 
     #
     # Test1 for Xfrout statistics
     #
-    check initial statistics not containing example.org for Xfrout with cmdctl port 47804 except for the following items
+    check initial statistics not containing example.org for Xfrout with cmdctl port 56174 except for the following items
       | item_name                | min_value | max_value |
       | socket.unixdomain.open   |         0 |         1 |
     # Note: See above about .Xfrout.socket.unixdomain.open.
@@ -277,14 +277,14 @@ Feature: Xfrin incoming notify handling
     # set transfer_acl rejection
     # Local xfr requests from Xfrin module would be rejected here.
     #
-    When I send bind10 the following commands with cmdctl port 47804
+    When I send bind10 the following commands with cmdctl port 56174
     """
     config set Xfrout/zone_config[0]/transfer_acl [{"action":  "REJECT", "from": "::1"}]
     config commit
     """
     last bindctl output should not contain Error
 
-    When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
+    When I send bind10 with cmdctl port 56174 the command Xfrout notify example.org IN
     Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
     Then wait for new bind10 stderr message AUTH_RECEIVED_NOTIFY
     # can't use 'wait for new' below.
@@ -294,7 +294,7 @@ Feature: Xfrin incoming notify handling
     Then wait for bind10 stderr message ZONEMGR_RECEIVE_XFRIN_FAILED not ZONEMGR_RECEIVE_XFRIN_SUCCESS
     Then wait for master stderr message NOTIFY_OUT_REPLY_RECEIVED
 
-    A query for www.example.org to [::1]:47806 should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:56176 should have rcode NXDOMAIN
 
     #
     # Test3 for Xfrout statistics
@@ -303,11 +303,11 @@ Feature: Xfrin incoming notify handling
     #
 
     # wait until the last stats requesting is finished
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
     last bindctl output should not contain "error"
 
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.zones.IN except for the following items
       | item_name                | item_value | min_value | max_value |
       | _SERVER_.notifyoutv6     |          1 |           |           |
@@ -318,7 +318,7 @@ Feature: Xfrin incoming notify handling
     # up to 3. See this for details
     # http://git.bind10.isc.org/~tester/builder/BIND10-lettuce/20120918210000-MacOS/logs/lettuce.out
 
-    When I query statistics socket of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics socket of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.socket.unixdomain except for the following items
       | item_name | item_value |
       | open      |          1 |
@@ -355,7 +355,7 @@ Feature: Xfrin incoming notify handling
     # Test for Xfr request rejected in IPv4
     #
     Scenario: Handle incoming notify (XFR request rejected in IPv4)
-    Given I have bind10 running with configuration xfrin/retransfer_master_v4.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master_v4.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -370,12 +370,12 @@ 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 to 127.0.0.1:47806 should have rcode NXDOMAIN
+    A query for www.example.org to 127.0.0.1:56176 should have rcode NXDOMAIN
 
     #
     # Test1 for Xfrout statistics
     #
-    check initial statistics not containing example.org for Xfrout with cmdctl port 47804 except for the following items
+    check initial statistics not containing example.org for Xfrout with cmdctl port 56174 except for the following items
       | item_name                | min_value | max_value |
       | socket.unixdomain.open   |         0 |         1 |
     # Note: See above about .Xfrout.socket.unixdomain.open.
@@ -393,14 +393,14 @@ Feature: Xfrin incoming notify handling
     # set transfer_acl rejection
     # Local xfr requests from Xfrin module would be rejected here.
     #
-    When I send bind10 the following commands with cmdctl port 47804
+    When I send bind10 the following commands with cmdctl port 56174
     """
     config set Xfrout/zone_config[0]/transfer_acl [{"action":  "REJECT", "from": "127.0.0.1"}]
     config commit
     """
     last bindctl output should not contain Error
 
-    When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
+    When I send bind10 with cmdctl port 56174 the command Xfrout notify example.org IN
     Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
     Then wait for new bind10 stderr message AUTH_RECEIVED_NOTIFY
     # can't use 'wait for new' below.
@@ -410,7 +410,7 @@ Feature: Xfrin incoming notify handling
     Then wait for bind10 stderr message ZONEMGR_RECEIVE_XFRIN_FAILED not ZONEMGR_RECEIVE_XFRIN_SUCCESS
     Then wait for master stderr message NOTIFY_OUT_REPLY_RECEIVED
 
-    A query for www.example.org to 127.0.0.1:47806 should have rcode NXDOMAIN
+    A query for www.example.org to 127.0.0.1:56176 should have rcode NXDOMAIN
 
     #
     # Test3 for Xfrout statistics
@@ -418,12 +418,12 @@ Feature: Xfrin incoming notify handling
     # check statistics change
     #
 
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     # wait until stats request at least after NOTIFY_OUT_REPLY_RECEIVED
     wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
     last bindctl output should not contain "error"
 
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.zones.IN except for the following items
       | item_name                | item_value | min_value | max_value |
       | _SERVER_.notifyoutv4     |          1 |           |           |
@@ -434,7 +434,7 @@ Feature: Xfrin incoming notify handling
     # up to 3. See this for details
     # http://git.bind10.isc.org/~tester/builder/BIND10-lettuce/20120918210000-MacOS/logs/lettuce.out
 
-    When I query statistics socket of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics socket of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.socket.unixdomain except for the following items
       | item_name | item_value |
       | open      |          1 |
@@ -471,7 +471,7 @@ Feature: Xfrin incoming notify handling
     # Test for unreachable slave
     #
     Scenario: Handle incoming notify (unreachable slave)
-    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -479,7 +479,7 @@ Feature: Xfrin incoming notify handling
     And wait for master stderr message ZONEMGR_STARTED
     And wait for master stderr message STATS_STARTING
 
-    When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
+    When I send bind10 with cmdctl port 56174 the command Xfrout notify example.org IN
     Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
     Then wait for new master stderr message NOTIFY_OUT_SENDING_NOTIFY
     Then wait for new master stderr message NOTIFY_OUT_TIMEOUT
@@ -490,18 +490,18 @@ Feature: Xfrin incoming notify handling
     # check statistics change
     #
 
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     # wait until stats request at least after NOTIFY_OUT_TIMEOUT
     wait for new master stderr message XFROUT_RECEIVED_GETSTATS_COMMAND
     last bindctl output should not contain "error"
 
-    When I query statistics zones of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics zones of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.zones.IN except for the following items
       | item_name                | min_value | max_value |
       | _SERVER_.notifyoutv6     |         1 |         5 |
       | example.org..notifyoutv6 |         1 |         5 |
 
-    When I query statistics socket of bind10 module Xfrout with cmdctl port 47804
+    When I query statistics socket of bind10 module Xfrout with cmdctl port 56174
     The statistics counters are 0 in category .Xfrout.socket.unixdomain except for the following items
       | item_name | item_value |
       | open      |          1 |
@@ -510,7 +510,7 @@ Feature: Xfrin incoming notify handling
     # Test for NOTIFY that would result in NOTAUTH
     #
     Scenario: Handle incoming notify that does match authoritative zones
-    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -529,7 +529,7 @@ Feature: Xfrin incoming notify handling
     # replace master's data source with unmatched zone for slave's zone.
     # we restart Xfrout to make it sure.
     #
-    When I send bind10 the following commands with cmdctl port 47804
+    When I send bind10 the following commands with cmdctl port 56174
     """
     config set data_sources/classes/IN[0]/params/database_file data/ixfr-out/zones.sqlite3
     config set Auth/database_file data/ixfr-out/zones.sqlite3
@@ -540,20 +540,20 @@ Feature: Xfrin incoming notify handling
     last bindctl output should not contain "error"
     And wait for new master stderr message XFROUT_STARTED
 
-    A query for www.example.com to [::1]:47806 should have rcode REFUSED
+    A query for www.example.com to [::1]:56176 should have rcode REFUSED
 
-    When I send bind10 with cmdctl port 47804 the command Xfrout notify example.com IN
+    When I send bind10 with cmdctl port 56174 the command Xfrout notify example.com IN
     Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
     Then wait for new bind10 stderr message AUTH_RECEIVED_NOTIFY_NOTAUTH
     Then wait for new master stderr message NOTIFY_OUT_REPLY_RECEIVED
 
-    A query for www.example.com to [::1]:47806 should have rcode REFUSED
+    A query for www.example.com to [::1]:56176 should have rcode REFUSED
 
     #
     # Test for NOTIFY that's not in the secondaries list
     #
     Scenario: Handle incoming notify that is not in the secondaries list
-    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -580,22 +580,22 @@ Feature: Xfrin incoming notify handling
     last bindctl output should not contain "error"
     And wait for new bind10 stderr message ZONEMGR_STARTED
 
-    A query for www.example.org to [::1]:47806 should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:56176 should have rcode NXDOMAIN
 
-    When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
+    When I send bind10 with cmdctl port 56174 the command Xfrout notify example.org IN
     Then wait for new master stderr message XFROUT_NOTIFY_COMMAND
     Then wait for new bind10 stderr message AUTH_RECEIVED_NOTIFY
     Then wait for new bind10 stderr message ZONEMGR_RECEIVE_NOTIFY
     Then wait for new bind10 stderr message ZONEMGR_ZONE_NOTIFY_NOT_SECONDARY
     Then wait for new master stderr message NOTIFY_OUT_REPLY_RECEIVED
 
-    A query for www.example.org to [::1]:47806 should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:56176 should have rcode NXDOMAIN
 
     #
     # Test for NOTIFY when zonemgr is not running
     #
     Scenario: Handle incoming notify while zonemgr is not running
-    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 47804 as master
+    Given I have bind10 running with configuration xfrin/retransfer_master.conf with cmdctl port 56174 as master
     And wait for master stderr message BIND10_STARTED_CC
     And wait for master stderr message CMDCTL_STARTED
     And wait for master stderr message AUTH_SERVER_STARTED
@@ -620,15 +620,15 @@ Feature: Xfrin incoming notify handling
     last bindctl output should not contain "error"
     And wait for new bind10 stderr message BIND10_PROCESS_ENDED
 
-    A query for www.example.org to [::1]:47806 should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:56176 should have rcode NXDOMAIN
 
-    When I send bind10 with cmdctl port 47804 the command Xfrout notify example.org IN
+    When I send bind10 with cmdctl port 56174 the command Xfrout notify example.org IN
     Then wait for master stderr message XFROUT_NOTIFY_COMMAND
     Then wait for new bind10 stderr message AUTH_RECEIVED_NOTIFY
     Then wait for new bind10 stderr message AUTH_ZONEMGR_NOTEXIST not AUTH_ZONEMGR_ERROR
     Then wait for master stderr message NOTIFY_OUT_TIMEOUT not NOTIFY_OUT_REPLY_RECEIVED
 
-    A query for www.example.org to [::1]:47806 should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:56176 should have rcode NXDOMAIN
 
     #
     # Test for unreachable master
@@ -642,7 +642,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 to [::1]:47806 should have rcode NXDOMAIN
+    A query for www.example.org to [::1]:56176 should have rcode NXDOMAIN
 
     #
     # Test1 for Xfrin statistics
index 7f4e4de7e83a90cfba0bf46ef7059e1204badaf3..e2ca7be59a65694d35a7babaa678573fd64e5a52 100644 (file)
@@ -35,5 +35,5 @@ Feature: Xfrout
     And wait for bind10 stderr message XFROUT_STARTED
     And wait for bind10 stderr message ZONEMGR_STARTED
 
-    When I do a customized AXFR transfer of example.org from [::1]:47806 with pose of 5 seconds
+    When I do a customized AXFR transfer of example.org from [::1]:56176 with pause of 5 seconds
     Then transfer result should have 50001 rrs