Sha256: 7d2c06fe0e02dda167d440e83c4f457f0a2983c64f1ee85c22090462f54c9973
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
require 'logstash_auditor' require 'digest' class Main def create_flow_id return Digest::SHA256.hexdigest("#{Time.now.to_i}#{rand(4000000)}") end 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) @iut.event(create_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.2 | sanity/sanity.rb |