Skip to content

Commit

Permalink
Add coverage to the integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bellone committed Feb 5, 2016
1 parent 21d9d35 commit 0b313be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO
- Fix the helpers and clean up the where it injects into DSL.
- Add custom resource (and multiple providers) for maintaining the Consul client.
- Use the InSpec instead of ServerSpec.
10 changes: 10 additions & 0 deletions test/integration/default/serverspec/localhost/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
it { should be_linked_to '/srv/consul/current/consul' }
end

describe group('consul') do
it { should exist }
end

describe user('consul') do
it { should exist }
it { should belong_to_group('consul') }
it { should have_login_shell('/bin/bash') }
end

describe service('consul') do
it { should be_enabled }
it { should be_running }
Expand Down

0 comments on commit 0b313be

Please sign in to comment.