2015-07-09 16:29:06 +02:00
|
|
|
require 'spec_helper'
|
2019-11-27 10:46:11 +01:00
|
|
|
require 'shared_spec'
|
2015-07-09 16:29:06 +02:00
|
|
|
|
2021-02-04 11:19:00 +01:00
|
|
|
shared_examples 'custom_config::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' }
|
2019-11-27 10:46:11 +01:00
|
|
|
it { should contain 'Log4j CUSTOM 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' }
|
2019-11-27 10:46:11 +01:00
|
|
|
it { should contain 'JVM configuration CUSTOM FILE' }
|
|
|
|
|
end
|
|
|
|
|
describe file($family['defaults_path']) do
|
|
|
|
|
it { should be_file }
|
|
|
|
|
it { should be_owned_by 'root' }
|
|
|
|
|
it { should contain 'Elasticsearch CUSTOM FILE' }
|
2015-11-25 23:43:01 +00:00
|
|
|
end
|
2015-07-09 16:29:06 +02:00
|
|
|
end
|