Skip to content

Commit

Permalink
setup: update tests to check for proper user/group ownership
Browse files Browse the repository at this point in the history
  • Loading branch information
j-vizcaino committed Apr 5, 2015
1 parent 0193fd2 commit e811550
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/unit/classes/concat_setup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
it do
should contain_file("#{concatdir}/bin/concatfragments.rb").with({
:mode => '0755',
:owner => 'root',
:group => 0,
:source => 'puppet:///modules/concat/concatfragments.rb',
:backup => false,
})
Expand All @@ -28,6 +30,8 @@
should contain_file(file).with({
:ensure => 'directory',
:mode => '0755',
:owner => 'root',
:group => 0,
:backup => false,
})
end
Expand Down Expand Up @@ -64,6 +68,7 @@
should contain_file("#{concatdir}/bin/concatfragments.rb").with({
:ensure => 'file',
:owner => 'root',
:group => 0,
:mode => '0755',
:source => 'puppet:///modules/concat/concatfragments.rb',
:backup => false,
Expand All @@ -87,6 +92,7 @@
should contain_file("#{concatdir}/bin/concatfragments.rb").with({
:ensure => 'file',
:owner => nil,
:group => nil,
:mode => nil,
:source => 'puppet:///modules/concat/concatfragments.rb',
:backup => false,
Expand Down

0 comments on commit e811550

Please sign in to comment.