Sha256: 8dacd2d79d3a09b9c3c45977a5fe21f17e0f26a7f0b563d6b28f2617818b819b
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require 'helper' class ConfigPitTest < Test::Unit::TestCase def setup Pit.set("test", :data => {"user" => "fiorung", "password" => "xenoblade" }) @module = Fluent::Config::Pit end def test_extract attrs = { 'tag' => 'mytag', 'user' => '$pit[user]', 'password' => '$pit[password]' } conf = @module.extract Fluent::Config::Element.new('pit', 'test', attrs, []) assert_equal conf['tag'], 'mytag' assert_equal conf['user'], 'fiorung' assert_equal conf['password'], 'xenoblade' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-config_pit-0.0.2 | test/plugin/test_pit.rb |
fluent-plugin-config_pit-0.0.1 | test/plugin/test_pit.rb |