Sha256: 436165c29ae953eec99e7d996223a3d4a1f8e6458098894633796551585a063e

Contents?: true

Size: 874 Bytes

Versions: 19

Compression:

Stored size: 874 Bytes

Contents

# frozen_string_literal: true
require_relative '../helper'
require 'fluent/plugin/in_jfrog_metrics'

class JfrogMetricsInputTest < Test::Unit::TestCase
  setup do
    Fluent::Test.setup
  end

  test 'failure' do
    #flunk
  end

  # Default configuration for tests
  CONFIG = %(
     tag "jfrog.artifactory.metrics"
     jpd_url "http://localhost:8081"
     username "admin"
     apikey "AKCp8k8PbyomdfXsVzoQWaYQZmq9wk49JXQLaP1wXJpa6LdzpFkuJ4VcWd61U6fYWwDJymLDR"
     metric_prefix "jfrog.artifactory"
   )

  private

  def create_driver(conf)
    Fluent::Test::Driver::Input.new(Fluent::Plugin::JfrogMetricsInput).configure(conf)
  end

  sub_test_case 'Testing' do
    test 'Testing plugin in_jfrog_metrics' do
      d = create_driver(CONFIG)
      begin
        d.run
      rescue StandardError => e
        raise "Test failed due to #{e}"
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fluent-plugin-jfrog-metrics-0.2.13 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.12.3 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.12.2 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.12.1 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.12 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.11 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.10 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.9 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.8 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.7 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.6 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.5 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.4 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.3 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.2 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.1 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.2.0 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.1.2 test/plugin/test_in_jfrog_metrics.rb
fluent-plugin-jfrog-metrics-0.1.0 test/plugin/test_in_jfrog_metrics.rb