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
e678e898
Commit
e678e898
authored
May 27, 2013
by
Raphaël Pinson
Browse files
No need for nexthop in postfix::virtual
parent
4172fa56
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/virtual.pp
View file @
e678e898
...
...
@@ -33,14 +33,12 @@
#
define
postfix::virtual
(
$destination
,
$nexthop
=
''
,
$file
=
'/etc/postfix/virtual'
,
$ensure
=
'present'
)
{
include
postfix::augeas
validate_string
(
$destination
)
validate_string
(
$nexthop
)
validate_string
(
$file
)
validate_absolute_path
(
$file
)
validate_string
(
$ensure
)
...
...
spec/defines/postfix_virtual_spec.rb
View file @
e678e898
...
...
@@ -26,19 +26,6 @@ describe 'postfix::virtual' do
end
end
context
'when sending wrong type for nexthop'
do
let
(
:params
)
{
{
:destination
=>
'bar'
,
:nexthop
=>
[
'baz'
],
}
}
it
'should fail'
do
expect
{
should
contain_augeas
(
'Postfix virtual - foo'
)
}.
to
raise_error
(
Puppet
::
Error
,
/\["baz"\] is not a string/
)
end
end
context
'when sending wrong type for file'
do
let
(
:params
)
{
{
:destination
=>
'bar'
,
...
...
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