Permalink
Browse files

initial test kitchen 1.0 alpha support

  • Loading branch information...
1 parent 18538ed commit d32c4b3ab4a525db221b8326bc771d4d25b418f1 @jtimberman jtimberman committed Mar 15, 2013
Showing with 81 additions and 7 deletions.
  1. +10 −2 .gitignore
  2. +40 −0 .kitchen.yml
  3. +11 −0 Berksfile
  4. +14 −2 Gemfile
  5. +6 −0 Vagrantfile
  6. +0 −3 test/kitchen/Kitchenfile
View
12 .gitignore
@@ -1,6 +1,14 @@
-*.sw[op]
+.vagrant
+Berksfile.lock
+Gemfile.lock
+*~
+*#
+.#*
+\#*#
+.*.sw[a-z]
+*.un~
.bundle
.cache
.kitchen
bin
-Gemfile.lock
+.kitchen.local.yml
View
40 .kitchen.yml
@@ -0,0 +1,40 @@
+---
+driver_plugin: vagrant
+platforms:
+- name: ubuntu-12.04
+ driver_config:
+ box: canonical-ubuntu-12.04
+ box_url: http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box
+ require_chef_omnibus: 11.4.0
+ run_list:
+ - recipe[apt]
+- name: ubuntu-10.04
+ driver_config:
+ box: opscode-ubuntu-10.04
+ box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-10.04_chef-11.2.0.box
+ require_chef_omnibus: 11.4.0
+ run_list:
+ - recipe[apt]
+- name: centos-6.3
+ driver_config:
+ box: opscode-centos-6.3
+ box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-6.3_chef-11.2.0.box
+ require_chef_omnibus: 11.4.0
+ run_list:
+ - recipe[yum::epel]
+- name: centos-5.8
+ driver_config:
+ box: opscode-centos-5.8
+ box_url: http://opscode-vm.s3.amazonaws.com/vagrant/opscode_centos-5.8_chef-11.2.0.box
+ require_chef_omnibus: 11.4.0
+ run_list:
+ - recipe[yum::epel]
+suites:
+- name: default
+ run_list:
+ - recipe[couchdb]
+ attributes: {}
+- name: source
+ run_list:
+ - recipe[couchdb::source]
+ attributes: {}
View
11 Berksfile
@@ -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
16 Gemfile
@@ -1,3 +1,15 @@
-source :rubygems
+source 'https://rubygems.org'
-gem 'test-kitchen', '< 1.0'
+gem 'foodcritic'
+gem 'berkshelf'
+gem 'thor-foodcritic'
+gem 'vagrant', '~> 1.0.6'
+
+group :integration do
+ gem 'test-kitchen', :git => "git://github.com/opscode/test-kitchen.git", :branch => '1.0'
+ gem 'kitchen-vagrant', :git => "git://github.com/opscode/kitchen-vagrant.git"
+
+ # Change .kitchen.yml's driver_plugin to ec2 and populate
+ # .kitchen.local.yml's driver_config with aws auth data
+ gem 'kitchen-ec2', :git => "git://github.com/opscode/kitchen-ec2.git"
+end
View
6 Vagrantfile
@@ -0,0 +1,6 @@
+require 'kitchen/vagrant'
+require 'berkshelf/vagrant'
+
+Vagrant::Config.run do |config|
+ Kitchen::Vagrant.define_vms(config)
+end
View
3 test/kitchen/Kitchenfile
@@ -1,3 +0,0 @@
-cookbook "couchdb" do
- runtimes []
-end

0 comments on commit d32c4b3

Please sign in to comment.