Sha256: 51d1ea018e40d3ff53ec79e11fa428d86f3f1a02b9d80130c524a6dfb77228d7

Contents?: true

Size: 542 Bytes

Versions: 2

Compression:

Stored size: 542 Bytes

Contents

require 'logstash_auditor'

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

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

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

main = Main.new
main.test_sanity

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
logstash_auditor-0.0.5 sanity/sanity.rb
logstash_auditor-0.0.4 sanity/sanity.rb