We were previously incorrectly adding double quotes for the alias values. According to the man page it's not required. However, there is a requirement if its a command being pipe. In addition, the man page mentions this for the alias name: The name is a local address (no domain part). Use double quotes when the name contains any special characters such as whitespace, `#', `:', or `@'. The name is folded to lowercase, in order to make database lookups case insensitive. This includes logic to support this automatically. - Add new tests for aliases testing all types - Convert all serverspec tests to inspec - Add Github actions - Update platforms to test Signed-off-by: Lance Albertson <lance@osuosl.org>
15 lines
305 B
Ruby
15 lines
305 B
Ruby
control 'default' do
|
|
describe package 'postfix' do
|
|
it { should be_installed }
|
|
end
|
|
|
|
describe service 'postfix' do
|
|
it { should be_enabled }
|
|
it { should be_running }
|
|
end
|
|
|
|
describe file '/etc/postfix/main.cf' do
|
|
its('content') { should match(/^# Auto-generated by Chef/) }
|
|
end
|
|
end
|