Skip to content

Commit

Permalink
Fixed functional test in case the LS_JAVA_HOME is configured (elastic…
Browse files Browse the repository at this point in the history
…#15535)

Adds filtering on Logstash output message in an integration tests when setting LS_JAVA_HOME environment variable.
  • Loading branch information
andsel authored Nov 10, 2023
1 parent 956bf48 commit 5af14f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/integration/specs/command_line_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
execute = @logstash.run
lines = execute.stderr_and_stdout.split("\n")
expect(lines.shift).to match(/^(Using system java)|(Using bundled JDK)|(Using LS_JAVA_HOME defined java):/)
while (up_line = lines.shift).match(/OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated|warning: ignoring JAVA_TOOL_OPTIONS|warning: already initialized constant Socket::Constants|.*warning: method redefined; discarding old to_int$|.*warning: method redefined; discarding old to_f$/) do end
while (up_line = lines.shift).match(/OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated|warning: ignoring JAVA_TOOL_OPTIONS|warning: already initialized constant Socket::Constants|.*warning: method redefined; discarding old to_int$|.*warning: method redefined; discarding old to_f$|^WARNING: Logstash comes bundled with the recommended JDK.*/) do end
expect(up_line).to match(/^Sending Logstash logs to/)
end
end

0 comments on commit 5af14f4

Please sign in to comment.