BIND 10 master, updated. 365b5c443aa170831bc1d6a40b0e3323192fb532 [1220] Add testcase which checks use of trailing slashes with indices

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Apr 3 13:41:43 UTC 2012


The branch, master has been updated
       via  365b5c443aa170831bc1d6a40b0e3323192fb532 (commit)
      from  fa6a9dbe36ffc55bcadf54a523bedcfb7118474c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 365b5c443aa170831bc1d6a40b0e3323192fb532
Author: Mukund Sivaraman <muks at isc.org>
Date:   Fri Mar 30 01:52:23 2012 +0530

    [1220] Add testcase which checks use of trailing slashes with indices
    
    Trailing slashes are supposed to work. It should not result in an error
    like this:
    
      > config show Resolver/listen_on
      Resolver/listen_on[0]/address   "::1"   string
      Resolver/listen_on[0]/port      53      integer
      > config show Resolver/listen_on/
      Error: Resolver/listen_on/[0]/address not found
    
    Bug #1220 was fixed as a part of bug #1649 (see commit
    b31b7eff36397f30f00d7c31805bf7634395dfa8). We just add another testcase
    for bug #1220.

-----------------------------------------------------------------------

Summary of changes:
 .../python/isc/config/tests/config_data_test.py    |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/python/isc/config/tests/config_data_test.py b/src/lib/python/isc/config/tests/config_data_test.py
index 97caad8..46d27b1 100644
--- a/src/lib/python/isc/config/tests/config_data_test.py
+++ b/src/lib/python/isc/config/tests/config_data_test.py
@@ -618,6 +618,16 @@ class TestMultiConfigData(unittest.TestCase):
         maps = self.mcd.get_value_maps("/Spec22/value9/")
         self.assertEqual(expected, maps)
 
+        # A slash at the end should not produce different output with
+        # indices too
+        expected2 = [{'default': True,
+                      'type': 'integer',
+                      'name': 'Spec22/value5[1]',
+                      'value': 'b',
+                      'modified': False}]
+        maps = self.mcd.get_value_maps("/Spec22/value5[1]/")
+        self.assertEqual(expected2, maps)
+
     def test_get_value_maps_named_set(self):
         module_spec = isc.config.module_spec_from_file(self.data_path + os.sep + "spec32.spec")
         self.mcd.set_specification(module_spec)



More information about the bind10-changes mailing list