Skip to content

Commit

Permalink
convert to test kitchen 1.0 alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Mar 20, 2013
1 parent fbeb0d4 commit 656d5bc
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
.vagrant
Berksfile.lock
Gemfile.lock
*~
*#
.#*
\#*#
.*.sw[a-z]
*.un~
.bundle
.cache
.kitchen
bin
.kitchen.local.yml
33 changes: 33 additions & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
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]
suites:
- name: default
run_list:
- recipe[minitest-handler]
- recipe[apt_test]
attributes: {}
- name: cacher-ng
run_list:
- recipe[minitest-handler]
- recipe[apt_test::cacher-ng]
attributes: {}
- name: lwrps
run_list:
- recipe[minitest-handler]
- recipe[apt_test::lwrps]
attributes: {}
8 changes: 8 additions & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
site :opscode

metadata

group :integration do
cookbook "minitest-handler"
cookbook "apt_test", :path => "./test/cookbooks/apt_test"
end
16 changes: 14 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'kitchen/vagrant'
require 'berkshelf/vagrant'

Vagrant::Config.run do |config|
Kitchen::Vagrant.define_vms(config)
end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 656d5bc

Please sign in to comment.