use default permissions from official package for plugin directory

This commit is contained in:
Julien Mailleret 2019-09-18 10:53:43 +02:00
parent 79470cb344
commit 6a1b886753
No known key found for this signature in database
GPG key ID: F065093271C8DE71
3 changed files with 1 additions and 11 deletions

View file

@ -138,7 +138,7 @@ shared_examples 'shared::init' do |vars|
name = plugin['plugin']
describe file('/usr/share/elasticsearch/plugins/'+name) do
it { should be_directory }
it { should be_owned_by vars['es_user'] }
it { should be_owned_by 'root' }
end
it 'should be installed and the right version' do
plugins = curl_json("#{es_api_url}/_nodes/plugins", username=username, password=password)