logstash/qa/rspec/commands/base.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

27 lines
503 B
Ruby

# encoding: utf-8
require_relative "../../vagrant/helpers"
module ServiceTester
class Base
LOCATION="/logstash-build".freeze
def snapshot(host)
LogStash::VagrantHelpers.save_snapshot(host)
end
def restore(host)
LogStash::VagrantHelpers.restore_snapshot(host)
end
def start_service(service, host=nil)
service_manager(service, "start", host)
end
def stop_service(service, host=nil)
service_manager(service, "stop", host)
end
end
end