Support for all xpack features through generic install + improved tests
This commit is contained in:
parent
fdf1bda155
commit
57fa9e432b
11 changed files with 87 additions and 53 deletions
|
|
@ -78,7 +78,7 @@ shared_examples 'xpack::init' do |es_version|
|
|||
end
|
||||
|
||||
|
||||
#Check shield and license plugins are installed
|
||||
#Check shield,watcher and license plugins are installed
|
||||
describe file('/usr/share/elasticsearch/plugins/license') do
|
||||
it { should be_directory }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
|
|
@ -102,6 +102,33 @@ shared_examples 'xpack::init' do |es_version|
|
|||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
|
||||
describe file('/usr/share/elasticsearch/plugins/watcher') do
|
||||
it { should be_directory }
|
||||
it { should be_owned_by 'elasticsearch' }
|
||||
end
|
||||
|
||||
describe command('curl -s localhost:9200/_nodes/plugins?pretty=true -u es_admin:changeMe | grep watcher') do
|
||||
its(:exit_status) { should eq 0 }
|
||||
end
|
||||
|
||||
#test we haven't installed graph or marvel-agent
|
||||
|
||||
describe file('/usr/share/elasticsearch/plugins/graph') do
|
||||
it { should_not exist }
|
||||
end
|
||||
|
||||
describe command('curl -s localhost:9200/_nodes/plugins?pretty=true -u es_admin:changeMe | grep graph') do
|
||||
its(:exit_status) { should eq 1 }
|
||||
end
|
||||
|
||||
describe file('/usr/share/elasticsearch/plugins/marvel-agent') do
|
||||
it { should_not exist }
|
||||
end
|
||||
|
||||
describe command('curl -s localhost:9200/_nodes/plugins?pretty=true -u es_admin:changeMe | grep marvel-agent') do
|
||||
its(:exit_status) { should eq 1 }
|
||||
end
|
||||
|
||||
|
||||
#Test users file, users_roles and roles.yml
|
||||
describe file('/etc/elasticsearch/shield_node/shield/users_roles') do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue