Sha256: 984e9befe1b4b31438476d90513f0aecd468256d7269f37e488b84d897c80a69

Contents?: true

Size: 544 Bytes

Versions: 51

Compression:

Stored size: 544 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)
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
fluentd-1.9.3-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.9.3-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.9.3 test/plugin_helper/test_cert_option.rb
fluentd-1.9.2-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.9.2-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.9.2 test/plugin_helper/test_cert_option.rb
fluentd-1.9.1-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.9.1-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.9.1 test/plugin_helper/test_cert_option.rb
fluentd-1.9.0-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.9.0-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.9.0 test/plugin_helper/test_cert_option.rb
fluentd-1.9.0.rc2 test/plugin_helper/test_cert_option.rb
fluentd-1.9.0.rc1 test/plugin_helper/test_cert_option.rb
fluentd-1.8.1-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.8.1-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.8.1 test/plugin_helper/test_cert_option.rb
fluentd-1.8.0-x86-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.8.0-x64-mingw32 test/plugin_helper/test_cert_option.rb
fluentd-1.8.0 test/plugin_helper/test_cert_option.rb