BIND 10 trac1175, updated. 9d8957f63ba69be13e45e496b95e6bf377c60ee3 [1175] send the command 'status' to the stats when it started, and then send the command 'shutdown', and also check each value returned by each invoked command

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Sep 6 02:41:10 UTC 2011


The branch, trac1175 has been updated
       via  9d8957f63ba69be13e45e496b95e6bf377c60ee3 (commit)
      from  d07924557750d327b2cfbe5762e83a6153e0f85e (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 9d8957f63ba69be13e45e496b95e6bf377c60ee3
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Sep 6 11:42:42 2011 +0900

    [1175] send the command 'status' to the stats when it started, and then send
           the command 'shutdown', and also check each value returned by each
           invoked command

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

Summary of changes:
 src/bin/stats/tests/b10-stats-httpd_test.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/stats/tests/b10-stats-httpd_test.py b/src/bin/stats/tests/b10-stats-httpd_test.py
index 526d5f2..ccadeb2 100644
--- a/src/bin/stats/tests/b10-stats-httpd_test.py
+++ b/src/bin/stats/tests/b10-stats-httpd_test.py
@@ -203,9 +203,12 @@ class TestHttpHandler(unittest.TestCase):
 
 
     def test_do_GET_failed1(self):
+        # checks status
+        self.assertEqual(send_command("status", "Stats"),
+                         (0, "Stats is up. (PID " + str(os.getpid()) + ")"))
         # failure case(Stats is down)
         self.assertTrue(self.stats.running)
-        send_shutdown("Stats") # Stats is down
+        self.assertEqual(send_shutdown("Stats"), (0, None)) # Stats is down
         self.assertFalse(self.stats.running)
         self.stats_httpd.cc_session.set_timeout(milliseconds=100)
 




More information about the bind10-changes mailing list