Permalink
Browse files

Add test-kitchen support.

  • Loading branch information...
1 parent 69dac03 commit 4486734469b427d554a1d447babe6c9ae87b20cd @hectcastro committed Apr 30, 2013
Showing with 72 additions and 0 deletions.
  1. +14 −0 .gitignore
  2. +22 −0 .kitchen.yml
  3. +11 −0 Berksfile
  4. +25 −0 TESTING.md
View
@@ -0,0 +1,14 @@
+.vagrant
+Berksfile.lock
+Gemfile.lock
+*~
+*#
+.#*
+\#*#
+.*.sw[a-z]
+*.un~
+.bundle
+.cache
+.kitchen
+bin
+.kitchen.local.yml
View
@@ -0,0 +1,22 @@
+---
+driver_plugin: vagrant
+
+platforms:
+- name: ubuntu-12.04
+ driver_config:
+ box: opscode-ubuntu-12.04
+ box_url: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_chef-11.4.4.box
+ require_chef_omnibus: 11.4.4
+ run_list:
+ - recipe[apt]
+- name: centos-6.3
+ driver_config:
+ box: opscode-centos-6.3
+ box_url: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.4_chef-11.4.4.box
+ require_chef_omnibus: 11.4.4
+ run_list:
+ - recipe[yum::epel]
+suites:
+- name: default
+ run_list: ["recipe[statsd]"]
+ attributes: {}
View
@@ -0,0 +1,11 @@
+site :opscode
+
+metadata
+
+group :integration do
+ cookbook "apt"
+ cookbook "yum"
+
+ # Future, when/if minitest support for this cookbook is added
+ #cookbook "minitest-handler"
+end
View
@@ -0,0 +1,25 @@
+This cookbook includes support for running tests via Test Kitchen (1.0). This has some requirements.
+
+1. You must be using the Git repository, rather than the downloaded cookbook from the Chef Community Site.
+2. You must have Vagrant 1.1 installed.
+3. You must have a "sane" Ruby 1.9.3 environment.
+
+Once the above requirements are met, install the additional requirements:
+
+Install the berkshelf plugin for vagrant, and berkshelf to your local Ruby environment.
+
+ vagrant plugin install berkshelf-vagrant
+ gem install berkshelf
+
+Install Test Kitchen 1.0 (unreleased yet, use the alpha / prerelease version).
+
+ gem install test-kitchen --pre
+
+Install the Vagrant driver for Test Kitchen.
+
+ gem install kitchen-vagrant
+
+Once the above are installed, you should be able to run Test Kitchen:
+
+ kitchen list
+ kitchen test

0 comments on commit 4486734

Please sign in to comment.