|
2 | 2 |
|
3 | 3 | describe 'chef-client::service' do |
4 | 4 | context 'AIX' do |
5 | | - let(:chef_run) { ChefSpec::ServerRunner.new(platform: 'aix', version: '7.1').converge(described_recipe) } |
| 5 | + let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'aix', version: '7.1').converge(described_recipe) } |
6 | 6 | before do |
7 | 7 | stub_command('lssrc -s chef').and_return(true) |
8 | 8 | stub_command('lsitab chef').and_return(true) |
|
37 | 37 | end |
38 | 38 | end |
39 | 39 |
|
| 40 | + context 'Debian 7' do |
| 41 | + let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'debian', version: '7.11').converge(described_recipe) } |
| 42 | + it 'should use the systemd service' do |
| 43 | + expect(chef_run).to include_recipe('chef-client::init_service') |
| 44 | + end |
| 45 | + end |
| 46 | + |
| 47 | + context 'Debian 8' do |
| 48 | + let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'debian', version: '8.8').converge(described_recipe) } |
| 49 | + it 'should use the systemd service' do |
| 50 | + expect(chef_run).to include_recipe('chef-client::systemd_service') |
| 51 | + end |
| 52 | + end |
| 53 | + |
40 | 54 | context 'Fedora' do |
41 | 55 | let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'fedora', version: '25').converge(described_recipe) } |
42 | 56 | it 'should use the systemd service' do |
|
58 | 72 | end |
59 | 73 | end |
60 | 74 |
|
| 75 | + context 'SLES 11' do |
| 76 | + let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'suse', version: '11.4').converge(described_recipe) } |
| 77 | + it 'should use the systemd service' do |
| 78 | + expect(chef_run).to include_recipe('chef-client::init_service') |
| 79 | + end |
| 80 | + end |
| 81 | + |
| 82 | + context 'SLES 12' do |
| 83 | + let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'suse', version: '12.2').converge(described_recipe) } |
| 84 | + it 'should use the systemd service' do |
| 85 | + expect(chef_run).to include_recipe('chef-client::systemd_service') |
| 86 | + end |
| 87 | + end |
| 88 | + |
61 | 89 | context 'openSUSE Leap' do |
62 | 90 | let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'opensuse', version: '42.2').converge(described_recipe) } |
63 | 91 | it 'should use the systemd service' do |
|
82 | 110 | end |
83 | 111 |
|
84 | 112 | context 'Solaris' do |
85 | | - let(:chef_run) { ChefSpec::ServerRunner.new(platform: 'solaris2', version: '5.11').converge(described_recipe) } |
| 113 | + let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'solaris2', version: '5.11').converge(described_recipe) } |
86 | 114 | it 'should use the smf service' do |
87 | 115 | expect(chef_run).to include_recipe('chef-client::smf_service') |
88 | 116 | end |
|
0 commit comments