Sha256: 632c1189b781cb988a4d3d672d66a5469efe090a0a6ef769411d2abcce4f084e

Contents?: true

Size: 813 Bytes

Versions: 2

Compression:

Stored size: 813 Bytes

Contents

require 'test/unit'
require 'test_helper'
require 'lib/fluent/plugin/in_network_probe.rb'
require 'pp'


class NetworkProbeFpingInputTest < Test::Unit::TestCase
  def setup
    Fluent::Test.setup
  end

  CONFIG = %[
    probe_type fping
    target localhost
  ]


  def create_driver(conf=CONFIG)
    Fluent::Test::InputTestDriver.new(Fluent::NetworkProbeInput).configure(conf)
  end

  def test_configure
    d = create_driver
    assert_equal 'localhost',      d.instance.target
    assert_equal 'fping',          d.instance.probe_type
  end

  def test_fping
    d = create_driver

    d.instance.exec_fping
  end


  def test_get_events
    d = create_driver

    # d.instance.before_events = before_events_stub
  end

  def test_get_usage
    d = create_driver

    # d.instance.get_usages
  end

end






Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent-plugin-network-probe-0.1.0 test/plugin/in_network_probe_fping.rb
fluent-plugin-network-probe-0.0.1 test/plugin/in_network_probe_fping.rb