spec/spec_helper.rb in splunk-client-0.6.1 vs spec/spec_helper.rb in splunk-client-0.7.0

- old
+ new

@@ -11,5 +11,23 @@ SimpleCov.start require 'rspec/autorun' require 'json' require File.expand_path File.join(File.dirname(__FILE__), '../lib/splunk-client') + +# Source Type | Log file +# "syslog" | "/var/log/kernel.log" +# "syslog" | "/var/log/system.log" + +# The following are the Splunk login details. +def splunk_user + ENV['SPLUNK_USER'] ||= "admin" +end + +def splunk_passwd + ENV['SPLUNK_PASSWD'] ||= "changeme" +end + +def splunk_host + ENV['SPLUNK_HOST'] ||= "localhost" +end +