Gitlab Community Edition Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GWDG-Puppet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Benedikt Wegmann
GWDG-Puppet
Commits
a5c0db80
Commit
a5c0db80
authored
8 years ago
by
Benedikt Wegmann
Browse files
Options
Downloads
Patches
Plain Diff
spec/classes/docker_spec.rb
parent
e4cfa07d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
spec/classes/docker_spec.rb
+39
-0
39 additions, 0 deletions
spec/classes/docker_spec.rb
with
39 additions
and
0 deletions
spec/classes/docker_spec.rb
0 → 100644
+
39
−
0
View file @
a5c0db80
require
'spec_helper'
describe
"ubuntu_server::docker"
do
let
(
:facts
)
{{
:path
=>
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
,
}}
it
{
is_expected
.
to
compile
.
with_all_deps
}
it
{
is_expected
.
to
contain_exec
(
'docker-apt-repo'
)
}
it
{
is_expected
.
to
contain_exec
(
'apt-get-update'
)
}
it
{
is_expected
.
to
contain_file
(
'/etc/apt/sources.list.d/docker.list'
)
}
it
{
is_expected
.
to
contain_package
(
'lxc-docker'
).
with_ensure
(
'purged'
)
}
it
{
is_expected
.
to
contain_package
(
'docker-engine'
).
with_ensure
(
'present'
)
}
it
{
is_expected
.
to
contain_service
(
'docker'
).
with_ensure
(
'running'
)
}
context
"with class defaults and docker_compose_version=1.8.0"
do
let
(
:facts
)
{{
:docker_compose_version
=>
'1.8.0'
,
:path
=>
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
,
}}
it
{
is_expected
.
to
compile
.
with_all_deps
}
it
{
is_expected
.
to
contain_exec
(
'docker-compose'
)
}
it
{
is_expected
.
to
contain_exec
(
'docker-compose-bash-completion'
)
}
it
{
is_expected
.
to
contain_file
(
'/usr/local/bin/docker-compose'
)
}
end
context
"with class defaults and docker_compose_version=1.8.1"
do
let
(
:facts
)
{{
:docker_compose_version
=>
'1.8.1'
,
:path
=>
'/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
,
}}
it
{
is_expected
.
to
compile
.
with_all_deps
}
it
{
is_expected
.
not_to
contain_exec
(
'docker-compose'
)
}
it
{
is_expected
.
not_to
contain_exec
(
'docker-compose-bash-completion'
)
}
it
{
is_expected
.
not_to
contain_file
(
'/usr/local/bin/docker-compose'
)
}
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment