ansible-role-elasticsearch/test/integration/helpers/serverspec/oss_spec.rb

14 lines
365 B
Ruby
Raw Normal View History

require 'spec_helper'
shared_examples 'oss::init' do |vars|
describe file("/etc/elasticsearch/log4j2.properties") do
2017-01-13 12:51:25 +00:00
it { should be_file }
it { should be_owned_by 'root' }
2017-08-17 18:52:02 +01:00
it { should_not contain 'CUSTOM LOG4J FILE' }
2017-01-13 12:51:25 +00:00
end
describe file("/etc/elasticsearch/jvm.options") do
2015-11-25 23:43:01 +00:00
it { should be_file }
it { should be_owned_by 'root' }
2015-11-25 23:43:01 +00:00
end
end