2015-07-09 16:29:06 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
2018-06-19 10:39:16 +02:00
|
|
|
shared_examples 'oss::init' do |vars|
|
2019-06-03 14:18:09 +02:00
|
|
|
describe file("/etc/elasticsearch/log4j2.properties") do
|
2017-01-13 12:51:25 +00:00
|
|
|
it { should be_file }
|
2019-09-18 10:57:07 +02:00
|
|
|
it { should be_owned_by 'root' }
|
2017-08-17 18:52:02 +01:00
|
|
|
it { should_not contain 'CUSTOM LOG4J FILE' }
|
2017-01-13 12:51:25 +00:00
|
|
|
end
|
2019-06-03 14:18:09 +02:00
|
|
|
describe file("/etc/elasticsearch/jvm.options") do
|
2015-11-25 23:43:01 +00:00
|
|
|
it { should be_file }
|
2019-09-18 10:57:07 +02:00
|
|
|
it { should be_owned_by 'root' }
|
2015-11-25 23:43:01 +00:00
|
|
|
end
|
2015-07-09 16:29:06 +02:00
|
|
|
end
|