Skip to content
Newer
Older
100644 512 lines (438 sloc) 13.3 KB
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
1 #
2 # Author:: Adam Jacob (<adam@opscode.com>)
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
3 # Author:: Daniel DeLeo (<dan@opscode.com>)
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
4 # Copyright:: Copyright (c) 2008, 2010 Opscode, Inc.
5 # License:: Apache License, Version 2.0
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 # http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19
604cef7 @danielsdeleo [CHEF-1277] create a chef-server metagem
danielsdeleo authored Jun 7, 2010
20 gems = %w[chef chef-server-api chef-server-webui chef-solr chef-server]
2470370 @adamhjk Adding the features tmp directory to the ignore list
adamhjk authored Feb 17, 2009
21 require 'rubygems'
b6d52be Rakefile for top level.
Ezra Zygmuntowicz authored Oct 8, 2008
22
23 desc "Build the chef gems"
9e5ce90 @adamhjk Removing the git-submodules stuff for 0.6.0
adamhjk authored Apr 28, 2009
24 task :gem do
b6d52be Rakefile for top level.
Ezra Zygmuntowicz authored Oct 8, 2008
25 gems.each do |dir|
5520eda @danielsdeleo webui gem builds w/ rake gem now
danielsdeleo authored Jun 4, 2010
26 Dir.chdir(dir) { sh "rake gem" }
b6d52be Rakefile for top level.
Ezra Zygmuntowicz authored Oct 8, 2008
27 end
28 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
29
6c673b3 @adamhjk Updating rakefile
adamhjk authored Oct 8, 2008
30 desc "Install the chef gems"
9e5ce90 @adamhjk Removing the git-submodules stuff for 0.6.0
adamhjk authored Apr 28, 2009
31 task :install do
b6d52be Rakefile for top level.
Ezra Zygmuntowicz authored Oct 8, 2008
32 gems.each do |dir|
33 Dir.chdir(dir) { sh "rake install" }
34 end
6c673b3 @adamhjk Updating rakefile
adamhjk authored Oct 8, 2008
35 end
4dbefb3 @adamhjk Adding example-repository
adamhjk authored Oct 8, 2008
36
924b6a1 Switch from 'slice' to 'experimental'
Christopher Brown authored Feb 20, 2009
37 desc "Uninstall the chef gems"
38 task :uninstall do
39 gems.reverse.each do |dir|
40 Dir.chdir(dir) { sh "rake uninstall" }
41 end
42 end
43
c126bc2 @adamhjk Updating rakefile to support rake spec
adamhjk authored Jan 8, 2009
44 desc "Run the rspec tests"
45 task :spec do
1eb3e41 @adamhjk Removing the stub specs for chef-server-slice - use cucumber features…
adamhjk authored Jun 4, 2009
46 Dir.chdir("chef") { sh "rake spec" }
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 1, 2009
47 Dir.chdir("chef-solr") { sh "rake spec" }
c126bc2 @adamhjk Updating rakefile to support rake spec
adamhjk authored Jan 9, 2009
48 end
49
0cb5156 @fujin CHEF-151: More specs
fujin authored May 8, 2009
50 task :default => :spec
51
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
52 def start_couchdb(type="normal")
53 @couchdb_server_pid = nil
54 cid = fork
55 if cid
56 @couchdb_server_pid = cid
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 22, 2009
57 else
58 exec("couchdb")
59 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
60 end
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
61
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
62 def start_rabbitmq(type="normal")
63 @rabbitmq_server_pid = nil
64 cid = fork
65 if cid
66 @rabbitmq_server_pid = cid
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
67 else
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
68 exec("rabbitmq-server")
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
69 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
70 end
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
71
b16b493 @danielsdeleo configure rabbitmq for nanite in dev environment
danielsdeleo authored Oct 28, 2009
72 def configure_rabbitmq(type="normal")
73 # hack. wait for rabbit to come up.
74 sleep 2
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
75
7c26b72 @danielsdeleo replace chef/nanite with bunny driver
danielsdeleo authored Dec 13, 2009
76 puts `rabbitmqctl add_vhost /chef`
b16b493 @danielsdeleo configure rabbitmq for nanite in dev environment
danielsdeleo authored Oct 28, 2009
77
7c26b72 @danielsdeleo replace chef/nanite with bunny driver
danielsdeleo authored Dec 14, 2009
78 # create 'chef' user, give it the password 'testing'
79 puts `rabbitmqctl add_user chef testing`
b16b493 @danielsdeleo configure rabbitmq for nanite in dev environment
danielsdeleo authored Oct 28, 2009
80
7c26b72 @danielsdeleo replace chef/nanite with bunny driver
danielsdeleo authored Dec 14, 2009
81 # the three regexes map to config, write, read permissions respectively
82 puts `rabbitmqctl set_permissions -p /chef chef ".*" ".*" ".*"`
b16b493 @danielsdeleo configure rabbitmq for nanite in dev environment
danielsdeleo authored Oct 28, 2009
83
84 puts `rabbitmqctl list_users`
85 puts `rabbitmqctl list_vhosts`
7c26b72 @danielsdeleo replace chef/nanite with bunny driver
danielsdeleo authored Dec 14, 2009
86 puts `rabbitmqctl list_permissions -p /chef`
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
87
b16b493 @danielsdeleo configure rabbitmq for nanite in dev environment
danielsdeleo authored Oct 28, 2009
88 end
89
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
90 def start_chef_solr(type="normal")
91 @chef_solr_pid = nil
92 cid = fork
93 if cid
94 @chef_solr_pid = cid
95 else
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
96 case type
97 when "normal"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
98 exec("./chef-solr/bin/chef-solr -l debug")
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
99 when "features"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
100 exec("./chef-solr/bin/chef-solr -c #{File.join(File.dirname(__FILE__), "features", "data", "config", "server.rb")} -l debug")
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
101 end
102 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
103 end
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
104
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
105 def start_chef_solr_indexer(type="normal")
106 @chef_solr_indexer = nil
107 cid = fork
108 if cid
109 @chef_solr_indexer_pid = cid
110 else
111 case type
112 when "normal"
113 exec("./chef-solr/bin/chef-solr-indexer -l debug")
114 when "features"
115 exec("./chef-solr/bin/chef-solr-indexer -c #{File.join(File.dirname(__FILE__), "features", "data", "config", "server.rb")} -l debug")
116 end
117 end
118 end
119
120 def start_chef_server(type="normal")
c24d806 @danielsdeleo typo
danielsdeleo authored Dec 20, 2009
121 puts "Starting #{type} chef development server"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
122 @chef_server_pid = nil
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
123 mcid = fork
124 if mcid # parent
125 @chef_server_pid = mcid
126 else # child
127 case type
128 when "normal"
7c26b72 @danielsdeleo replace chef/nanite with bunny driver
danielsdeleo authored Dec 14, 2009
129 puts "Starting chef server for development with './chef-server/bin/chef-server -a thin -l debug -N'"
5a66520 @danielsdeleo [CHEF-1072] cleanup and fixes for merb 1.1
danielsdeleo authored Apr 25, 2010
130 exec("./chef-server-api/bin/chef-server -a thin -l debug -N")
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
131 when "features"
7c26b72 @danielsdeleo replace chef/nanite with bunny driver
danielsdeleo authored Dec 14, 2009
132 puts "Starting chef server for features with #{["./chef-server/bin/chef-server -a thin -C #{File.join(File.dirname(__FILE__), "features", "data", "config", "server.rb")} -l debug -N"].join(' ')}"
5a66520 @danielsdeleo [CHEF-1072] cleanup and fixes for merb 1.1
danielsdeleo authored Apr 26, 2010
133 exec("./chef-server-api/bin/chef-server -a thin -C #{File.join(File.dirname(__FILE__), "features", "data", "config", "server.rb")} -l debug -N")
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
134 end
135 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
136 end
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
137
d0cd67a @adamhjk Adding Web UI Rake Tasks
adamhjk authored Feb 3, 2010
138 def start_chef_webui(type="normal")
139 puts "Starting #{type} chef development server webui"
140 @chef_webui_pid = nil
141 mcid = fork
142 if mcid # parent
143 @chef_webui_pid = mcid
144 else # child
145 case type
146 when "normal"
147 puts "Starting chef webui for development with './chef-server/bin/chef-server-webui -a thin -l debug -N'"
c70f05c @danielsdeleo update rakefile for new binary paths
danielsdeleo authored Apr 26, 2010
148 exec("./chef-server-webui/bin/chef-server-webui -a thin -l debug -N")
d0cd67a @adamhjk Adding Web UI Rake Tasks
adamhjk authored Feb 4, 2010
149 when "features"
150 puts "Starting chef server webui for features with #{["./chef-server/bin/chef-server-webui -a thin -C #{File.join(File.dirname(__FILE__), "features", "data", "config", "server.rb")} -l debug -N"].join(' ')}"
c70f05c @danielsdeleo update rakefile for new binary paths
danielsdeleo authored Apr 26, 2010
151 exec("./chef-server-webui/bin/chef-server-webui -a thin -C #{File.join(File.dirname(__FILE__), "features", "data", "config", "server.rb")} -l debug -N")
d0cd67a @adamhjk Adding Web UI Rake Tasks
adamhjk authored Feb 4, 2010
152 end
153 end
154 end
155
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
156 def start_dev_environment(type="normal")
157 start_couchdb(type)
158 start_rabbitmq(type)
b16b493 @danielsdeleo configure rabbitmq for nanite in dev environment
danielsdeleo authored Oct 28, 2009
159 configure_rabbitmq(type)
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
160 start_chef_solr(type)
161 start_chef_solr_indexer(type)
162 start_chef_server(type)
d0cd67a @adamhjk Adding Web UI Rake Tasks
adamhjk authored Feb 4, 2010
163 start_chef_webui(type)
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
164 puts "Running CouchDB at #{@couchdb_server_pid}"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
165 puts "Running RabbitMQ at #{@rabbitmq_server_pid}"
166 puts "Running Chef Solr at #{@chef_solr_pid}"
167 puts "Running Chef Solr Indexer at #{@chef_solr_indexer_pid}"
168 puts "Running Chef at #{@chef_server_pid}"
d0cd67a @adamhjk Adding Web UI Rake Tasks
adamhjk authored Feb 4, 2010
169 puts "Running Chef Web UI at #{@chef_webui_pid}"
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
170 end
171
172 def stop_dev_environment
d0cd67a @adamhjk Adding Web UI Rake Tasks
adamhjk authored Feb 4, 2010
173 if @chef_webui_pid
174 puts "Stopping Chef Web UI"
175 Process.kill("KILL", @chef_webui_pid)
176 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
177 if @chef_server_pid
178 puts "Stopping Chef"
179 Process.kill("KILL", @chef_server_pid)
180 end
181 if @chef_solr_pid
182 puts "Stopping Chef Solr"
183 Process.kill("INT", @chef_solr_pid)
184 end
185 if @chef_solr_indexer_pid
186 puts "Stopping Chef Solr Indexer"
187 Process.kill("INT", @chef_solr_indexer_pid)
188 end
189 if @couchdb_server_pid
190 puts "Stopping CouchDB"
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
191 Process.kill("KILL", @couchdb_server_pid)
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
192 end
193 if @rabbitmq_server_pid
194 puts "Stopping RabbitMQ"
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
195 Process.kill("KILL", @rabbitmq_server_pid)
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
196 end
197 puts "Have a nice day!"
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
198 end
199
200 def wait_for_ctrlc
201 puts "Hit CTRL-C to destroy development environment"
202 trap("CHLD", "IGNORE")
203 trap("INT") do
204 stop_dev_environment
205 exit 1
206 end
207 while true
208 sleep 10
209 end
210 end
211
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
212 desc "Run a development instance of Chef"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
213 task :dev do
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
214 start_dev_environment
215 wait_for_ctrlc
216 end
217
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
218 namespace :dev do
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
219 desc "Run a test instance of Chef suitable for cucumber tests"
3865a6e @adamhjk Adding rake tasks to run a dev environment, and run a dev environment…
adamhjk authored Feb 23, 2009
220 task :features do
221 start_dev_environment("features")
222 wait_for_ctrlc
223 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
224
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
225 namespace :features do
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
226
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
227 namespace :start do
228 desc "Start CouchDB for testing"
229 task :couchdb do
230 start_couchdb("features")
231 wait_for_ctrlc
232 end
233
234 desc "Start RabbitMQ for testing"
235 task :rabbitmq do
236 start_rabbitmq("features")
b16b493 @danielsdeleo configure rabbitmq for nanite in dev environment
danielsdeleo authored Oct 28, 2009
237 configure_rabbitmq("features")
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
238 wait_for_ctrlc
239 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
240
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
241 desc "Start Chef Solr for testing"
242 task :chef_solr do
243 start_chef_solr("features")
244 wait_for_ctrlc
245 end
246
247 desc "Start Chef Solr Indexer for testing"
248 task :chef_solr_indexer do
249 start_chef_solr_indexer("features")
250 wait_for_ctrlc
251 end
252
253 desc "Start Chef Server for testing"
254 task :chef_server do
255 start_chef_server("features")
256 wait_for_ctrlc
257 end
258
d0cd67a @adamhjk Adding Web UI Rake Tasks
adamhjk authored Feb 4, 2010
259 desc "Start Chef Web UI for testing"
260 task :chef_webui do
261 start_chef_webui("features")
262 wait_for_ctrlc
263 end
264
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
265 end
266 end
267
268 namespace :start do
269 desc "Start CouchDB"
270 task :couchdb do
271 start_couchdb
272 wait_for_ctrlc
273 end
274
275 desc "Start RabbitMQ"
276 task :rabbitmq do
277 start_rabbitmq
6d89129 @danielsdeleo dev_start configures rabbitmq on normal start
danielsdeleo authored Dec 22, 2009
278 configure_rabbitmq
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
279 wait_for_ctrlc
280 end
281
282 desc "Start Chef Solr"
283 task :chef_solr do
284 start_chef_solr
285 wait_for_ctrlc
286 end
287
288 desc "Start Chef Solr Indexer"
289 task :chef_solr_indexer do
290 start_chef_solr_indexer
291 wait_for_ctrlc
292 end
293
294 desc "Start Chef Server"
295 task :chef_server do
296 start_chef_server
297 wait_for_ctrlc
298 end
d0cd67a @adamhjk Adding Web UI Rake Tasks
adamhjk authored Feb 4, 2010
299
300 desc "Start Chef Web UI"
301 task :chef_webui do
302 start_chef_webui
303 wait_for_ctrlc
304 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
305 end
2470370 @adamhjk Adding the features tmp directory to the ignore list
adamhjk authored Feb 18, 2009
306 end
307
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
308 begin
309 require 'cucumber/rake/task'
d402fb9 @adamhjk Adding features for synchronization, fixing bugs in remote_directory,…
adamhjk authored May 26, 2009
310
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
311 Cucumber::Rake::Task.new(:features) do |t|
312 t.profile = "default"
e0c1158 @fujin CHEF-418: Readme clarification for features
fujin authored Jun 30, 2009
313 end
d402fb9 @adamhjk Adding features for synchronization, fixing bugs in remote_directory,…
adamhjk authored May 27, 2009
314
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
315 namespace :features do
316 desc "Run cucumber tests for the REST API"
317 Cucumber::Rake::Task.new(:api) do |t|
318 t.profile = "api"
319 end
320
321 namespace :api do
322 [ :nodes, :roles, :clients ].each do |api|
323 Cucumber::Rake::Task.new(api) do |apitask|
324 apitask.profile = "api_#{api.to_s}"
325 end
326 namespace api do
327 %w{create delete list show update}.each do |action|
328 Cucumber::Rake::Task.new("#{action}") do |t|
329 t.profile = "api_#{api.to_s}_#{action}"
330 end
89deb69 @fujin CHEF-416: Integration Features fixes (roles,search)
fujin authored Jun 29, 2009
331 end
332 end
333 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
334
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
335 namespace :nodes do
336 Cucumber::Rake::Task.new("sync") do |t|
337 t.profile = "api_nodes_sync"
338 end
e0db7b2 @adamhjk Working Node Web UI vs API.
adamhjk authored Sep 26, 2009
339 end
340
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
341 namespace :cookbooks do
342 desc "Run cucumber tests for the cookbooks portion of the REST API"
343 Cucumber::Rake::Task.new(:cookbooks) do |t|
344 t.profile = "api_cookbooks"
345 end
61062af CHEF-542: cookbook tarball CRUD, which necessitated CHEF-754: reposit…
chris authored Dec 7, 2009
346
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
347 Cucumber::Rake::Task.new(:cookbook_tarballs) do |t|
348 t.profile = "api_cookbooks_tarballs"
349 end
61062af CHEF-542: cookbook tarball CRUD, which necessitated CHEF-754: reposit…
chris authored Dec 7, 2009
350 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
351
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
352 namespace :data do
353 desc "Run cucumber tests for the data portion of the REST API"
354 Cucumber::Rake::Task.new(:data) do |t|
355 t.profile = "api_data"
356 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
357
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
358 desc "Run cucumber tests for deleting data via the REST API"
359 Cucumber::Rake::Task.new(:delete) do |t|
360 t.profile = "api_data_delete"
361 end
362 desc "Run cucumber tests for adding items via the REST API"
363 Cucumber::Rake::Task.new(:item) do |t|
364 t.profile = "api_data_item"
365 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
366 end
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
367
368 namespace :search do
369 desc "Run cucumber tests for searching via the REST API"
370 Cucumber::Rake::Task.new(:search) do |t|
371 t.profile = "api_search"
372 end
373
374 desc "Run cucumber tests for listing search endpoints via the REST API"
375 Cucumber::Rake::Task.new(:list) do |t|
376 t.profile = "api_search_list"
377 end
378 desc "Run cucumber tests for searching via the REST API"
379 Cucumber::Rake::Task.new(:show) do |t|
380 t.profile = "api_search_show"
381 end
382 desc "Run cucumber tests for searching via the REST API"
383 Cucumber::Rake::Task.new(:reindex) do |t|
384 t.profile = "api_search_reindex"
385 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
386 end
387 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
388
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
389 desc "Run cucumber tests for the chef client"
390 Cucumber::Rake::Task.new(:client) do |t|
391 t.profile = "client"
392 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
393
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
394 namespace :client do
395 Cucumber::Rake::Task.new(:roles) do |t|
396 t.profile = "client_roles"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
397 end
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
398
399 Cucumber::Rake::Task.new(:run_interval) do |t|
400 t.profile = "client_run_interval"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
401 end
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
402
403 Cucumber::Rake::Task.new(:cookbook_sync) do |t|
404 t.profile = "client_cookbook_sync"
bfe18ea @danielsdeleo add cucumber task to test index rebuilds
danielsdeleo authored Dec 21, 2009
405 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
406 end
d402fb9 @adamhjk Adding features for synchronization, fixing bugs in remote_directory,…
adamhjk authored May 27, 2009
407
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
408 desc "Run cucumber tests for the cookbooks"
409 Cucumber::Rake::Task.new(:cookbooks) do |t|
410 t.profile = "cookbooks"
e39bef6 @adamhjk Adding feature tests for Chef::Node::Attributes, integrating with Che…
adamhjk authored Aug 1, 2009
411 end
6033af0 @fujin CHEF-637: Rigorize the chef-client interval cuke.
fujin authored Oct 25, 2009
412
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
413 namespace :cookbook do
414
415 desc "Run cucumber tests for the cookbook metadata"
416 Cucumber::Rake::Task.new(:metadata) do |t|
417 t.profile = "cookbook_metadata"
418 end
6033af0 @fujin CHEF-637: Rigorize the chef-client interval cuke.
fujin authored Oct 24, 2009
419 end
f7c5d64 @adamhjk Fixing CHEF-749, we now properly cache cookbooks again.
adamhjk authored Nov 27, 2009
420
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
421 desc "Run cucumber tests for the recipe language"
422 Cucumber::Rake::Task.new(:language) do |t|
423 t.profile = "language"
f7c5d64 @adamhjk Fixing CHEF-749, we now properly cache cookbooks again.
adamhjk authored Nov 27, 2009
424 end
8c8947b @adamhjk Adding CHEF-838 features
adamhjk authored Apr 16, 2010
425
426 Cucumber::Rake::Task.new(:attribute_settings) do |t|
427 t.profile = "attribute_settings"
428 end
e39bef6 @adamhjk Adding feature tests for Chef::Node::Attributes, integrating with Che…
adamhjk authored Aug 1, 2009
429
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
430 desc "Run cucumber tests for searching in recipes"
431 Cucumber::Rake::Task.new(:search) do |t|
432 t.profile = "search"
392078f @adamhjk Fixing cookbook metadata tests
adamhjk authored Jan 26, 2010
433 end
434
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
435 Cucumber::Rake::Task.new(:language) do |t|
436 t.profile = "language"
13ac645 @adamhjk Attribute inclusion mixin, and features
adamhjk authored Nov 27, 2009
437 end
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
438
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
439 namespace :language do
440 Cucumber::Rake::Task.new(:recipe_include) do |t|
441 t.profile = "recipe_inclusion"
442 end
443 Cucumber::Rake::Task.new(:attribute_include) do |t|
444 t.profile = "attribute_inclusion"
445 end
5096963 @adamhjk Adding the deploy features to the Rakefile
adamhjk authored Oct 25, 2009
446 end
447
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
448 Cucumber::Rake::Task.new(:lwrp) do |t|
449 t.profile = "lwrp"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
450 end
451
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
452 desc "Run cucumber tests for providers"
453 Cucumber::Rake::Task.new(:provider) do |t|
454 t.profile = "provider"
89779a4 @adamhjk Initial pass at a Chef 0.8.0 alpha
adamhjk authored Aug 2, 2009
455 end
456
457
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
458 namespace :provider do
459 desc "Run cucumber tests for deploy resources"
460 Cucumber::Rake::Task.new(:deploy) do |t|
461 t.profile = "provider_deploy"
462 end
5cb52d9 @adamhjk Merge branch 'master' of git@github.com:opscode/chef into 0.8-alpha-m…
adamhjk authored Sep 14, 2009
463
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
464 desc "Run cucumber tests for directory resources"
465 Cucumber::Rake::Task.new(:directory) do |t|
466 t.profile = "provider_directory"
467 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
468
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
469 desc "Run cucumber tests for execute resources"
470 Cucumber::Rake::Task.new(:execute) do |t|
471 t.profile = "provider_execute"
472 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
473
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
474 desc "Run cucumber tests for file resources"
475 Cucumber::Rake::Task.new(:file) do |t|
476 t.profile = "provider_file"
477 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
478
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
479 desc "Run cucumber tests for remote_file resources"
480 Cucumber::Rake::Task.new(:remote_file) do |t|
481 t.profile = "provider_remote_file"
20caa7e @adamhjk Fixing solo support, updating solo based features
adamhjk authored May 26, 2009
482 end
3512842 @danielsdeleo [CHEF-1072] rm chef-server tree
danielsdeleo authored Apr 26, 2010
483
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
484 desc "Run cucumber tests for template resources"
485 Cucumber::Rake::Task.new(:template) do |t|
486 t.profile = "provider_template"
487 end
488
489 Cucumber::Rake::Task.new(:remote_directory) do |t|
490 t.profile = "provider_remote_directory"
491 end
492
493 Cucumber::Rake::Task.new(:git) do |t|
494 t.profile = "provider_git"
495 end
496
497 namespace :package do
498 desc "Run cucumber tests for macports packages"
499 Cucumber::Rake::Task.new(:macports) do |t|
500 t.profile = "provider_package_macports"
501 end
502
503 Cucumber::Rake::Task.new(:gems) do |g|
504 g.profile = "provider_package_rubygems"
505 end
62d7a5b @danielsdeleo Add rake shortcut for gem provider cukes
danielsdeleo authored Oct 17, 2009
506 end
20caa7e @adamhjk Fixing solo support, updating solo based features
adamhjk authored May 27, 2009
507 end
d402fb9 @adamhjk Adding features for synchronization, fixing bugs in remote_directory,…
adamhjk authored May 27, 2009
508 end
39ff4b9 @danielsdeleo allow other rake tasks to run when rspec/cucumber not installed
danielsdeleo authored May 9, 2010
509 rescue LoadError
510 STDERR.puts "\n*** Cucumber is missing. (sudo) gem install cucumber to run integration tests. ***\n\n"
56d93a6 removed accidental add of the built gem, rearranged build order in Ra…
Christopher Brown authored Feb 19, 2009
511 end
Something went wrong with that request. Please try again.