Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updates for test kitchen

* fix filename in ppa test
* add configuration for contrib recipe
* move password attribute to test cookbook's attributes file
  • Loading branch information...
commit c898e0dcf2d04b45527d338fa5a33b31504805d5 1 parent bc17011
@jtimberman jtimberman authored
View
2  files/default/tests/minitest/ppa_pitti_postgresql_test.rb
@@ -21,7 +21,7 @@
it 'creates the Pitti PPA sources.list' do
skip unless %w{debian}.include?(node['platform_family'])
- file("/etc/apt/sources.list.d/pitti-postgresql-ppa-source.list").must_exist
+ file("/etc/apt/sources.list.d/pitti-postgresql-ppa.list").must_exist
end
it 'installs postgresql-client-9.2' do
View
2  test/kitchen/Kitchenfile
@@ -2,5 +2,7 @@ cookbook "postgresql" do
configuration "default"
configuration "ruby"
configuration "server"
+ configuration "contrib"
configuration "ppa_pitti_postgresql"
+ exclude :platform => 'centos', :configuration => 'ppa_pitti_postgresql'
end
View
1  test/kitchen/cookbooks/postgresql_test/attributes/default.rb
@@ -0,0 +1 @@
+node.set['postgresql']['password']['postgres'] = "iloverandompasswordsbutthiswilldo"
View
20 test/kitchen/cookbooks/postgresql_test/recipes/contrib.rb
@@ -0,0 +1,20 @@
+#
+# Cookbook Name:: postgresql_test
+# Recipe:: contrib
+#
+# 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 "postgresql::contrib"
View
2  test/kitchen/cookbooks/postgresql_test/recipes/server.rb
@@ -18,7 +18,5 @@
# limitations under the License.
#
-node.set['postgresql']['password']['postgres'] = "iloverandompasswordsbutthiswilldo"
-
include_recipe "postgresql::ruby"
include_recipe "postgresql::server"
Please sign in to comment.
Something went wrong with that request. Please try again.