Correctly fix aliases quoting logic (#206)
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>
This commit is contained in:
17
test/integration/sasl_auth_none/controls/sasl_auth_none.rb
Normal file
17
test/integration/sasl_auth_none/controls/sasl_auth_none.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
control 'sasl_auth_none' do
|
||||
describe file '/etc/postfix/sasl_passwd' do
|
||||
its('content') do
|
||||
should cmp <<~EOF
|
||||
# Auto-generated by Chef.
|
||||
# Local modifications will be overwritten.
|
||||
|
||||
smtp_sasl_passwd :
|
||||
smtp_sasl_user_name :
|
||||
EOF
|
||||
end
|
||||
end
|
||||
|
||||
describe postfix_conf '/etc/postfix/main.cf' do
|
||||
its('smtp_sasl_password_maps') { should eq 'hash:/etc/postfix/sasl_passwd' }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user