Fix group ownership on files.
And add a test to stop it being broken again.
This commit is contained in:
parent
6f4aecf059
commit
fbb8f40594
2 changed files with 23 additions and 1 deletions
|
@ -72,7 +72,7 @@ define concat(
|
|||
|
||||
$safe_group = $group ? {
|
||||
undef => $concat::setup::root_group,
|
||||
default => $safe_group,
|
||||
default => $group,
|
||||
}
|
||||
|
||||
case $warn {
|
||||
|
|
|
@ -106,4 +106,26 @@ describe 'concat' do
|
|||
|
||||
end
|
||||
|
||||
describe 'concat' do
|
||||
let(:title) { '/etc/foo.bar' }
|
||||
let(:params) { {
|
||||
:group => 'something',
|
||||
:owner => 'someone',
|
||||
:mode => '0755'
|
||||
} }
|
||||
let(:facts) { {
|
||||
:concat_basedir => '/var/lib/puppet/concat',
|
||||
:id => 'root',
|
||||
} }
|
||||
|
||||
it do
|
||||
should contain_file("/etc/foo.bar").with( {
|
||||
'ensure' => 'present',
|
||||
'owner' => 'someone',
|
||||
'group' => 'something',
|
||||
'mode' => '0755',
|
||||
} )
|
||||
end
|
||||
end
|
||||
|
||||
# vim:sw=2:ts=2:expandtab:textwidth=79
|
||||
|
|
Loading…
Reference in a new issue