test/config/test_configure_proxy.rb in fluentd-0.12.17 vs test/config/test_configure_proxy.rb in fluentd-0.12.18

- old
+ new

@@ -136,44 +136,40 @@ setup do @proxy = Fluent::Config::ConfigureProxy.new(:section) end test 'empty proxy' do - assert_equal("\n", @proxy.dump) + assert_equal("", @proxy.dump) end test 'plain proxy w/o default value' do @proxy.config_param(:name, :string) assert_equal(<<CONFIG, @proxy.dump) - name: string: <nil> CONFIG end test 'plain proxy w/ default value' do @proxy.config_param(:name, :string, default: "name1") assert_equal(<<CONFIG, @proxy.dump) - name: string: <"name1"> CONFIG end test 'plain proxy w/ default value using config_set_default' do @proxy.config_param(:name, :string) @proxy.config_set_default(:name, "name1") assert_equal(<<CONFIG, @proxy.dump) - name: string: <"name1"> CONFIG end test 'single sub proxy' do @proxy.config_section(:sub) do config_param(:name, :string, default: "name1") end assert_equal(<<CONFIG, @proxy.dump) - sub name: string: <"name1"> CONFIG end @@ -185,11 +181,10 @@ config_param(:name3, :string, default: "name3") config_param(:name4, :string, default: "name4") end end assert_equal(<<CONFIG, @proxy.dump) - sub name1: string: <"name1"> name2: string: <"name2"> sub2 name3: string: <"name3"> @@ -199,20 +194,18 @@ sub_test_case 'w/ description' do test 'single proxy' do @proxy.config_param(:name, :string, desc: "description for name") assert_equal(<<CONFIG, @proxy.dump) - name: string: <nil> # description for name CONFIG end test 'single proxy using config_set_desc' do @proxy.config_param(:name, :string) @proxy.config_set_desc(:name, "description for name") assert_equal(<<CONFIG, @proxy.dump) - name: string: <nil> # description for name CONFIG end test 'sub proxy' do @@ -223,11 +216,10 @@ config_param(:name3, :string, default: "name3") config_param(:name4, :string, default: "name4", desc: "desc4") end end assert_equal(<<CONFIG, @proxy.dump) - sub name1: string: <"name1"> # desc1 name2: string: <"name2"> # desc2 sub2 name3: string: <"name3"> @@ -245,10 +237,9 @@ desc("desc4") config_param(:name4, :string, default: "name4") end end assert_equal(<<CONFIG, @proxy.dump) - sub name1: string: <"name1"> # desc1 name2: string: <"name2"> # desc2 sub2 name3: string: <"name3">