add integration tests for custom config files

This commit is contained in:
Julien Mailleret 2019-11-27 10:46:11 +01:00
parent 04438f9110
commit c9e9ca4809
No known key found for this signature in database
GPG key ID: F065093271C8DE71
6 changed files with 143 additions and 6 deletions

View file

@ -1,13 +1,20 @@
require 'spec_helper'
require 'shared_spec'
shared_examples 'oss::init' do |vars|
describe file("/etc/elasticsearch/log4j2.properties") do
it { should be_file }
it { should be_owned_by 'root' }
it { should_not contain 'CUSTOM LOG4J FILE' }
it { should contain 'Log4j CUSTOM FILE' }
end
describe file("/etc/elasticsearch/jvm.options") do
it { should be_file }
it { should be_owned_by 'root' }
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' }
end
end