remove file script feature
File scripts have been removed since elasticsearch 6.0 (https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking_60_scripting_changes.html#_file_scripts_removed)
This commit is contained in:
parent
86c8e3c59b
commit
1585ec2c1c
8 changed files with 22 additions and 86 deletions
|
|
@ -64,17 +64,6 @@ shared_examples 'multi::init' do |vars|
|
|||
end
|
||||
end
|
||||
|
||||
#Confirm scripts are on both nodes
|
||||
describe file('/etc/elasticsearch/master/scripts') do
|
||||
it { should be_directory }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
|
||||
describe file('/etc/elasticsearch/master/scripts/calculate-score.groovy') do
|
||||
it { should be_file }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
|
||||
#Confirm that the data directory has only been set for the first node
|
||||
describe file('/opt/elasticsearch/master/localhost-master') do
|
||||
it { should be_directory }
|
||||
|
|
|
|||
|
|
@ -90,16 +90,6 @@ shared_examples 'shared::init' do |vars|
|
|||
end
|
||||
end
|
||||
end
|
||||
if vars['es_scripts']
|
||||
describe file("/etc/elasticsearch/#{vars['es_instance_name']}/scripts") do
|
||||
it { should be_directory }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
describe file("/etc/elasticsearch/#{vars['es_instance_name']}/scripts/calculate-score.groovy") do
|
||||
it { should be_file }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
end
|
||||
describe file('/etc/init.d/elasticsearch') do
|
||||
it { should_not exist }
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue