YUKI Hiroshi
null+****@clear*****
Wed Mar 25 16:18:10 JST 2015
YUKI Hiroshi 2015-03-25 16:18:10 +0900 (Wed, 25 Mar 2015) New Revision: c615f357c7dd2ac7e77c2f7a6294c4961b5736aa https://github.com/droonga/droonga-engine/commit/c615f357c7dd2ac7e77c2f7a6294c4961b5736aa Message: Follow test for "sytem.status" command to the latest implementation Modified files: test/unit/plugins/system/test_status.rb Modified: test/unit/plugins/system/test_status.rb (+12 -0) =================================================================== --- test/unit/plugins/system/test_status.rb 2015-03-25 15:53:35 +0900 (1d0cb13) +++ test/unit/plugins/system/test_status.rb 2015-03-25 16:18:10 +0900 (c983530) @@ -29,6 +29,7 @@ class SystemStatusHandlerTest < Test::Unit::TestCase @worker = StubWorker.new @messenger = Droonga::Test::StubHandlerMessenger.new @messenger.cluster = StubCluster.new + @messenger.engine_state = StubEngineState.new @loop = nil @handler = Droonga::Plugins::System::StatusHandler.new("name", @worker.context, @@ -61,6 +62,16 @@ class SystemStatusHandlerTest < Test::Unit::TestCase end end + class StubEngineState + def name + "127.0.0.1:10031/droonga" + end + + def internal_name + "127.0.0.1:12345/droonga" + end + end + public def test_request request = {} @@ -77,6 +88,7 @@ class SystemStatusHandlerTest < Test::Unit::TestCase "status" => "dead", }, }, + "reporter" => "127.0.0.1:12345/droon****@127*****:10031/droonga", } assert_equal(status, response) end -------------- next part -------------- HTML����������������������������... Download