Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391258
staging_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
staging_spec.rb
View Options
require
'spec_helper'
describe
'archive::staging'
do
context
'RHEL Puppet opensource'
do
let
(
:facts
)
{
{
osfamily
:
'RedHat'
,
puppetversion
:
'3.7.3'
}
}
it
{
should
contain_class
'archive'
}
it
do
should
contain_file
(
'/opt/staging'
)
.
with
(
owner
:
'0'
,
group
:
'0'
,
mode
:
'0640'
,
)
end
end
context
'RHEL Puppet opensource with params'
do
let
(
:facts
)
{
{
osfamily
:
'RedHat'
,
puppetversion
:
'3.7.3'
}
}
let
(
:params
)
{
{
path
:
'/tmp/staging'
,
owner
:
'puppet'
,
group
:
'puppet'
,
mode
:
'0755'
,
}
}
it
{
should
contain_class
'archive'
}
it
do
should
contain_file
(
'/tmp/staging'
)
.
with
(
owner
:
'puppet'
,
group
:
'puppet'
,
mode
:
'0755'
,
)
end
end
context
'Windows Puppet Enterprise'
do
let
(
:facts
)
{
{
osfamily
:
'Windows'
,
puppetversion
:
'3.4.3 (Puppet Enterprise 3.2.3)'
,
archive_windir
:
'C:/Windows/Temp/staging'
}
}
it
{
should
contain_class
'archive'
}
it
do
should
contain_file
(
'C:/Windows/Temp/staging'
)
.
with
(
owner
:
'S-1-5-32-544'
,
group
:
'S-1-5-18'
,
mode
:
'0640'
,
)
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 6:41 PM (14 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3376045
Attached To
R144 puppet-puppet-archive
Event Timeline
Log In to Comment