BIND 10 trac2922, updated. 42d2c5dd25db24de34ca7ac998d60478b52e4536 [2822] Test unknown command for msgq
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed May 29 12:08:03 UTC 2013
The branch, trac2922 has been updated
via 42d2c5dd25db24de34ca7ac998d60478b52e4536 (commit)
from be23568ad3e10931387612fa90f8d2568e9878e7 (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 42d2c5dd25db24de34ca7ac998d60478b52e4536
Author: Michal 'vorner' Vaner <vorner at vorner.cz>
Date: Wed May 29 09:59:52 2013 +0200
[2822] Test unknown command for msgq
-----------------------------------------------------------------------
Summary of changes:
src/bin/msgq/tests/msgq_test.py | 9 +++++++++
1 file changed, 9 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/msgq/tests/msgq_test.py b/src/bin/msgq/tests/msgq_test.py
index e5a5656..e248b10 100644
--- a/src/bin/msgq/tests/msgq_test.py
+++ b/src/bin/msgq/tests/msgq_test.py
@@ -178,6 +178,15 @@ class MsgQTest(unittest.TestCase):
data = json.loads(msg[6 + header_len:].decode('utf-8'))
return (header, data)
+ def test_unknown_command(self):
+ """
+ Test the command handler returns error when the command is unknown.
+ """
+ # Fake we are running, to disable test workarounds
+ self.__msgq.running = True
+ self.assertEqual({'result': [1, "unknown command: unknown"]},
+ self.__msgq.command_handler('unknown', {}))
+
def test_undeliverable_errors(self):
"""
Send several packets through the MsgQ and check it generates
More information about the bind10-changes
mailing list