mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
add acceptance test
This commit is contained in:
parent
7bf89aa53b
commit
ae09503df3
1 changed files with 7 additions and 1 deletions
|
@ -14,9 +14,15 @@ shared_examples "logstash version" do |logstash|
|
|||
|
||||
context "on #{logstash.hostname}" do
|
||||
it "returns the right logstash version" do
|
||||
result = logstash.run_command_in_path("bin/logstash --path.settings=/etc/logstash --version")
|
||||
result = logstash.run_command_in_path("bin/logstash --version")
|
||||
expect(result).to run_successfully_and_output(/#{LOGSTASH_VERSION}/)
|
||||
end
|
||||
context "when also using the --path.settings argument" do
|
||||
it "returns the right logstash version" do
|
||||
result = logstash.run_command_in_path("bin/logstash --path.settings=/etc/logstash --version")
|
||||
expect(result).to run_successfully_and_output(/#{LOGSTASH_VERSION}/)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue