Upgrade to latest chefspec
This commit is contained in:
@@ -7,7 +7,7 @@ describe 'postfix::default' do
|
||||
|
||||
context 'on Centos 6.5' do
|
||||
let(:chef_run) do
|
||||
ChefSpec::Runner.new(platform: 'centos', version: 6.5).converge(described_recipe)
|
||||
ChefSpec::ServerRunner.new(platform: 'centos', version: 6.5).converge(described_recipe)
|
||||
end
|
||||
|
||||
it '[COOK-4423] renders file main.cf with /etc/pki/tls/cert.pem' do
|
||||
@@ -21,7 +21,7 @@ describe 'postfix::default' do
|
||||
|
||||
context 'on SmartOS' do
|
||||
let(:chef_run) do
|
||||
ChefSpec::Runner.new(platform: 'smartos', version: 'joyent_20130111T180733Z').converge(described_recipe)
|
||||
ChefSpec::ServerRunner.new(platform: 'smartos', version: 'joyent_20130111T180733Z').converge(described_recipe)
|
||||
end
|
||||
|
||||
it '[COOK-4423] renders file main.cf without smtp_use_tls' do
|
||||
@@ -35,7 +35,7 @@ describe 'postfix::default' do
|
||||
|
||||
context 'on Ubuntu 13.04' do
|
||||
let(:chef_run) do
|
||||
ChefSpec::Runner.new(platform: 'ubuntu', version: 13.04).converge(described_recipe)
|
||||
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: 13.04).converge(described_recipe)
|
||||
end
|
||||
|
||||
it '[COOK-4423] renders file main.cf with /etc/postfix/cacert.pem' do
|
||||
|
||||
@@ -4,7 +4,7 @@ describe 'postfix::sasl_auth' do
|
||||
let(:password_file) { '/etc/postfix/sasl_passwd' }
|
||||
|
||||
let(:chef_run) do
|
||||
ChefSpec::Runner.new do |node|
|
||||
ChefSpec::ServerRunner.new do |node|
|
||||
node.default['postfix']['sasl_password_file'] = password_file
|
||||
end.converge(described_recipe)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user