Test for custom log4j file
This commit is contained in:
parent
f6347c79ac
commit
16117f431f
4 changed files with 87 additions and 0 deletions
|
|
@ -25,6 +25,8 @@
|
|||
es_templates: false
|
||||
es_version_lock: false
|
||||
es_heap_size: 1g
|
||||
#add a custom log4j file
|
||||
es_config_log4j2: "./files/logging/log4j2.properties.custom.j2"
|
||||
es_api_port: 9401
|
||||
es_plugins:
|
||||
- plugin: ingest-attachment
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue