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>
This commit is contained in:
parent
29f9d3921b
commit
82aec2f311
@ -5,5 +5,5 @@ metadata
|
||||
group :integration do
|
||||
cookbook 'yum'
|
||||
cookbook 'apt'
|
||||
cookbook 'wrapper', path: 'test/fixtures/cookbooks/wrapper'
|
||||
cookbook 'test', path: 'test/fixtures/cookbooks/test'
|
||||
end
|
||||
|
@ -5,9 +5,9 @@ describe 'postfix::default' do
|
||||
stub_command('/usr/bin/test /etc/alternatives/mta -ef /usr/sbin/sendmail.postfix').and_return(true)
|
||||
end
|
||||
|
||||
context 'on Centos 6.5' do
|
||||
context 'on Centos 6' do
|
||||
let(:chef_run) do
|
||||
ChefSpec::ServerRunner.new(platform: 'centos', version: 6.5).converge(described_recipe)
|
||||
ChefSpec::ServerRunner.new(platform: 'centos', version: 6.7).converge(described_recipe)
|
||||
end
|
||||
|
||||
it '[COOK-4423] renders file main.cf with /etc/pki/tls/cert.pem' do
|
||||
@ -33,9 +33,9 @@ describe 'postfix::default' do
|
||||
end
|
||||
end
|
||||
|
||||
context 'on Ubuntu 13.04' do
|
||||
context 'on Ubuntu 16.04' do
|
||||
let(:chef_run) do
|
||||
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: 13.04).converge(described_recipe)
|
||||
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: 16.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::ServerRunner.new do |node|
|
||||
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: 16.04) do |node|
|
||||
node.default['postfix']['sasl_password_file'] = password_file
|
||||
end.converge(described_recipe)
|
||||
end
|
||||
|
@ -5,9 +5,9 @@ require 'spec_helper'
|
||||
# attributes using default level without _attributes
|
||||
# recipe clearing them.
|
||||
|
||||
describe 'wrapper::default' do
|
||||
describe 'test::default' do
|
||||
cached(:chef_run) do
|
||||
ChefSpec::SoloRunner.new.converge(described_recipe)
|
||||
ChefSpec::SoloRunner.new(platform: 'ubuntu', version: 16.04).converge(described_recipe)
|
||||
end
|
||||
|
||||
describe '_attributes recipes' do
|
||||
|
@ -1,3 +1,4 @@
|
||||
name 'wrapper'
|
||||
name 'test'
|
||||
version '0.0.1'
|
||||
description 'Wrapper cookbook, used for testing only.'
|
||||
depends 'postfix'
|
Loading…
x
Reference in New Issue
Block a user