[Groonga-commit] droonga/fluent-plugin-droonga at ac601cb [master] test: remove a test that doesn't check multiple outputs specific case

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jan 30 15:21:20 JST 2014


Kouhei Sutou	2014-01-30 15:21:20 +0900 (Thu, 30 Jan 2014)

  New Revision: ac601cbae0655fdcf5810f5892f2610993464b63
  https://github.com/droonga/fluent-plugin-droonga/commit/ac601cbae0655fdcf5810f5892f2610993464b63

  Message:
    test: remove a test that doesn't check multiple outputs specific case

  Modified files:
    test/unit/plugin/distributor/test_search_planner.rb

  Modified: test/unit/plugin/distributor/test_search_planner.rb (+0 -125)
===================================================================
--- test/unit/plugin/distributor/test_search_planner.rb    2014-01-30 15:16:15 +0900 (50b5488)
+++ test/unit/plugin/distributor/test_search_planner.rb    2014-01-30 15:21:20 +0900 (5d1aff6)
@@ -111,131 +111,6 @@ class DistributedSearchPlannerTest < Test::Unit::TestCase
                      ],
                      dependencies(messages))
       end
-
-      def test_distribute
-        expected_plan = []
-
-        expected_plan << {
-          "type" => "search_reduce",
-          "body" => {
-            "errors" => {
-              "errors_reduced" => {
-                "limit" => -1,
-                "type"  => "sum",
-              }
-            },
-            "query1" => {
-              "query1_reduced" => {
-                "count" => {
-                  "type" => "sum",
-                },
-              },
-            },
-            "query2" => {
-              "query2_reduced" => {
-                "count" => {
-                  "type" => "sum",
-                },
-              },
-            },
-            "query3" => {
-              "query3_reduced" => {
-                "count" => {
-                  "type" => "sum",
-                },
-              },
-            },
-          },
-          "inputs" => [
-            "errors",
-            "query1",
-            "query2",
-            "query3",
-          ],
-          "outputs" => [
-            "errors_reduced",
-            "query1_reduced",
-            "query2_reduced",
-            "query3_reduced",
-          ],
-        }
-
-        gatherer = {
-          "type" => "search_gather",
-          "body" => {
-            "errors_reduced" => {
-              "output" => "errors",
-            },
-            "query1_reduced" => {
-              "output" => "query1",
-              "elements" => {
-              },
-            },
-            "query2_reduced" => {
-              "output" => "query2",
-              "elements" => {
-              },
-            },
-            "query3_reduced" => {
-              "output" => "query3",
-              "elements" => {
-              },
-            },
-          },
-          "inputs" => [
-            "errors_reduced",
-            "query1_reduced",
-            "query2_reduced",
-            "query3_reduced",
-          ],
-          "post" => true,
-        }
-        expected_plan << gatherer
-
-        searcher = {
-          "type" => "broadcast",
-          "command" => "search",
-          "dataset" => "Droonga",
-          "body" => {
-            "queries" => {
-              "query1" => {
-                "source" => "User",
-                "output" => {
-                  "format" => "simple",
-                  "elements" => ["count"],
-                  "limit" => 0,
-                },
-              },
-              "query2" => {
-                "source" => "User",
-                "output" => {
-                  "format" => "simple",
-                  "elements" => ["count"],
-                  "limit" => 0,
-                },
-              },
-              "query3" => {
-                "source" => "User",
-                "output" => {
-                  "format" => "simple",
-                  "elements" => ["count"],
-                  "limit" => 0,
-                },
-              },
-            },
-          },
-          "outputs" => [
-            "errors",
-            "query1",
-            "query2",
-            "query3",
-          ],
-          "replica" => "random",
-        }
-        expected_plan << searcher
-
-        assert_equal(expected_plan, plan(@request))
-      end
     end
   end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index