Skip to content

Instantly share code, notes, and snippets.

@unicolet
Created August 7, 2019 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unicolet/8fbb6050464e48eb3b1bf3a17bc164b8 to your computer and use it in GitHub Desktop.
Save unicolet/8fbb6050464e48eb3b1bf3a17bc164b8 to your computer and use it in GitHub Desktop.
# 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