Skip to content

Commit 8cda8c8

Browse files
committed
Considering String#strip solution rather than changing the codec.
1 parent d2ee956 commit 8cda8c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/inputs/stdin_spec.rb

+2-3
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
end
3333

3434
context 'ECS behavior', :ecs_compatibility_support do
35-
require "logstash/codecs/json"
36-
subject { LogStash::Inputs::Stdin.new("codec" => LogStash::Codecs::JSON.new) }
35+
subject { LogStash::Inputs::Stdin.new() }
3736

3837
ecs_compatibility_matrix(:v1, :v8 => :v1) do
3938

@@ -65,7 +64,7 @@
6564

6665
it "sets event.original" do
6766
event = queue.pop
68-
expect( event.get('event') ).to eql 'original' => stdin_data
67+
expect( event.get('[event][original]').strip ).to eql stdin_data.strip
6968
end
7069

7170
end

0 commit comments

Comments
 (0)