Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
d6f9fd21
Commit
d6f9fd21
authored
Nov 13, 2015
by
Mickaël Canévet
Browse files
Update spec_helper_acceptance.rb
parent
9bca1036
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/spec_helper_acceptance.rb
View file @
d6f9fd21
require
'beaker-rspec'
require
'beaker_spec_helper'
include
BeakerSpecHelper
hosts
.
each
do
|
host
|
install_puppet_on
host
install_package
host
,
'git'
install_package
host
,
'tar'
install_package
host
,
'sudo'
on
host
,
'rm /usr/sbin/policy-rc.d || true'
end
install_puppet_agent_on
hosts
,
{}
RSpec
.
configure
do
|
c
|
module_root
=
File
.
expand_path
(
File
.
join
(
File
.
dirname
(
__FILE__
),
'..'
))
...
...
@@ -23,7 +14,8 @@ RSpec.configure do |c|
# Install module and dependencies
puppet_module_install
(
:source
=>
module_root
,
:module_name
=>
module_name
)
hosts
.
each
do
|
host
|
BeakerSpecHelper
::
spec_prep
(
host
)
on
host
,
puppet
(
'module'
,
'install'
,
'camptocamp-augeas'
),
{
:acceptable_exit_codes
=>
[
0
,
1
]
}
on
host
,
puppet
(
'module'
,
'install'
,
'puppetlabs-stdlib'
),
{
:acceptable_exit_codes
=>
[
0
,
1
]
}
end
end
end
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment