add integration tests for custom config files
This commit is contained in:
parent
04438f9110
commit
c9e9ca4809
6 changed files with 143 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue