Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test Failure] ECS compatibility enabled tests are failing on Logstash 8.x #22

Closed
robbavey opened this issue Jun 8, 2022 · 0 comments · Fixed by #23
Closed

[Test Failure] ECS compatibility enabled tests are failing on Logstash 8.x #22

robbavey opened this issue Jun 8, 2022 · 0 comments · Fixed by #23
Assignees

Comments

@robbavey
Copy link
Contributor

robbavey commented Jun 8, 2022

https://app.travis-ci.com/github/logstash-plugins/logstash-input-stdin/jobs/572876533

logstash_1_2c9e893a812c |   ECS behavior
logstash_1_2c9e893a812c |     `ecs_compatibility => v8`
logstash_1_2c9e893a812c |       sets hostname
logstash_1_2c9e893a812c |       sets event.original (FAILED - 1)
logstash_1_2c9e893a812c |       sets message
logstash_1_2c9e893a812c |     `ecs_compatibility => v1`
logstash_1_2c9e893a812c |       sets hostname
logstash_1_2c9e893a812c |       sets message
logstash_1_2c9e893a812c |       sets event.original (FAILED - 2)
logstash_1_2c9e893a812c | 
logstash_1_2c9e893a812c | Failures:
logstash_1_2c9e893a812c | 
logstash_1_2c9e893a812c |   1) LogStash::Inputs::Stdin ECS behavior `ecs_compatibility => v8` sets event.original
logstash_1_2c9e893a812c |      Failure/Error: expect( event.get('event') ).to eql 'original' => stdin_data
logstash_1_2c9e893a812c |      
logstash_1_2c9e893a812c |        expected: {"original"=>"a foo bar\n"}
logstash_1_2c9e893a812c |             got: {"original"=>"a foo bar"}
logstash_1_2c9e893a812c |      
logstash_1_2c9e893a812c |        (compared using eql?)
logstash_1_2c9e893a812c |      
logstash_1_2c9e893a812c |        Diff:
logstash_1_2c9e893a812c |        @@ -1 +1 @@
logstash_1_2c9e893a812c |        -"original" => "a foo bar\n",
logstash_1_2c9e893a812c |        +"original" => "a foo bar",
logstash_1_2c9e893a812c |        
logstash_1_2c9e893a812c |      # ./spec/inputs/stdin_spec.rb:67:in `block in /usr/share/plugins/plugin/spec/inputs/stdin_spec.rb'
logstash_1_2c9e893a812c | 
logstash_1_2c9e893a812c |   2) LogStash::Inputs::Stdin ECS behavior `ecs_compatibility => v1` sets event.original
logstash_1_2c9e893a812c |      Failure/Error: expect( event.get('event') ).to eql 'original' => stdin_data
logstash_1_2c9e893a812c |      
logstash_1_2c9e893a812c |        expected: {"original"=>"a foo bar\n"}
logstash_1_2c9e893a812c |             got: {"original"=>"a foo bar"}
logstash_1_2c9e893a812c |      
logstash_1_2c9e893a812c |        (compared using eql?)
logstash_1_2c9e893a812c |      
logstash_1_2c9e893a812c |        Diff:
logstash_1_2c9e893a812c |        @@ -1 +1 @@
logstash_1_2c9e893a812c |        -"original" => "a foo bar\n",
logstash_1_2c9e893a812c |        +"original" => "a foo bar",
logstash_1_2c9e893a812c |        
logstash_1_2c9e893a812c |      # ./spec/inputs/stdin_spec.rb:67:in `block in <main>'
logstash_1_2c9e893a812c | 
logstash_1_2c9e893a812c | Finished in 5.21 seconds (files took 13.84 seconds to load)
logstash_1_2c9e893a812c | 11 examples, 2 failures
logstash_1_2c9e893a812c | 
logstash_1_2c9e893a812c | Failed examples:
logstash_1_2c9e893a812c | 
logstash_1_2c9e893a812c | rspec './spec/inputs/stdin_spec.rb[1:3:2:3]' # LogStash::Inputs::Stdin ECS behavior `ecs_compatibility => v8` sets event.original
logstash_1_2c9e893a812c | rspec './spec/inputs/stdin_spec.rb[1:3:1:3]' # LogStash::Inputs::Stdin ECS behavior `ecs_compatibility => v1` sets event.original
logstash_1_2c9e893a812c | 
logstash_1_2c9e893a812c | Randomized with seed 62919
logstash_1_2c9e893a812c | 
ci_logstash_1_2c9e893a812c exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants