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
9117100f
Commit
9117100f
authored
May 22, 2013
by
Raphaël Pinson
Browse files
Test master_smtp, master_smtps and master_submission
parent
d1ebdce5
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/classes/postfix_spec.rb
View file @
9117100f
...
...
@@ -87,6 +87,10 @@ describe 'postfix' do
:mail_user
=>
'bar'
,
:myorigin
=>
'localhost'
,
:inet_interfaces
=>
'localhost2'
,
:master_smtp
=>
"smtp inet n - - - - smtpd
-o smtpd_client_restrictions=check_client_access,hash:/etc/postfix/access,reject"
,
:master_smtps
=>
'smtps inet n - - - - smtpd'
,
:master_submission
=>
'submission inet n - - - - smtpd'
,
}
}
it
{
should
contain_package
(
'postfix'
)
}
...
...
@@ -108,6 +112,12 @@ describe 'postfix' do
/sympa/
).
with_content
(
/user=bar/
).
with_content
(
/^smtp.*\n.*smtpd_client_restrictions=check_client_access,hash:/
).
with_content
(
/^smtps inet n/
).
with_content
(
/^submission inet n/
)
}
it
{
should
contain_file
(
'/etc/postfix/main.cf'
).
without
(
'seltype'
)
}
...
...
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