Skip to content

Commit

Permalink
add test-kitchen support
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Nov 26, 2012
1 parent e460773 commit a32ecfd
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
.bundle
.cache
.kitchen
bin
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source :rubygems

gem 'test-kitchen'
3 changes: 3 additions & 0 deletions test/kitchen/Kitchenfile
@@ -0,0 +1,3 @@
cookbook "chef-server" do
configuration "rubygems-install"
end
1 change: 1 addition & 0 deletions test/kitchen/cookbooks/chef-server_test/README.md
@@ -0,0 +1 @@
This cookbook is used with test-kitchen to test the parent, chef-server cookbok
6 changes: 6 additions & 0 deletions test/kitchen/cookbooks/chef-server_test/metadata.rb
@@ -0,0 +1,6 @@
name "chef-server"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "This cookbook is used with test-kitchen to test the parent, chef-server cookbok"
version "1.0.0"
20 changes: 20 additions & 0 deletions test/kitchen/cookbooks/chef-server_test/recipes/default.rb
@@ -0,0 +1,20 @@
#
# Cookbook Name:: chef-server_test
# Recipe:: default
#
# Copyright 2012, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

include_recipe "chef-server::default"
@@ -0,0 +1,20 @@
#
# Cookbook Name:: chef-server_test
# Recipe:: rubygems-install
#
# Copyright 2012, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

include_recipe "chef-server::rubygems-install"

0 comments on commit a32ecfd

Please sign in to comment.