use files permissions from official package
This commit is contained in:
parent
6a1b886753
commit
9bac169862
8 changed files with 34 additions and 25 deletions
|
|
@ -108,11 +108,11 @@ shared_examples 'shared::init' do |vars|
|
|||
if vars['es_templates']
|
||||
describe file('/etc/elasticsearch/templates') do
|
||||
it { should be_directory }
|
||||
it { should be_owned_by vars['es_user'] }
|
||||
it { should be_owned_by 'root' }
|
||||
end
|
||||
describe file('/etc/elasticsearch/templates/basic.json') do
|
||||
it { should be_file }
|
||||
it { should be_owned_by vars['es_user'] }
|
||||
it { should be_owned_by 'root' }
|
||||
end
|
||||
#This is possibly subject to format changes in the response across versions so may fail in the future
|
||||
describe 'Template Contents Correct' do
|
||||
|
|
@ -152,6 +152,7 @@ shared_examples 'shared::init' do |vars|
|
|||
end
|
||||
end
|
||||
describe file("/etc/elasticsearch/elasticsearch.yml") do
|
||||
it { should be_owned_by 'root' }
|
||||
it { should contain "node.name: localhost" }
|
||||
it { should contain 'cluster.name: elasticsearch' }
|
||||
it { should_not contain "path.conf: /etc/elasticsearch" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue