Skip to content

Commit

Permalink
Add some tests just for a misc entry in auto.master
Browse files Browse the repository at this point in the history
  • Loading branch information
damacus committed May 16, 2015
1 parent 88185c6 commit 1dedb7d
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ suites:
- name: nfs-only-test
run_list:
- recipe[nfs_only::default]
- name: auto_master
run_list:
- recipe[auto_master::default]
1 change: 1 addition & 0 deletions Berksfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ source 'https://supermarket.getchef.com'
metadata
cookbook 'nfs_test', path: 'test/fixtures/cookbooks/nfs_test'
cookbook 'nfs_only', path: 'test/fixtures/cookbooks/nfs_only'
cookbook 'auto_master', path: 'test/fixtures/cookbooks/auto_master'
5 changes: 5 additions & 0 deletions test/fixtures/cookbooks/auto_master/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name 'auto_master'
version '0.0.1'

depends 'autofs'
depends 'resource'
2 changes: 2 additions & 0 deletions test/fixtures/cookbooks/auto_master/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
automaster_entry '/misc', '/etc/auto.misc' do
end
7 changes: 7 additions & 0 deletions test/integration/auto_master/serverspec/auto_master_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'serverspec'

set :backend, :exec

describe file('/etc/auto.master') do
it { should contain '/misc /etc/auto.misc' }
end

0 comments on commit 1dedb7d

Please sign in to comment.