[Groonga-commit] droonga/fluent-plugin-droonga at a406e00 [master] Define zones for dummy input catalog.json

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 12 16:08:34 JST 2014


YUKI Hiroshi	2014-02-12 16:08:34 +0900 (Wed, 12 Feb 2014)

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

  Message:
    Define zones for dummy input catalog.json

  Modified files:
    test/unit/catalog/test_version1.rb

  Modified: test/unit/catalog/test_version1.rb (+5 -1)
===================================================================
--- test/unit/catalog/test_version1.rb    2014-02-12 16:06:25 +0900 (bbdc785)
+++ test/unit/catalog/test_version1.rb    2014-02-12 16:08:34 +0900 (7fcf1e6)
@@ -19,6 +19,7 @@ class CatalogTest < Test::Unit::TestCase
   private
   def minimum_data
     {
+      "zones" => [],
       "farms" => {},
       "datasets" => {},
     }
@@ -93,6 +94,7 @@ class CatalogTest < Test::Unit::TestCase
     class PluginsTest < self
       def setup
         @data = {
+          "zones" => [farm_name],
           "farms" => {
             farm_name => {
               "device" => ".",
@@ -162,7 +164,9 @@ class CatalogTest < Test::Unit::TestCase
 
         private
         def total_weight(dataset)
-          catalog = create_catalog({"datasets" => {}, "farms" => {}},
+          catalog = create_catalog({ "zones" => [],
+                                     "farms" => {},
+                                     "datasets" => {} },
                                    "base-path")
           catalog.send(:compute_total_weight, dataset)
         end
-------------- next part --------------
HTML����������������������������...
Download 



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