postfix-cookbook/spec/sasl_auth_spec.rb
Tim Smith 82aec2f311 Fix wrapper cookbook in the specs completely failing
It’s still broken, but now it actually tests

Signed-off-by: Tim Smith <tsmith@chef.io>
2017-01-17 23:32:22 -08:00

18 lines
504 B
Ruby

require 'spec_helper'
describe 'postfix::sasl_auth' do
let(:password_file) { '/etc/postfix/sasl_passwd' }
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: 16.04) do |node|
node.default['postfix']['sasl_password_file'] = password_file
end.converge(described_recipe)
end
describe 'password file template' do
it 'does not display sensitive information' do
expect(chef_run).to create_template(password_file).with(sensitive: true)
end
end
end