-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from chef/integration-test
Add integration test with test-kitchen
- Loading branch information
Showing
11 changed files
with
117 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ | |
/pkg/ | ||
/spec/reports/ | ||
/tmp/ | ||
test/integration/.kitchen | ||
Berksfile.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,32 @@ | ||
--- | ||
sudo: required | ||
language: ruby | ||
cache: bundler | ||
|
||
rvm: | ||
- 2.2 | ||
- 2.1 | ||
- 2.0.0 | ||
- 1.9.3 | ||
- ruby-head | ||
# necessary for docker to work | ||
dist: trusty | ||
services: | ||
- docker | ||
|
||
before_install: gem install bundler -v 1.10.6 | ||
bundler_args: --without guard | ||
bundler_args: --without integration guard tools | ||
|
||
sudo: false | ||
before_install: | ||
- gem update --system 2.4.5 | ||
- gem --version | ||
|
||
matrix: | ||
include: | ||
- rvm: 1.9.3 | ||
gemfile: Gemfile | ||
- rvm: 2.0 | ||
gemfile: Gemfile | ||
- rvm: 2.1 | ||
gemfile: Gemfile | ||
- rvm: ruby-head | ||
gemfile: Gemfile | ||
- rvm: 2.2 | ||
gemfile: Gemfile | ||
bundler_args: --without guard tools | ||
script: bundle exec rake test:integration | ||
allow_failures: | ||
- rvm: ruby-head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
driver: | ||
name: dokken | ||
|
||
transport: | ||
name: dokken | ||
|
||
provisioner: | ||
name: dokken | ||
|
||
verifier: | ||
name: inspec | ||
sudo: true | ||
|
||
platforms: | ||
- name: ubuntu | ||
driver: | ||
image: ubuntu:14.04 | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[os_prepare] | ||
attributes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://supermarket.chef.io' | ||
|
||
cookbook 'os_prepare', path: './cookbooks/os_prepare' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# encoding: utf-8 | ||
name 'os_prepare' | ||
maintainer 'Chef Software, Inc.' | ||
maintainer_email '[email protected]' | ||
description 'This cookbook prepares the test operating systems' | ||
version '1.0.0' | ||
depends 'apt' | ||
depends 'yum' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# encoding: utf-8 | ||
# author: Christoph Hartmann | ||
# author: Dominik Richter | ||
# | ||
# noop, do nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
p "You are currently running on OS family: #{os[:family] || 'unknown'}, OS release: #{os[:release] || 'unknown'}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# encoding: utf-8 | ||
|
||
family = os[:family] | ||
|
||
describe os[:family] do | ||
it { should eq family } | ||
end |