Sha256: 1e890342e2210a78c4975b210d18b6e64b64ff12d3bbb85f70e35cf657a42714
Contents?: true
Size: 963 Bytes
Versions: 12
Compression:
Stored size: 963 Bytes
Contents
require 'helper' require 'fluent/plugin/kafka_plugin_util' class KafkaPluginUtilTest < Test::Unit::TestCase def self.config_param(name, type, options) end include Fluent::KafkaPluginUtil::SSLSettings def config_param end def setup Fluent::Test.setup end def test_read_ssl_file_when_nil stub(File).read(anything) do |path| path end assert_equal(nil, read_ssl_file(nil)) end def test_read_ssl_file_when_empty_string stub(File).read(anything) do |path| path end assert_equal(nil, read_ssl_file("")) end def test_read_ssl_file_when_non_empty_path stub(File).read(anything) do |path| path end assert_equal("path", read_ssl_file("path")) end def test_read_ssl_file_when_non_empty_array stub(File).read(anything) do |path| path end assert_equal(["a","b"], read_ssl_file(["a","b"])) end end
Version data entries
12 entries across 12 versions & 1 rubygems