Fix an issue with the logstash-plugin list acceptance test

The previous regexp used to match the version did not take into
consideration pre-release version.

Fixes #5700
This commit is contained in:
Pier-Hugues Pellerin 2016-07-27 15:55:15 -04:00
parent 244e88ae25
commit d4e611677d

View file

@ -27,7 +27,7 @@ shared_examples "logstash list" do |logstash|
it "list the plugins with their versions" do
result = logstash.run_command_in_path("bin/logstash-plugin list --verbose")
result.stdout.split("\n").each do |plugin|
expect(plugin).to match(/^logstash-\w+-\w+\s\(\d+\.\d+.\d+\)/)
expect(plugin).to match(/^logstash-\w+-\w+\s\(\d+\.\d+.\d+(.\w+)?\)/)
end
end
end