[Groonga-commit] droonga/fluent-plugin-droonga at e8c1af3 [master] Validate "plugins" of datasets

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Feb 12 15:35:35 JST 2014


YUKI Hiroshi	2014-02-12 15:35:35 +0900 (Wed, 12 Feb 2014)

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

  Message:
    Validate "plugins" of datasets

  Modified files:
    lib/droonga/catalog/base.rb
    test/unit/catalog/test_version1.rb

  Modified: lib/droonga/catalog/base.rb (+4 -0)
===================================================================
--- lib/droonga/catalog/base.rb    2014-02-12 15:24:56 +0900 (0fc953d)
+++ lib/droonga/catalog/base.rb    2014-02-12 15:35:35 +0900 (b9bad0a)
@@ -238,6 +238,10 @@ module Droonga
         validate_parameter_type(dataset["ring"],
                                 "#{name}.ring",
                                 Hash)
+
+        validate_parameter_type(dataset["plugins"],
+                                "#{name}.plugins",
+                                Array)
       end
 
       def validate_ring(ring, name)

  Modified: test/unit/catalog/test_version1.rb (+1 -0)
===================================================================
--- test/unit/catalog/test_version1.rb    2014-02-12 15:24:56 +0900 (7b03b9e)
+++ test/unit/catalog/test_version1.rb    2014-02-12 15:35:35 +0900 (bbdc785)
@@ -103,6 +103,7 @@ class CatalogTest < Test::Unit::TestCase
               "workers" => 1,
               "number_of_partitions" => 1,
               "number_of_replicas" => 1,
+              "plugins" => [],
               "ring" => {
                 "localhost:23041" => {
                   "weight" =>  50,
-------------- next part --------------
HTML����������������������������...
Download 



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