Browse Source

added test-kitchen files required for testing

Xabier de Zuazo 11 years ago
parent
commit
a38f2fd59c
6 changed files with 46 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 26 0
      .kitchen.yml
  3. 1 0
      .vagrant
  4. 8 0
      Berksfile
  5. 4 0
      Gemfile
  6. 6 0
      Vagrantfile

+ 1 - 0
.gitignore

@@ -6,3 +6,4 @@ metadata.json
 Gemfile.lock
 test/kitchen/.kitchen/
 .kitchen.local.yml
+Berksfile.lock

+ 26 - 0
.kitchen.yml

@@ -0,0 +1,26 @@
+---
+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: true
+- 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
+- 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
+- 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
+
+suites:
+- name: default
+  run_list: ["recipe[dovecot]"]
+  attributes: {}

+ 1 - 0
.vagrant

@@ -0,0 +1 @@
+{"active":{"default-centos-63":"72d447c6-1c23-482d-988a-a40389230af3"}}

+ 8 - 0
Berksfile

@@ -0,0 +1,8 @@
+cookbook 'apt'
+cookbook 'yum'
+cookbook 'dovecot', path: "."
+# cookbook 'dovecot_test', path: "./test/kitchen/cookbooks/dovecot_test"
+
+group :test do
+#  cookbook 'minitest-handler', git: "git://github.com/btm/minitest-handler-cookbook.git"
+end

+ 4 - 0
Gemfile

@@ -0,0 +1,4 @@
+source 'https://rubygems.org'
+
+gem 'test-kitchen', :group => :integration
+gem 'kitchen-vagrant', :group => :integration

+ 6 - 0
Vagrantfile

@@ -0,0 +1,6 @@
+require 'kitchen/vagrant'
+require 'berkshelf/vagrant'
+
+Vagrant::Config.run do |config|
+  Kitchen::Vagrant.define_vms(config)
+end