Commit cbeb819e authored by Tim Smith's avatar Tim Smith
Browse files

Speed up and update specs


Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent d2d6bb6b
require 'spec_helper'
describe 'test::default' do
cached(:chef_run) { ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '16.04').converge('test::default') }
cached(:chef_run) { ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '16.04').converge('test::default') }
it 'enables and starts service[cron]' do
expect(chef_run).to enable_service('cron')
......
......@@ -8,17 +8,17 @@ platforms = [
},
{
platform: 'centos',
version: '5.11',
package: 'vixie-cron',
version: '6.9',
package: 'cronie',
},
{
platform: 'centos',
version: '6.7',
version: '7.4.1708',
package: 'cronie',
},
{
platform: 'amazon',
version: '2017.03',
version: '2017.09',
package: 'cronie',
},
{
......@@ -35,7 +35,7 @@ platforms = [
platforms.each do |p|
describe "cron::default on #{p[:platform]} #{p[:version]}" do
cached(:chef_run) { ChefSpec::ServerRunner.new(platform: p[:platform], version: p[:version]).converge('cron::default') }
cached(:chef_run) { ChefSpec::SoloRunner.new(platform: p[:platform], version: p[:version]).converge('cron::default') }
it 'installs the necessary cron package' do
expect(chef_run).to install_package(p[:package])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment