Sha256: ac936f6c086a2a353f22e685c7bf8080eab164edbe5e406ae3a90daa5b961786

Contents?: true

Size: 678 Bytes

Versions: 21

Compression:

Stored size: 678 Bytes

Contents

require_relative '../helper'
require 'fluent/plugin_helper/cert_option'

class CertOptionPluginHelperTest < Test::Unit::TestCase
  class Dummy < Fluent::Plugin::TestBase
    helpers :cert_option
  end

  test 'can load PEM encoded certificate file' do
    d = Dummy.new
    certs = d.cert_option_certificates_from_file("test/plugin_helper/data/cert/cert.pem")
    assert_equal(1, certs.length)
    certs = d.cert_option_certificates_from_file("test/plugin_helper/data/cert/cert-with-no-newline.pem")
    assert_equal(1, certs.length)
    certs = d.cert_option_certificates_from_file("test/plugin_helper/data/cert/cert-with-CRLF.pem")
    assert_equal(1, certs.length)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fluentd-1.11.1-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.11.1-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.11.1 test/plugin_helper/test_cert_option.rb
fluentd-1.11.0-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.11.0-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.11.0 test/plugin_helper/test_cert_option.rb
fluentd-1.10.4-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.4-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.4 test/plugin_helper/test_cert_option.rb
fluentd-1.10.3-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.3-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.3 test/plugin_helper/test_cert_option.rb
fluentd-1.10.2-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.2-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.2 test/plugin_helper/test_cert_option.rb
fluentd-1.10.1-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.1-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.1 test/plugin_helper/test_cert_option.rb
fluentd-1.10.0-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.10.0-x86-mingw32 test/plugin_helper/test_cert_option.rb