Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123916
stack.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
857 B
Subscribers
None
stack.rb
View Options
require
'spec_helper'
describe
'docker::stack'
,
:type
=>
:define
do
let
(
:title
)
{
'test_stack'
}
let
(
:facts
)
{
{
:osfamily
=>
'Debian'
,
:operatingsystem
=>
'Debian'
,
:lsbdistid
=>
'Debian'
,
:lsbdistcodename
=>
'jessie'
,
:kernelrelease
=>
'3.2.0-4-amd64'
,
:operatingsystemmajrelease
=>
'8'
,
}
}
context
'Create stack with compose file'
do
let
(
:params
)
{
{
'stack_name'
=>
'foo'
,
'compose_file'
=>
'/tmpdocker-compose.yaml'
,
}
}
it
{
should
contain_exec
(
'docker stack deploy'
)
.
with_command
(
/docker stack deploy/
)
}
end
context
'with ensure => absent'
do
let
(
:params
)
{
{
'ensure'
=>
'absent'
,
'stack_name'
=>
'foo'
}
}
it
{
should
contain_exec
(
'docker stack rm'
)
.
with_command
(
/docker stack rm/
)
}
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Jun 21, 6:21 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3420873
Attached To
R205 puppet-puppetlabs-docker
Event Timeline
Log In to Comment