Skip to content

Commit

Permalink
Merge pull request elastic#27 from electrical/extend_testing
Browse files Browse the repository at this point in the history
Add tests for new feature
  • Loading branch information
jakommo committed Jul 16, 2015
2 parents 25b10ab + d0704e5 commit 0504309
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ verifier:
ruby_bindir: '/usr/bin'

suites:
- name: default
- name: standard
provisioner:
playbook: test/integration/standard.yml
run_list:
attributes:
- name: package
run_list:
attributes:
provisioner:
playbook: test/integration/package.yml

6 changes: 6 additions & 0 deletions test/integration/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Elasticsearch Package tests
hosts: localhost
roles:
- elasticsearch
vars:
File renamed without changes.
22 changes: 22 additions & 0 deletions test/integration/package/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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

end

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
roles:
- elasticsearch
vars:
es_use_repository: "true"
es_plugins:
- plugin: lmenezes/elasticsearch-kopf
version: master
2 changes: 2 additions & 0 deletions test/integration/standard/serverspec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require 'serverspec'
set :backend, :exec
2 changes: 2 additions & 0 deletions test/integration/standard/standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
- host: test-kitchen

0 comments on commit 0504309

Please sign in to comment.