Commit e678e898 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

No need for nexthop in postfix::virtual

parent 4172fa56
......@@ -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)
......
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment