test/config/test_configure_proxy.rb in fluentd-1.1.3 vs test/config/test_configure_proxy.rb in fluentd-1.2.0.pre1

- old
+ new

@@ -191,32 +191,33 @@ assert_nothing_raised{ @proxy.config_param(:p5, :size, **opt) } assert_nothing_raised{ @proxy.config_param(:p6, :bool, **opt) } assert_nothing_raised{ @proxy.config_param(:p7, :time, **opt) } assert_nothing_raised{ @proxy.config_param(:p8, :hash, **opt) } assert_nothing_raised{ @proxy.config_param(:p9, :array, **opt) } + assert_nothing_raised{ @proxy.config_param(:pa, :regexp, **opt) } end - data(string: :string, integer: :integer, float: :float, size: :size, bool: :bool, time: :time, hash: :hash, array: :array) + data(string: :string, integer: :integer, float: :float, size: :size, bool: :bool, time: :time, hash: :hash, array: :array, regexp: :regexp) test 'deny list for non-enum types' do |type| assert_raise ArgumentError.new(":list is valid only for :enum type, but #{type}: arg") do @proxy.config_argument(:arg, type, list: [:a, :b]) end assert_raise ArgumentError.new(":list is valid only for :enum type, but #{type}: p1") do @proxy.config_param(:p1, type, list: [:a, :b]) end end - data(string: :string, integer: :integer, float: :float, size: :size, bool: :bool, time: :time) + data(string: :string, integer: :integer, float: :float, size: :size, bool: :bool, time: :time, regexp: :regexp) test 'deny value_type for non-hash/array types' do |type| assert_raise ArgumentError.new(":value_type is valid only for :hash and :array, but #{type}: arg") do @proxy.config_argument(:arg, type, value_type: :string) end assert_raise ArgumentError.new(":value_type is valid only for :hash and :array, but #{type}: p1") do @proxy.config_param(:p1, type, value_type: :integer) end end - data(string: :string, integer: :integer, float: :float, size: :size, bool: :bool, time: :time, array: :array) + data(string: :string, integer: :integer, float: :float, size: :size, bool: :bool, time: :time, array: :array, regexp: :regexp) test 'deny symbolize_keys for non-hash types' do |type| assert_raise ArgumentError.new(":symbolize_keys is valid only for :hash, but #{type}: arg") do @proxy.config_argument(:arg, type, symbolize_keys: true) end assert_raise ArgumentError.new(":symbolize_keys is valid only for :hash, but #{type}: p1") do