forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from bmjen/tableflip
MODULES-2054 - fixes dependency bug in creating the target file
- Loading branch information
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
require 'spec_helper_acceptance' | ||
|
||
describe 'with file recursive purge' do | ||
basedir = default.tmpdir('concat') | ||
context 'should still create concat file' do | ||
pp = <<-EOS | ||
file { '#{basedir}/bar': | ||
ensure => directory, | ||
purge => true, | ||
recurse => true, | ||
} | ||
concat { "foobar": | ||
ensure => 'present', | ||
path => '#{basedir}/bar/foobar', | ||
} | ||
concat::fragment { 'foo': | ||
target => 'foobar', | ||
content => 'foo', | ||
} | ||
EOS | ||
|
||
it 'applies the manifest twice with no stderr' do | ||
apply_manifest(pp, :catch_failures => true) | ||
apply_manifest(pp, :catch_changes => true) | ||
end | ||
|
||
describe file("#{basedir}/bar/foobar") do | ||
it { should be_file } | ||
its(:content) { | ||
should match 'foo' | ||
} | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters