Test for custom log4j file

This commit is contained in:
Dale McDiarmid 2017-08-17 18:52:02 +01:00
parent f6347c79ac
commit 16117f431f
4 changed files with 87 additions and 0 deletions

View file

@ -145,5 +145,13 @@ shared_examples 'config::init' do |es_version,plugins|
it { should be_file }
end
end
describe file('/etc/elasticsearch/node1/log4j2.properties') do
it { should be_file }
it { should be_owned_by 'elasticsearch' }
it { should contain 'CUSTOM LOG4J FILE' }
end
end

View file

@ -22,6 +22,7 @@ shared_examples 'standard::init' do |es_version,plugins|
describe file('/etc/elasticsearch/node1/log4j2.properties') do
it { should be_file }
it { should be_owned_by 'elasticsearch' }
it { should_not contain 'CUSTOM LOG4J FILE' }
end
describe file('/etc/elasticsearch/node1/jvm.options') do