add acceptance test

This commit is contained in:
Joao Duarte 2016-06-15 17:57:11 +01:00
parent 7bf89aa53b
commit ae09503df3

View file

@ -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