Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8392788
secrets_spec.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
983 B
Subscribers
None
secrets_spec.rb
View Options
require
'spec_helper'
describe
'docker::secrets'
,
:type
=>
:define
do
let
(
:title
)
{
'test_secret'
}
let
(
:facts
)
{
{
:osfamily
=>
'Debian'
,
:operatingsystem
=>
'Debian'
,
:lsbdistid
=>
'Debian'
,
:lsbdistcodename
=>
'jessie'
,
:kernelrelease
=>
'3.2.0-4-amd64'
,
:operatingsystemmajrelease
=>
'8'
,
}
}
context
'with secret_name => test_secret and secret_path => /root/secret.txt and label => test'
do
let
(
:params
)
{
{
'secret_name'
=>
'test_secret'
,
'secret_path'
=>
'/root/secret.txt'
,
'label'
=>
[
'test'
]
,
}
}
it
{
should
contain_exec
(
'docker secret create'
)
.
with_command
(
/docker secret create/
)
}
end
context
'with ensure => absent and secret_name => test_secret'
do
let
(
:params
)
{
{
'ensure'
=>
'absent'
,
'secret_name'
=>
'test_secret'
}
}
it
{
should
contain_exec
(
'docker secret rm'
)
.
with_command
(
/docker secret rm/
)
}
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Jun 4 2025, 7:03 PM (10 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3393736
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment