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
89fdb4e4
Commit
89fdb4e4
authored
May 22, 2013
by
Raphaël Pinson
Browse files
Test myorigin, alias_maps, inet_interfaces
parent
9117100f
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/classes/postfix_spec.rb
View file @
89fdb4e4
...
...
@@ -18,9 +18,9 @@ describe 'postfix' do
it
{
should
contain_file
(
'/etc/postfix/master.cf'
).
without
(
'seltype'
)
}
it
{
should
contain_file
(
'/etc/postfix/main.cf'
).
without
(
'seltype'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
)
}
it
{
should
contain_postfix__config
(
'alias_maps'
)
}
it
{
should
contain_postfix__config
(
'inet_interfaces'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
)
.
with_value
(
'fqdn.example.com'
)
}
it
{
should
contain_postfix__config
(
'alias_maps'
)
.
with_value
(
'hash:/etc/aliases'
)
}
it
{
should
contain_postfix__config
(
'inet_interfaces'
)
.
with_value
(
'localhost'
)
}
it
{
should
contain_mailalias
(
'root'
).
with_recipient
(
'nobody'
)
}
...
...
@@ -49,9 +49,9 @@ describe 'postfix' do
it
{
should
contain_file
(
'/etc/postfix/master.cf'
).
without
(
'seltype'
)
}
it
{
should
contain_file
(
'/etc/postfix/main.cf'
).
without
(
'seltype'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
)
}
it
{
should
contain_postfix__config
(
'alias_maps'
)
}
it
{
should
contain_postfix__config
(
'inet_interfaces'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
)
.
with_value
(
'fqdn.example.com'
)
}
it
{
should
contain_postfix__config
(
'alias_maps'
)
.
with_value
(
'hash:/etc/aliases'
)
}
it
{
should
contain_postfix__config
(
'inet_interfaces'
)
.
with_value
(
'localhost'
)
}
it
{
should
contain_postfix__config
(
'sendmail_path'
)
}
it
{
should
contain_postfix__config
(
'newaliases_path'
)
}
it
{
should
contain_postfix__config
(
'mailq_path'
)
}
...
...
@@ -122,9 +122,9 @@ describe 'postfix' do
}
it
{
should
contain_file
(
'/etc/postfix/main.cf'
).
without
(
'seltype'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
)
}
it
{
should
contain_postfix__config
(
'alias_maps'
)
}
it
{
should
contain_postfix__config
(
'inet_interfaces'
)
}
it
{
should
contain_postfix__config
(
'myorigin'
)
.
with_value
(
'localhost'
)
}
it
{
should
contain_postfix__config
(
'alias_maps'
)
.
with_value
(
'hash:/etc/aliases'
)
}
it
{
should
contain_postfix__config
(
'inet_interfaces'
)
.
with_value
(
'localhost2'
)
}
it
{
should
contain_mailalias
(
'root'
).
with_recipient
(
'foo'
)
}
...
...
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