Sha256: f1d2d9b73d26aaa0bdf1836865d969c3e2621d770550b884d13d2b948d625ff6

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

require 'logstash_auditor'

class Main
  def test_sanity
    @iut = LogstashAuditor::LogstashAuditor.new
    @valid_logstash_configuration =
    { "host_url" => "http://localhost:8080",
      "username" => "auditorusername",
      "password" => "auditorpassword",
      "timeout"  => 3}
    @iut.configure(@valid_logstash_configuration)

    require 'digest'
    flow_id = Digest::SHA256.hexdigest("#{Time.now.to_i}#{rand(4000000)}")

    @iut.warn(flow_id, "This is a test event")
  end
end

main = Main.new
main.test_sanity

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash_auditor-0.0.6 sanity/sanity.rb