Sha256: af86acbdc3d1c178e31d1c999846e123e549222d2b3b5a5a34615d512b527d8e
Contents?: true
Size: 776 Bytes
Versions: 3
Compression:
Stored size: 776 Bytes
Contents
require 'helper' require 'fluent/plugin/kafka_plugin_util' class File def File::read(path) path end end 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 assert_equal(nil, read_ssl_file(nil)) end def test_read_ssl_file_when_empty_string assert_equal(nil, read_ssl_file("")) end def test_read_ssl_file_when_non_empty_path assert_equal("path", read_ssl_file("path")) end def test_read_ssl_file_when_non_empty_array assert_equal(["a","b"], read_ssl_file(["a","b"])) end end
Version data entries
3 entries across 3 versions & 1 rubygems