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
325dc17d
Commit
325dc17d
authored
Nov 17, 2014
by
Raphaël Pinson
Browse files
Fix unit tests for postfix class
parent
2bfaf41e
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/classes/postfix_spec.rb
View file @
325dc17d
...
...
@@ -47,11 +47,11 @@ describe 'postfix' do
it
{
should
contain_package
(
'postfix'
)
}
it
{
should
contain_package
(
'mailx'
)
}
it
{
should
contain_file
(
'/etc/mailname'
).
with
out
(
'
seltype'
).
with_content
(
"fqdn.example.com
\n
"
)
}
it
{
should
contain_file
(
'/etc/aliases'
).
with
out
(
'
seltype'
).
with_content
(
"# file managed by puppet
\n
"
)
}
it
{
should
contain_file
(
'/etc/mailname'
).
with
_
seltype
(
'postfix_etc_t
'
).
with_content
(
"fqdn.example.com
\n
"
)
}
it
{
should
contain_file
(
'/etc/aliases'
).
with
_
seltype
(
'postfix_etc_t
'
).
with_content
(
"# file managed by puppet
\n
"
)
}
it
{
should
contain_exec
(
'newaliases'
).
with_refreshonly
(
'true'
)
}
it
{
should
contain_file
(
'/etc/postfix/master.cf'
).
with
out
(
'
seltype'
)
}
it
{
should
contain_file
(
'/etc/postfix/main.cf'
).
with
out
(
'
seltype'
)
}
it
{
should
contain_file
(
'/etc/postfix/master.cf'
).
with
_
seltype
(
'postfix_etc_t
'
)
}
it
{
should
contain_file
(
'/etc/postfix/main.cf'
).
with
_
seltype
(
'postfix_etc_t
'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
).
with_value
(
'fqdn.example.com'
)
}
it
{
should
contain_postfix__config
(
'alias_maps'
).
with_value
(
'hash:/etc/aliases'
)
}
...
...
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