Skip to content

Commit 3641d62

Browse files
authored
Merge pull request #23 from mashhurs/fix-ecs-test-failures
Fix ECS test failure cases.
2 parents 03d43bc + 8cda8c8 commit 3641d62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/inputs/stdin_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
require "logstash/inputs/stdin"
55

66
describe LogStash::Inputs::Stdin do
7+
78
context ".reloadable?" do
89
subject { described_class }
910

@@ -31,8 +32,7 @@
3132
end
3233

3334
context 'ECS behavior', :ecs_compatibility_support do
34-
35-
subject { LogStash::Inputs::Stdin.new }
35+
subject { LogStash::Inputs::Stdin.new() }
3636

3737
ecs_compatibility_matrix(:v1, :v8 => :v1) do
3838

@@ -64,7 +64,7 @@
6464

6565
it "sets event.original" do
6666
event = queue.pop
67-
expect( event.get('event') ).to eql 'original' => stdin_data
67+
expect( event.get('[event][original]').strip ).to eql stdin_data.strip
6868
end
6969

7070
end

0 commit comments

Comments
 (0)