ansible-role-elasticsearch/test/integration/default/serverspec/default_spec.rb
Richard Pijnenburg f5a5fede0b Initial commit for acceptance testing
Uses Kitchen-CI, kitchen-ansible and kitchen-docker components
Also uses serverspec.

Currently supports:

- CentOS 6, 7
- Debian 7, 8
- Ubuntu 14.04
2015-07-09 16:29:06 +02:00

27 lines
523 B
Ruby

require 'spec_helper'
context "basic tests" do
describe user('elasticsearch') do
it { should exist }
end
describe service('elasticsearch') do
it { should be_running }
end
describe package('elasticsearch') do
it { should be_installed }
end
describe file('/etc/elasticsearch/elasticsearch.yml') do
it { should be_file }
end
describe command('curl localhost:9200/_nodes/?plugin | grep kopf') do
its(:stdout) { should match /kopf/ }
its(:exit_status) { should eq 0 }
end
end