Commit af04c9d4 authored by Sean OMeara's avatar Sean OMeara

adding .kitchen.docker.yml. cleaning ca-certificate stuff out of specs

parent 1d9e757f
#<% require 'kitchen-sync' %>
---
driver:
name: docker
provisioner:
name: chef_zero
# require_chef_omnibus: 11.16.4
# require_chef_omnibus: 12.0.3
require_chef_omnibus: latest
platforms:
- name: centos-6.4
driver_config:
image: centos
platform: rhel
- name: centos-7.0
driver_config:
image: centos
platform: rhel
suites:
- name: default
run_list:
- recipe[yum::default]
attributes: {}
require 'spec_helper'
describe 'yum::default' do
let(:chef_run) { ChefSpec::Runner.new.converge(described_recipe) }
let(:chef_run) { ChefSpec::SoloRunner.new.converge(described_recipe) }
it 'creates yum_globalconfig[/etc/yum.conf]' do
expect(chef_run).to create_yum_globalconfig('/etc/yum.conf')
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_globalconfig_one' do
let(:test_global_config_one_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_globalconfig'
).converge(described_recipe)
end
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_globalconfig_two' do
let(:test_globalconfig_two_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_globalconfig'
).converge(described_recipe)
end
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_eight' do
let(:test_repository_eight_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......@@ -28,10 +28,6 @@ Have a nice day.
)
end
it 'steps into yum_repository and upgrades package[ca-certificates]' do
expect(test_repository_eight_run).to upgrade_package('ca-certificates')
end
it 'steps into yum_repository and creates template[/etc/yum.repos.d/test8.repo]' do
expect(test_repository_eight_run).to create_template('/etc/yum.repos.d/test8.repo')
.with(
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_five' do
let(:test_repository_five_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_four' do
let(:test_repository_four_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_nine' do
let(:test_repository_nine_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......@@ -29,10 +29,6 @@ Have a nice day.
)
end
it 'steps into yum_repository and upgrades package[ca-certificates]' do
expect(test_repository_nine_run).to upgrade_package('ca-certificates')
end
it 'steps into yum_repository and creates template[/etc/yum.repos.d/test9.repo]' do
expect(test_repository_nine_run).to create_template('/etc/yum.repos.d/test9.repo')
.with(
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_one' do
let(:test_repository_one_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......@@ -29,10 +29,6 @@ sslverify=true
expect(test_repository_one_run).to create_yum_repository('test1')
end
it 'steps into yum_repository and upgrades package[ca-certificates]' do
expect(test_repository_one_run).to upgrade_package('ca-certificates')
end
it 'steps into yum_repository and creates template[/etc/yum.repos.d/test1.repo]' do
expect(test_repository_one_run).to create_template('/etc/yum.repos.d/test1.repo')
end
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_seven' do
let(:test_repository_seven_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......@@ -30,10 +30,6 @@ sslverify=true
expect(test_repository_seven_run).to create_yum_repository('test7')
end
it 'steps into yum_repository and upgrades package[ca-certificates]' do
expect(test_repository_seven_run).to upgrade_package('ca-certificates')
end
it 'steps into yum_repository and creates template[/etc/yum.repos.d/test7.repo]' do
expect(test_repository_seven_run).to create_template('/etc/yum.repos.d/test7.repo')
end
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_six' do
let(:test_repository_six_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......@@ -29,10 +29,6 @@ sslverify=true
expect(test_repository_six_run).to create_yum_repository('test6')
end
it 'steps into yum_repository and upgrades package[ca-certificates]' do
expect(test_repository_six_run).to upgrade_package('ca-certificates')
end
it 'steps into yum_repository and creates template[/etc/yum.repos.d/test6.repo]' do
expect(test_repository_six_run).to create_template('/etc/yum.repos.d/test6.repo')
end
......
......@@ -2,7 +2,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_three' do
let(:test_repository_three_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......@@ -29,10 +29,6 @@ sslverify=true
expect(test_repository_three_run).to add_yum_repository('test3')
end
it 'steps into yum_repository and upgrades package[ca-certificates]' do
expect(test_repository_three_run).to upgrade_package('ca-certificates')
end
it 'steps into yum_repository and creates template[/etc/yum.repos.d/test3.repo]' do
expect(test_repository_three_run).to create_template('/etc/yum.repos.d/test3.repo')
end
......
......@@ -3,7 +3,7 @@ require 'spec_helper'
describe 'yum_test::test_repository_two' do
let(:test_repository_two_run) do
ChefSpec::Runner.new(
ChefSpec::SoloRunner.new(
:step_into => 'yum_repository'
).converge(described_recipe)
end
......@@ -54,10 +54,6 @@ timeout=10
expect(test_repository_two_run).to create_yum_repository('test2')
end
it 'steps into yum_repository and upgrades package[ca-certificates]' do
expect(test_repository_two_run).to upgrade_package('ca-certificates')
end
it 'steps into yum_repository and creates template[/etc/yum.repos.d/unit-test-2.repo]' do
expect(test_repository_two_run).to create_template('/etc/yum.repos.d/unit-test-2.repo')
end
......
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