Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392589
validation_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
778 B
Subscribers
None
validation_spec.rb
View Options
# frozen_string_literal: true
require
'spec_helper_acceptance'
describe
'validation, concat validate_cmd parameter'
,
if
:
[
'debian'
,
'redhat'
,
'ubuntu'
].
include?
(
os
[
:family
]
)
do
attr_reader
:basedir
before
(
:all
)
do
@basedir
=
setup_test_directory
end
context
'with "/usr/bin/test -e %"'
do
let
(
:pp
)
do
<<-
MANIFEST
concat { '#{basedir}/file':
validate_cmd => '/usr/bin/test -e %',
}
concat::fragment { 'content':
target => '#{basedir}/file',
content => 'content',
}
MANIFEST
end
it
'applies the manifest twice with no stderr'
do
idempotent_apply
(
pp
)
expect
(
file
(
"
#{
basedir
}
/file"
))
.
to
be_file
expect
(
file
(
"
#{
basedir
}
/file"
)
.
content
)
.
to
contain
'content'
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:00 PM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3306407
Attached To
rSPCAT puppet-puppetlabs-concat
Event Timeline
Log In to Comment