Created
August 7, 2019 18:39
-
-
Save unicolet/8fbb6050464e48eb3b1bf3a17bc164b8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
require "logstash/devutils/rspec/spec_helper" | |
describe "filebeat-forwarded plain text log" do | |
files = Dir['conf.d/*.conf'] | |
@@configuration = String.new | |
files.sort.each do |file| | |
@@configuration << File.read(file) | |
end | |
sample( | |
"message" => "31.05.2017 13:56:54 - this is the log message", | |
) do | |
insist { subject.get("message") } == "this is the log message" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment