logstash/qa/acceptance/spec/shared_examples/running.rb
Pere Urbon-Bayes e52bda64c6 Introduction of an update scenario for artifacts, including snapshot/restore for VM's and initial schema for this scenario.
Some other minor changes include:

* add back the user level boostrap scripts, useful in that case to pull latest released LS
* cleanup formatting for specs and fixed bootstrap scripts for redhats
* make the latest logstash version available from the current platform config file
* make sure debian based machines use java8
* make sure to use hostname and not just ip:port address when reporting the names

Fixes #5350
2016-06-02 14:37:16 +00:00

16 lines
328 B
Ruby

require_relative '../spec_helper'
require 'logstash/version'
RSpec.shared_examples "runnable" do |logstash|
before(:each) do
logstash.install(LOGSTASH_VERSION)
end
it "is running on #{logstash.hostname}" do
logstash.start_service
expect(logstash).to be_running
logstash.stop_service
end
end