Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123063
validation_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
856 B
Subscribers
None
validation_spec.rb
View Options
require
'spec_helper_acceptance'
describe
'concat validate_cmd parameter'
,
:unless
=>
(
fact
(
'kernel'
)
!=
'Linux'
)
do
basedir
=
default
.
tmpdir
(
'concat'
)
context
'=> "/usr/bin/test -e %"'
do
before
(
:all
)
do
pp
=
<<-
EOS
file { '#{basedir}':
ensure => directory
}
EOS
apply_manifest
(
pp
)
end
pp
=
<<-
EOS
concat { '#{basedir}/file':
validate_cmd => '/usr/bin/test -e %',
}
concat::fragment { 'content':
target => '#{basedir}/file',
content => 'content',
}
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
}
/file"
)
do
it
{
should
be_file
}
it
{
should
contain
'content'
}
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Jun 21, 5:02 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3371326
Attached To
rSPCAT puppet-puppetlabs-concat
Event Timeline
Log In to Comment