Browse Source

added dovecot_test cookbook

Xabier de Zuazo 10 years ago
parent
commit
1cb3a6b9a5

+ 1 - 1
.kitchen.yml

@@ -24,5 +24,5 @@ platforms:
 suites:
 - name: default
   run_list:
-    - recipe[dovecot]
+    - recipe[dovecot_test]
   attributes: {}

+ 1 - 1
Berksfile

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

+ 12 - 0
test/kitchen/cookbooks/dovecot_test/CHANGELOG.md

@@ -0,0 +1,12 @@
+# CHANGELOG for dovecot_test
+
+This file is used to list changes made in each version of dovecot_test.
+
+## 0.1.0:
+
+* Initial release of dovecot_test
+
+- - -
+Check the [Markdown Syntax Guide](http://daringfireball.net/projects/markdown/syntax) for help with Markdown.
+
+The [Github Flavored Markdown page](http://github.github.com/github-flavored-markdown/) describes the differences between markdown on github and standard markdown.

+ 1 - 0
test/kitchen/cookbooks/dovecot_test/README.md

@@ -0,0 +1 @@
+This cookbook is used with test-kitchen to test the parent, dovecot cookbook.

+ 10 - 0
test/kitchen/cookbooks/dovecot_test/metadata.rb

@@ -0,0 +1,10 @@
+name             'dovecot_test'
+maintainer       'Onddo Labs, Sl.'
+maintainer_email 'team@onddo.com'
+license          'Apache 2.0'
+description      'Installs/Configures dovecot_test'
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version          '0.1.0'
+
+depends 'dovecot'
+

+ 21 - 0
test/kitchen/cookbooks/dovecot_test/recipes/default.rb

@@ -0,0 +1,21 @@
+#
+# Cookbook Name:: dovecot_test
+# Recipe:: default
+#
+# Copyright 2013, Onddo Labs, Sl.
+#
+# 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 'dovecot'
+