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
3e1f95ab
Commit
3e1f95ab
authored
May 20, 2013
by
Raphaël Pinson
Browse files
Add tests
parent
96d165db
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/classes/postfix_spec.rb
View file @
3e1f95ab
...
...
@@ -10,8 +10,11 @@ describe 'postfix' do
it
{
should
contain_package
(
'postfix'
)
}
it
{
should
contain_package
(
'mailx'
)
}
it
{
should
contain_file
(
'/etc/mailname'
).
with_content
(
"fqdn.example.com
\n
"
)
}
it
{
should
contain_file
(
'/etc/aliases'
).
with_content
(
"# file managed by puppet
\n
"
)
}
it
{
should
contain_exec
(
'newaliases'
).
with_refreshonly
(
'true'
)
}
it
{
should
contain_file
(
'/etc/postfix/master.cf'
)
}
end
context
'when on RedHat'
do
...
...
@@ -23,7 +26,10 @@ describe 'postfix' do
it
{
should
contain_package
(
'postfix'
)
}
it
{
should
contain_package
(
'mailx'
)
}
it
{
should
contain_file
(
'/etc/mailname'
).
with_content
(
"fqdn.example.com
\n
"
)
}
it
{
should
contain_file
(
'/etc/aliases'
).
with_content
(
"# file managed by puppet
\n
"
)
}
it
{
should
contain_exec
(
'newaliases'
).
with_refreshonly
(
'true'
)
}
it
{
should
contain_file
(
'/etc/postfix/master.cf'
)
}
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