test-output-parser 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4356 @@
1
+ $ git fetch --prune --all
2
+ Fetching origin
3
+ From git://localhost/ThoughtWorksInc/go-saas-rails
4
+ a7722ce..7c95c46 master -> origin/master
5
+ Command git fetch --prune --all exited successfully with status 0.
6
+
7
+ $ git reset --hard FETCH_HEAD
8
+ HEAD is now at 7c95c46 marano/fernando #1063 Fix times admin query.
9
+ Command git reset --hard FETCH_HEAD exited successfully with status 0.
10
+
11
+ $ git clean -fdx
12
+ Command git clean -fdx exited successfully with status 0.
13
+
14
+ $ git checkout master
15
+ Already on 'master'
16
+ Command git checkout master exited successfully with status 0.
17
+
18
+ $ git reset --hard 7c95c46e962a0d8201e5aff547eee382f9e22f2d
19
+ HEAD is now at 7c95c46 marano/fernando #1063 Fix times admin query.
20
+ Command git reset --hard 7c95c46e962a0d8201e5aff547eee382f9e22f2d exited successfully with status 0.
21
+
22
+ $ git submodule update --init
23
+ Command git submodule update --init exited successfully with status 0.
24
+
25
+ $ git remote set-url --push origin 'git@github.com:ThoughtWorksInc/go-saas-rails'
26
+ Command git remote set-url --push origin 'git@github.com:ThoughtWorksInc/go-saas-rails' exited successfully with status 0.
27
+
28
+ $ export SNAP_CI=true
29
+ $ export CI=true
30
+ $ export LANG=en_US.UTF-8
31
+ $ export LC_ALL=en_US.UTF-8
32
+ $ export SNAP_PIPELINE_COUNTER=1772
33
+ $ export SNAP_STAGE_NAME=Rspec
34
+ $ export SNAP_BRANCH=master
35
+ $ export SNAP_COMMIT=7c95c46e962a0d8201e5aff547eee382f9e22f2d
36
+ $ export SNAP_COMMIT_SHORT=7c95c46
37
+
38
+ $ /bin/ln -sf /etc/go_saas/database-postgresql.yml config/database.yml
39
+ Command /bin/ln -sf /etc/go_saas/database-postgresql.yml config/database.yml exited successfully with status 0. Took 0.02916 seconds.
40
+
41
+ $ ./.init.sh
42
+ +++ pwd
43
+ ++ basename /var/go/repo
44
+ + BUNDLE_PATH=/tmp/.bundle-repo
45
+ + '[' '!' -z true ']'
46
+ + BUNDLE_PATH=/var/go/.bundle
47
+ + mkdir -p /var/go/.bundle
48
+ + rm vendor/bundle
49
+ rm: cannot remove `vendor/bundle': No such file or directory
50
+ + ln -sf /var/go/.bundle vendor/bundle
51
+ + bundle install --local --path vendor/bundle --binstubs --clean
52
+ Using rake (10.1.0)
53
+ Using i18n (0.6.9)
54
+ Using multi_json (1.8.4)
55
+ Using activesupport (3.2.16)
56
+ Using builder (3.0.4)
57
+ Using activemodel (3.2.16)
58
+ Using erubis (2.7.0)
59
+ Using journey (1.0.4)
60
+ Using rack (1.4.5)
61
+ Using rack-cache (1.2)
62
+ Using rack-test (0.6.2)
63
+ Using hike (1.2.3)
64
+ Using tilt (1.4.1)
65
+ Using sprockets (2.2.2)
66
+ Using actionpack (3.2.16)
67
+ Using mime-types (1.25.1)
68
+ Using polyglot (0.3.3)
69
+ Using treetop (1.4.15)
70
+ Using mail (2.5.4)
71
+ Using actionmailer (3.2.16)
72
+ Using arel (3.0.3)
73
+ Using tzinfo (0.3.38)
74
+ Using activerecord (3.2.16)
75
+ Using activeresource (3.2.16)
76
+ Using addressable (2.3.5)
77
+ Using fastercsv (1.5.5)
78
+ Using haml (4.0.5)
79
+ Using highline (1.6.20)
80
+ Using sexp_processor (4.4.1)
81
+ Using ruby_parser (3.2.2)
82
+ Using ruby2ruby (2.0.7)
83
+ Using sass (3.2.13)
84
+ Using temple (0.6.7)
85
+ Using slim (2.0.2)
86
+ Using terminal-table (1.4.5)
87
+ Using brakeman (2.3.1)
88
+ Using nokogiri (1.5.6)
89
+ Using ffi (1.9.0)
90
+ Using childprocess (0.3.9)
91
+ Using rubyzip (0.9.9)
92
+ Using websocket (1.0.7)
93
+ Using selenium-webdriver (2.33.0)
94
+ Using xpath (1.0.0)
95
+ Using capybara (2.0.2)
96
+ Using capybara-screenshot (0.3.4)
97
+ Using chunky_png (1.2.7)
98
+ Using coderay (1.1.0)
99
+ Using columnize (0.3.6)
100
+ Using fssm (0.2.9)
101
+ Using compass (0.12.2)
102
+ Using companimation (0.2.0)
103
+ Using compass-rails (1.0.3)
104
+ Using crack (0.3.1)
105
+ Using css_parser (1.3.5)
106
+ Using debugger-linecache (1.2.0)
107
+ Using debugger-ruby_core_source (1.2.4)
108
+ Using debugger (1.6.2)
109
+ Using delayed_job (3.0.4)
110
+ Using delayed_job_active_record (0.3.3)
111
+ Using diff-lcs (1.1.3)
112
+ Using eventmachine (1.0.0)
113
+ Using execjs (1.4.0)
114
+ Using factory_girl (4.1.0)
115
+ Using rack-ssl (1.3.3)
116
+ Using json (1.7.7)
117
+ Using rdoc (3.12.2)
118
+ Using thor (0.18.1)
119
+ Using railties (3.2.16)
120
+ Using factory_girl_rails (4.1.0)
121
+ Using multipart-post (1.1.5)
122
+ Using faraday (0.8.4)
123
+ Using faraday_middleware (0.9.0)
124
+ Using gemnasium-parser (0.1.9)
125
+ Using hashie (1.2.0)
126
+ Using multi_xml (0.5.1)
127
+ Using httparty (0.9.0)
128
+ Using hipchat (0.7.0)
129
+ Using htmlentities (4.3.1)
130
+ Using http_parser.rb (0.5.3)
131
+ Using httpauth (0.2.0)
132
+ Using inflection (1.0.0)
133
+ Using jasmine-core (1.3.1)
134
+ Using rspec-core (2.12.2)
135
+ Using rspec-expectations (2.12.1)
136
+ Using rspec-mocks (2.12.1)
137
+ Using rspec (2.12.0)
138
+ Using jasmine (1.3.2)
139
+ Using jbuilder (1.5.1)
140
+ Using jquery-rails (2.1.4)
141
+ Using jwt (0.1.8)
142
+ Using kaminari (0.14.1)
143
+ Using method_source (0.8.2)
144
+ Using mixpanel-ruby (1.0.0)
145
+ Using newrelic_rpm (3.7.1.182)
146
+ Using oauth2 (0.8.1)
147
+ Using omniauth (1.1.4)
148
+ Using omniauth-oauth2 (1.1.1)
149
+ Using omniauth-heroku (0.1.1)
150
+ Using pg (0.14.1)
151
+ Using premailer (1.7.9)
152
+ Using premailer-rails (1.6.0)
153
+ Using slop (3.4.7)
154
+ Using pry (0.9.12.4)
155
+ Using bundler (1.3.5)
156
+ Using rails (3.2.16)
157
+ Using rb-readline (0.5.1)
158
+ Using rspec-rails (2.12.1)
159
+ Using sass-rails (3.2.5)
160
+ Using simple_oauth (0.1.9)
161
+ Using simplecov-html (0.7.1)
162
+ Using simplecov (0.7.1)
163
+ Using spork (1.0.0rc3)
164
+ Using spork-rails (3.2.1)
165
+ Using sshkey (1.3.1)
166
+ Using strip_attributes (1.4.1)
167
+ Using twitter-stream (0.1.16)
168
+ Using tinder (1.9.2)
169
+ Using uglifier (1.3.0)
170
+ Using webmock (1.9.0)
171
+ Using zendesk_api (0.3.5)
172
+ Updating files in vendor/cache
173
+ Your bundle is complete!
174
+ It was installed into ./vendor/bundle
175
+ Command ./.init.sh exited successfully with status 0. Took 2.52 seconds.
176
+
177
+ $ bundle exec rake db:drop db:create db:migrate db:test:prepare
178
+ == CreateUsers: migrating ====================================================
179
+ -- create_table(:users)
180
+ -> 0.0034s
181
+ == CreateUsers: migrated (0.0036s) ===========================================
182
+
183
+ == CreateSshKeys: migrating ==================================================
184
+ -- create_table(:ssh_keys)
185
+ -> 0.0031s
186
+ == CreateSshKeys: migrated (0.0031s) =========================================
187
+
188
+ == CreateProjects: migrating =================================================
189
+ -- create_table(:projects)
190
+ -> 0.0032s
191
+ == CreateProjects: migrated (0.0034s) ========================================
192
+
193
+ == AddProjectIdToSshKeys: migrating ==========================================
194
+ -- change_table(:ssh_keys)
195
+ -> 0.0005s
196
+ == AddProjectIdToSshKeys: migrated (0.0009s) =================================
197
+
198
+ == AddNameToUser: migrating ==================================================
199
+ -- add_column(:users, :login_name, :string)
200
+ -> 0.0013s
201
+ == AddNameToUser: migrated (0.0014s) =========================================
202
+
203
+ == AddRailsRootAndGoServerHostToProjects: migrating ==========================
204
+ -- add_column(:projects, :rails_root, :string)
205
+ -> 0.0004s
206
+ -- add_column(:projects, :go_server_host, :string)
207
+ -> 0.0003s
208
+ == AddRailsRootAndGoServerHostToProjects: migrated (0.0015s) =================
209
+
210
+ == AddSessionsTable: migrating ===============================================
211
+ -- create_table(:sessions)
212
+ -> 0.0030s
213
+ -- add_index(:sessions, :session_id)
214
+ -> 0.0018s
215
+ -- add_index(:sessions, :updated_at)
216
+ -> 0.0022s
217
+ == AddSessionsTable: migrated (0.0080s) ======================================
218
+
219
+ == CreatePipelineInstances: migrating ========================================
220
+ -- create_table(:pipeline_instances)
221
+ -> 0.0030s
222
+ == CreatePipelineInstances: migrated (0.0032s) ===============================
223
+
224
+ == CreateStageInstances: migrating ===========================================
225
+ -- create_table(:stage_instances)
226
+ -> 0.0032s
227
+ == CreateStageInstances: migrated (0.0035s) ==================================
228
+
229
+ == AddCommitMessagesToPipelineInstance: migrating ============================
230
+ -- add_column(:pipeline_instances, :commit_messages, :text)
231
+ -> 0.0004s
232
+ == AddCommitMessagesToPipelineInstance: migrated (0.0008s) ===================
233
+
234
+ == CreateGoServerPool: migrating =============================================
235
+ -- create_table(:go_server_pool)
236
+ -> 0.0031s
237
+ == CreateGoServerPool: migrated (0.0032s) ====================================
238
+
239
+ == CreateCollaborations: migrating ===========================================
240
+ -- create_table(:collaborations)
241
+ -> 0.0021s
242
+ == CreateCollaborations: migrated (0.0021s) ==================================
243
+
244
+ == DropUserFromProject: migrating ============================================
245
+ -- remove_column(:projects, :user_id)
246
+ -> 0.0006s
247
+ == DropUserFromProject: migrated (0.0007s) ===================================
248
+
249
+ == AddEmailToUser: migrating =================================================
250
+ -- add_column(:users, :email, :string)
251
+ -> 0.0004s
252
+ == AddEmailToUser: migrated (0.0008s) ========================================
253
+
254
+ == AddProvisioningStatusToProject: migrating =================================
255
+ -- add_column(:projects, :provisioning_status, :string, {:default=>:provisioning})
256
+ -> 0.0032s
257
+ == AddProvisioningStatusToProject: migrated (0.0036s) ========================
258
+
259
+ == ChangeProvisioningStatusToProvisionedCount: migrating =====================
260
+ -- add_column(:projects, :provisioned_count, :integer, {:default=>0})
261
+ -> 0.0034s
262
+ -- rename_column(:projects, :provisioning_status, :x_provisioning_status)
263
+ -> 0.0003s
264
+ == ChangeProvisioningStatusToProvisionedCount: migrated (0.0044s) ============
265
+
266
+ == DeprecateGoServerPoolTable: migrating =====================================
267
+ -- rename_table(:go_server_pool, :x_go_server_pool)
268
+ -> 0.0021s
269
+ == DeprecateGoServerPoolTable: migrated (0.0024s) ============================
270
+
271
+ == AddProvisionedFlagToProjects: migrating ===================================
272
+ -- rename_column(:projects, :provisioned_count, :x_provisioning_count)
273
+ -> 0.0004s
274
+ -- add_column(:projects, :provisioned, :boolean, {:default=>false})
275
+ -> 0.0028s
276
+ == AddProvisionedFlagToProjects: migrated (0.0039s) ==========================
277
+
278
+ == AddWorkerStatusToProject: migrating =======================================
279
+ -- add_column(:projects, :worker_status, :text)
280
+ -> 0.0004s
281
+ == AddWorkerStatusToProject: migrated (0.0008s) ==============================
282
+
283
+ == CreateGoCommits: migrating ================================================
284
+ -- create_table(:go_commits)
285
+ -> 0.0033s
286
+ == CreateGoCommits: migrated (0.0034s) =======================================
287
+
288
+ == CreateGoJobs: migrating ===================================================
289
+ -- create_table(:go_jobs)
290
+ -> 0.0030s
291
+ == CreateGoJobs: migrated (0.0031s) ==========================================
292
+
293
+ == CreateGoStages: migrating =================================================
294
+ -- create_table(:go_stages)
295
+ -> 0.0031s
296
+ == CreateGoStages: migrated (0.0032s) ========================================
297
+
298
+ == CreateGoPipelines: migrating ==============================================
299
+ -- create_table(:go_pipelines)
300
+ -> 0.0031s
301
+ == CreateGoPipelines: migrated (0.0032s) =====================================
302
+
303
+ == RemovePipelineInstances: migrating ========================================
304
+ -- rename_table(:pipeline_instances, :x_pipeline_instances)
305
+ -> 0.0017s
306
+ == RemovePipelineInstances: migrated (0.0018s) ===============================
307
+
308
+ == RemoveStageInstances: migrating ===========================================
309
+ -- rename_table(:stage_instances, :x_stage_instances)
310
+ -> 0.0017s
311
+ == RemoveStageInstances: migrated (0.0018s) ==================================
312
+
313
+ == AddAdditionalJobProperties: migrating =====================================
314
+ -- execute("delete from go_jobs")
315
+ -> 0.0003s
316
+ -- add_column(:go_jobs, :duration, :integer, {:null=>false})
317
+ -> 0.0003s
318
+ -- add_column(:go_jobs, :result, :string, {:null=>false})
319
+ -> 0.0004s
320
+ -- add_column(:go_jobs, :scheduled, :datetime, {:null=>false})
321
+ -> 0.0003s
322
+ -- add_column(:go_jobs, :assigned, :datetime, {:null=>false})
323
+ -> 0.0003s
324
+ -- add_column(:go_jobs, :preparing, :datetime, {:null=>false})
325
+ -> 0.0003s
326
+ -- add_column(:go_jobs, :building, :datetime, {:null=>false})
327
+ -> 0.0003s
328
+ -- add_column(:go_jobs, :completing, :datetime, {:null=>false})
329
+ -> 0.0003s
330
+ -- add_column(:go_jobs, :completed, :datetime, {:null=>false})
331
+ -> 0.0004s
332
+ == AddAdditionalJobProperties: migrated (0.0052s) ============================
333
+
334
+ == AddIdentifiersToPipelinesStagesAndJobs: migrating =========================
335
+ -- execute("delete from go_pipelines")
336
+ -> 0.0003s
337
+ -- add_column("go_pipelines", :identifier, :string, {:null=>false})
338
+ -> 0.0004s
339
+ -- execute("delete from go_stages")
340
+ -> 0.0003s
341
+ -- add_column("go_stages", :identifier, :string, {:null=>false})
342
+ -> 0.0003s
343
+ -- execute("delete from go_jobs")
344
+ -> 0.0003s
345
+ -- add_column("go_jobs", :identifier, :string, {:null=>false})
346
+ -> 0.0003s
347
+ -- add_index(:go_pipelines, [:project_id, :identifier], {:unique=>true})
348
+ -> 0.0021s
349
+ -- add_index(:go_stages, [:pipeline_id, :identifier], {:unique=>true})
350
+ -> 0.0018s
351
+ -- add_index(:go_jobs, [:stage_id, :identifier], {:unique=>true})
352
+ -> 0.0019s
353
+ == AddIdentifiersToPipelinesStagesAndJobs: migrated (0.0104s) ================
354
+
355
+ == RemoveDeprecatedStuff: migrating ==========================================
356
+ -- remove_column(:projects, :x_provisioning_status)
357
+ -> 0.0005s
358
+ -- remove_column(:projects, :x_provisioning_count)
359
+ -> 0.0004s
360
+ -- drop_table(:x_go_server_pool)
361
+ -> 0.0008s
362
+ -- drop_table(:x_pipeline_instances)
363
+ -> 0.0007s
364
+ -- drop_table(:x_stage_instances)
365
+ -> 0.0007s
366
+ == RemoveDeprecatedStuff: migrated (0.0049s) =================================
367
+
368
+ == AddUniqueIndexToPipelineStageJobUrls: migrating ===========================
369
+ -- add_index(:go_jobs, [:stage_id, :url], {:unique=>true})
370
+ -> 0.0023s
371
+ -- add_index(:go_stages, [:pipeline_id, :url], {:unique=>true})
372
+ -> 0.0021s
373
+ -- add_index(:go_pipelines, [:project_id, :url], {:unique=>true})
374
+ -> 0.0021s
375
+ == AddUniqueIndexToPipelineStageJobUrls: migrated (0.0066s) ==================
376
+
377
+ == ChangeNameToFullNameForProject: migrating =================================
378
+ -- rename_column(:projects, :name, :full_name)
379
+ -> 0.0004s
380
+ == ChangeNameToFullNameForProject: migrated (0.0004s) ========================
381
+
382
+ == AddGithubIdToSshKey: migrating ============================================
383
+ -- add_column(:ssh_keys, :github_id, :integer)
384
+ -> 0.0004s
385
+ == AddGithubIdToSshKey: migrated (0.0004s) ===================================
386
+
387
+ == DropNotNullConstraintsOnGoJobs: migrating =================================
388
+ -- change_column(:go_jobs, :assigned, :datetime, {:null=>true})
389
+ -> 0.0006s
390
+ -- change_column(:go_jobs, :preparing, :datetime, {:null=>true})
391
+ -> 0.0005s
392
+ -- change_column(:go_jobs, :building, :datetime, {:null=>true})
393
+ -> 0.0005s
394
+ -- change_column(:go_jobs, :completing, :datetime, {:null=>true})
395
+ -> 0.0005s
396
+ == DropNotNullConstraintsOnGoJobs: migrated (0.0024s) ========================
397
+
398
+ == AddLatestAtomEntryIdToProject: migrating ==================================
399
+ -- add_column(:projects, :latest_atom_entry_id, :string)
400
+ -> 0.0004s
401
+ == AddLatestAtomEntryIdToProject: migrated (0.0005s) =========================
402
+
403
+ == ExpandGoCommitsMessageColumnToTextFromString: migrating ===================
404
+ -- change_column(:go_commits, :message, :text, {:null=>true})
405
+ -> 0.0006s
406
+ == ExpandGoCommitsMessageColumnToTextFromString: migrated (0.0007s) ==========
407
+
408
+ == AddOrderingColumnToPipelinesAndStages: migrating ==========================
409
+ -- execute("DELETE FROM go_jobs")
410
+ -> 0.0004s
411
+ -- execute("DELETE FROM go_stages")
412
+ -> 0.0003s
413
+ -- execute("DELETE FROM go_pipelines")
414
+ -> 0.0003s
415
+ -- execute("DELETE FROM go_commits")
416
+ -> 0.0003s
417
+ -- execute("UPDATE projects SET latest_atom_entry_id=NULL")
418
+ -> 0.0003s
419
+ -- add_column(:go_pipelines, :counter, :integer)
420
+ -> 0.0003s
421
+ -- add_column(:go_pipelines, :schedule_time, :datetime)
422
+ -> 0.0003s
423
+ -- add_column(:go_stages, :counter, :integer)
424
+ -> 0.0003s
425
+ == AddOrderingColumnToPipelinesAndStages: migrated (0.0029s) =================
426
+
427
+ == CreateHerokuCredentials: migrating ========================================
428
+ -- create_table(:heroku_credentials)
429
+ -> 0.0031s
430
+ == CreateHerokuCredentials: migrated (0.0032s) ===============================
431
+
432
+ == AddHerokuCredentialIdToProject: migrating =================================
433
+ -- add_column(:projects, :heroku_credentials_id, :integer)
434
+ -> 0.0004s
435
+ == AddHerokuCredentialIdToProject: migrated (0.0004s) ========================
436
+
437
+ == AddHerokuCredentialIdToSshKey: migrating ==================================
438
+ -- add_column(:ssh_keys, :heroku_credentials_id, :integer)
439
+ -> 0.0004s
440
+ == AddHerokuCredentialIdToSshKey: migrated (0.0004s) =========================
441
+
442
+ == RemoveProjectIdGithubIdHerokuCredentialIdFromSshKeys: migrating ===========
443
+ -- remove_column(:ssh_keys, :project_id)
444
+ -> 0.0004s
445
+ -- remove_column(:ssh_keys, :github_id)
446
+ -> 0.0003s
447
+ == RemoveProjectIdGithubIdHerokuCredentialIdFromSshKeys: migrated (0.0008s) ==
448
+
449
+ == CreateDeployKeys: migrating ===============================================
450
+ -- create_table(:deploy_keys)
451
+ -> 0.0023s
452
+ == CreateDeployKeys: migrated (0.0024s) ======================================
453
+
454
+ == AddOwnerIdAndOwnerTypeToSshKey: migrating =================================
455
+ -- add_column(:ssh_keys, :owner_id, :integer)
456
+ -> 0.0004s
457
+ -- add_column(:ssh_keys, :owner_type, :string)
458
+ -> 0.0003s
459
+ == AddOwnerIdAndOwnerTypeToSshKey: migrated (0.0013s) ========================
460
+
461
+ == AddBuildingAndBuildStatusToProject: migrating =============================
462
+ -- add_column(:projects, :building, :boolean)
463
+ -> 0.0004s
464
+ -- add_column(:projects, :build_status, :string)
465
+ -> 0.0004s
466
+ == AddBuildingAndBuildStatusToProject: migrated (0.0015s) ====================
467
+
468
+ == CreateDelayedJobs: migrating ==============================================
469
+ -- create_table(:delayed_jobs, {:force=>true})
470
+ -> 0.0039s
471
+ -- add_index(:delayed_jobs, [:priority, :run_at], {:name=>"delayed_jobs_priority"})
472
+ -> 0.0019s
473
+ == CreateDelayedJobs: migrated (0.0066s) =====================================
474
+
475
+ == AddNameToGoJobs: migrating ================================================
476
+ -- execute("delete from go_pipelines")
477
+ -> 0.0003s
478
+ -- execute("delete from go_stages")
479
+ -> 0.0003s
480
+ -- execute("delete from go_jobs")
481
+ -> 0.0002s
482
+ -- add_column(:go_jobs, :name, :string, {:null=>false})
483
+ -> 0.0003s
484
+ == AddNameToGoJobs: migrated (0.0019s) =======================================
485
+
486
+ == CreateHerokuDeployments: migrating ========================================
487
+ -- create_table(:heroku_deployments)
488
+ -> 0.0032s
489
+ == CreateHerokuDeployments: migrated (0.0033s) ===============================
490
+
491
+ == RemoveRemoteConfigurationOptionsFromHerokuDeployments: migrating ==========
492
+ -- remove_column(:heroku_deployments, :create_remote)
493
+ -> 0.0005s
494
+ -- remove_column(:heroku_deployments, :remote_name)
495
+ -> 0.0003s
496
+ == RemoveRemoteConfigurationOptionsFromHerokuDeployments: migrated (0.0013s) =
497
+
498
+ == RemoveHerokuCredentialsIdFromProjectsTable: migrating =====================
499
+ -- remove_column(:projects, :heroku_credentials_id)
500
+ -> 0.0004s
501
+ == RemoveHerokuCredentialsIdFromProjectsTable: migrated (0.0008s) ============
502
+
503
+ == AddDbMigrateOptionToHerokuDeployment: migrating ===========================
504
+ -- add_column(:heroku_deployments, :run_db_migrate, :boolean, {:default=>true})
505
+ -> 0.0033s
506
+ == AddDbMigrateOptionToHerokuDeployment: migrated (0.0037s) ==================
507
+
508
+ == AddDefaultBranchToProjects: migrating =====================================
509
+ -- add_column(:projects, :default_branch, :string)
510
+ -> 0.0005s
511
+ -- execute("UPDATE projects SET default_branch='master'")
512
+ -> 0.0003s
513
+ -- change_column(:projects, :default_branch, :string, {:null=>false})
514
+ -> 0.0005s
515
+ == AddDefaultBranchToProjects: migrated (0.0016s) ============================
516
+
517
+ == MakeHerokuCredentialsMandatoryInHerokuDeployments: migrating ==============
518
+ -- execute("DELETE from heroku_deployments")
519
+ -> 0.0003s
520
+ -- change_column(:heroku_deployments, :heroku_credentials_id, :integer, {:null=>false})
521
+ -> 0.0005s
522
+ == MakeHerokuCredentialsMandatoryInHerokuDeployments: migrated (0.0017s) =====
523
+
524
+ == CreateHipchatCredentials: migrating =======================================
525
+ -- create_table(:hipchat_credentials)
526
+ -> 0.0031s
527
+ == CreateHipchatCredentials: migrated (0.0035s) ==============================
528
+
529
+ == CreateHipchatNotifications: migrating =====================================
530
+ -- create_table(:hipchat_notifications)
531
+ -> 0.0032s
532
+ == CreateHipchatNotifications: migrated (0.0035s) ============================
533
+
534
+ == CreatePostCommits: migrating ==============================================
535
+ -- create_table(:post_commits)
536
+ -> 0.0031s
537
+ == CreatePostCommits: migrated (0.0031s) =====================================
538
+
539
+ == RenamePostCommitsTable: migrating =========================================
540
+ -- rename_table(:post_commits, :post_commit_notifications)
541
+ -> 0.0017s
542
+ == RenamePostCommitsTable: migrated (0.0018s) ================================
543
+
544
+ == CreateWebHooks: migrating =================================================
545
+ -- create_table(:web_hooks)
546
+ -> 0.0022s
547
+ == CreateWebHooks: migrated (0.0022s) ========================================
548
+
549
+ == AddSecretKeyToWebHooks: migrating =========================================
550
+ -- execute("delete from web_hooks")
551
+ -> 0.0003s
552
+ -- add_column(:web_hooks, :secret_key, :string, {:null=>false})
553
+ -> 0.0014s
554
+ == AddSecretKeyToWebHooks: migrated (0.0018s) ================================
555
+
556
+ == PostCommitNotificationShouldBelongToWebHook: migrating ====================
557
+ -- execute("delete from post_commit_notifications")
558
+ -> 0.0003s
559
+ -- remove_column(:post_commit_notifications, :project_id)
560
+ -> 0.0003s
561
+ -- add_column(:post_commit_notifications, :web_hook_id, :integer, {:null=>false})
562
+ -> 0.0003s
563
+ == PostCommitNotificationShouldBelongToWebHook: migrated (0.0011s) ===========
564
+
565
+ == CreateContainerNodes: migrating ===========================================
566
+ -- create_table(:container_nodes)
567
+ -> 0.0032s
568
+ == CreateContainerNodes: migrated (0.0032s) ==================================
569
+
570
+ == CreateProjectEcosystems: migrating ========================================
571
+ -- create_table(:project_ecosystems)
572
+ -> 0.0032s
573
+ == CreateProjectEcosystems: migrated (0.0034s) ===============================
574
+
575
+ == CreateCampfireCredentials: migrating ======================================
576
+ -- create_table(:campfire_credentials)
577
+ -> 0.0029s
578
+ == CreateCampfireCredentials: migrated (0.0033s) =============================
579
+
580
+ == CreateCampfireNotifications: migrating ====================================
581
+ -- create_table(:campfire_notifications)
582
+ -> 0.0022s
583
+ == CreateCampfireNotifications: migrated (0.0026s) ===========================
584
+
585
+ == AddPipelineEndedColumnToProjects: migrating ===============================
586
+ -- add_column(:projects, :pipeline_ended, :boolean, {:null=>false, :default=>true})
587
+ -> 0.0033s
588
+ == AddPipelineEndedColumnToProjects: migrated (0.0034s) ======================
589
+
590
+ == AddBuildPlanCapacityToUsers: migrating ====================================
591
+ -- add_column(:users, :build_plan_capacity, :integer, {:default=>1, :null=>false})
592
+ -> 0.0028s
593
+ == AddBuildPlanCapacityToUsers: migrated (0.0032s) ===========================
594
+
595
+ == DropOrphanedWebHooksAndNotifications: migrating ===========================
596
+ -- execute("DELETE FROM post_commit_notifications;")
597
+ -> 0.0003s
598
+ == DropOrphanedWebHooksAndNotifications: migrated (0.0044s) ==================
599
+
600
+ == CreateAuthorizedUsers: migrating ==========================================
601
+ -- create_table(:authorized_users)
602
+ -> 0.0030s
603
+ -- add_index(:authorized_users, :github_username, {:unique=>true})
604
+ -> 0.0018s
605
+ == CreateAuthorizedUsers: migrated (0.0263s) =================================
606
+
607
+ == ChangeIdentifierToBeNullableInGoStage: migrating ==========================
608
+ -- change_column(:go_stages, :identifier, :string, {:null=>true})
609
+ -> 0.0010s
610
+ == ChangeIdentifierToBeNullableInGoStage: migrated (0.0014s) =================
611
+
612
+ == ChangeIdentifierToBeNullableInGoPipeline: migrating =======================
613
+ -- change_column(:go_pipelines, :identifier, :string, {:null=>true})
614
+ -> 0.0009s
615
+ == ChangeIdentifierToBeNullableInGoPipeline: migrated (0.0010s) ==============
616
+
617
+ == ChangeIdentifierAndScheduledAndDurationAndCompletedToBeNullableInGoJob: migrating
618
+ -- change_column(:go_jobs, :identifier, :string, {:null=>true})
619
+ -> 0.0009s
620
+ -- change_column(:go_jobs, :scheduled, :datetime, {:null=>true})
621
+ -> 0.0005s
622
+ -- change_column(:go_jobs, :duration, :integer, {:null=>true})
623
+ -> 0.0005s
624
+ -- change_column(:go_jobs, :completed, :datetime, {:null=>true})
625
+ -> 0.0005s
626
+ == ChangeIdentifierAndScheduledAndDurationAndCompletedToBeNullableInGoJob: migrated (0.0036s)
627
+
628
+ == ClearOldWorkerStatuses: migrating =========================================
629
+ == ClearOldWorkerStatuses: migrated (0.0017s) ================================
630
+
631
+ == AddProvisioningErrorsToProject: migrating =================================
632
+ -- add_column(:projects, :provisioning_errors, :text)
633
+ -> 0.0004s
634
+ == AddProvisioningErrorsToProject: migrated (0.0006s) ========================
635
+
636
+ == MakeAllFieldsNullableInProjectEcosystem: migrating ========================
637
+ -- change_column(:project_ecosystems, :project_id, :integer, {:null=>true})
638
+ -> 0.0006s
639
+ -- change_column(:project_ecosystems, :zone_id, :integer, {:null=>true})
640
+ -> 0.0005s
641
+ -- change_column(:project_ecosystems, :vz_host_ip, :string, {:null=>true})
642
+ -> 0.0005s
643
+ -- change_column(:project_ecosystems, :git_url, :string, {:null=>true})
644
+ -> 0.0005s
645
+ == MakeAllFieldsNullableInProjectEcosystem: migrated (0.0024s) ===============
646
+
647
+ == MakeFewFieldsNullableInContainerNode: migrating ===========================
648
+ -- change_column(:container_nodes, :client_key, :text, {:null=>true})
649
+ -> 0.0006s
650
+ -- change_column(:container_nodes, :go_agent_uuid, :string, {:null=>true})
651
+ -> 0.0005s
652
+ -- change_column(:container_nodes, :short_hostname, :string, {:null=>true})
653
+ -> 0.0005s
654
+ == MakeFewFieldsNullableInContainerNode: migrated (0.0018s) ==================
655
+
656
+ == ClearOldWorkerStatusesAgain: migrating ====================================
657
+ == ClearOldWorkerStatusesAgain: migrated (0.0008s) ===========================
658
+
659
+ == CreateSettings: migrating =================================================
660
+ -- create_table(:settings)
661
+ -> 0.0031s
662
+ == CreateSettings: migrated (0.0033s) ========================================
663
+
664
+ == AddCurrentlyRunningStageToProject: migrating ==============================
665
+ -- add_column(:projects, :currently_running_stage, :text)
666
+ -> 0.0004s
667
+ == AddCurrentlyRunningStageToProject: migrated (0.0007s) =====================
668
+
669
+ == Jan142013ClearOldWorkerStatuses: migrating ================================
670
+ == Jan142013ClearOldWorkerStatuses: migrated (0.0008s) =======================
671
+
672
+ == AddCurrentFlagToStagesToBeAbleToShowIndicatorsToUsers: migrating ==========
673
+ -- add_column(:go_stages, :current, :boolean, {:null=>false, :default=>false})
674
+ -> 0.0040s
675
+ == AddCurrentFlagToStagesToBeAbleToShowIndicatorsToUsers: migrated (0.0044s) =
676
+
677
+ == AddDeletionInProgressFlagToProjectEcosystem: migrating ====================
678
+ -- add_column(:project_ecosystems, :deletion_in_progress, :boolean, {:default=>false})
679
+ -> 0.0028s
680
+ == AddDeletionInProgressFlagToProjectEcosystem: migrated (0.0032s) ===========
681
+
682
+ == DropResultColumnOnStage: migrating ========================================
683
+ -- remove_column(:go_stages, :result)
684
+ -> 0.0004s
685
+ == DropResultColumnOnStage: migrated (0.0005s) ===============================
686
+
687
+ == AddDeletionErrorToProjectEcosystem: migrating =============================
688
+ -- add_column(:project_ecosystems, :deletion_errors, :text, {:default=>nil})
689
+ -> 0.0004s
690
+ == AddDeletionErrorToProjectEcosystem: migrated (0.0005s) ====================
691
+
692
+ == CreateEnvironmentVariables: migrating =====================================
693
+ -- create_table(:environment_variables)
694
+ -> 0.0030s
695
+ == CreateEnvironmentVariables: migrated (0.0030s) ============================
696
+
697
+ == AddEnvNameAndAutoDeployToHerokuDeployment: migrating ======================
698
+ -- add_column(:heroku_deployments, :environment_name, :string)
699
+ -> 0.0004s
700
+ -- add_column(:heroku_deployments, :auto_deploy, :boolean)
701
+ -> 0.0003s
702
+ == AddEnvNameAndAutoDeployToHerokuDeployment: migrated (0.0008s) =============
703
+
704
+ == AddDefaultEnvNameAndAutodeployFlagForExistingProjects: migrating ==========
705
+ == AddDefaultEnvNameAndAutodeployFlagForExistingProjects: migrated (0.0022s) =
706
+
707
+ == AddAutoDeployFlagToGoStage: migrating =====================================
708
+ -- add_column(:go_stages, :auto_deploy, :boolean, {:default=>true, :null=>false})
709
+ -> 0.0039s
710
+ == AddAutoDeployFlagToGoStage: migrated (0.0039s) ============================
711
+
712
+ == RenamePostCommitNotificationToBuildRequest: migrating =====================
713
+ -- rename_table("post_commit_notifications", "build_requests")
714
+ -> 0.0016s
715
+ -- add_column(:build_requests, :stage_id, :integer)
716
+ -> 0.0003s
717
+ -- add_column(:build_requests, :pipeline_id, :integer)
718
+ -> 0.0003s
719
+ -- add_column(:build_requests, :project_id, :integer)
720
+ -> 0.0003s
721
+ -- add_column(:build_requests, :type, :string)
722
+ -> 0.0003s
723
+ -- change_column(:build_requests, :web_hook_id, :integer, {:null=>true})
724
+ -> 0.0005s
725
+ == RenamePostCommitNotificationToBuildRequest: migrated (0.0036s) ============
726
+
727
+ == CreateBuildPlans: migrating ===============================================
728
+ -- create_table(:build_plans)
729
+ -> 0.0031s
730
+ == CreateBuildPlans: migrated (0.0032s) ======================================
731
+
732
+ == AddSecureToEnvironmentVariables: migrating ================================
733
+ -- add_column(:environment_variables, :secure, :boolean, {:default=>false})
734
+ -> 0.0026s
735
+ == AddSecureToEnvironmentVariables: migrated (0.0030s) =======================
736
+
737
+ == AddHerokuCredentialsIdToProject: migrating ================================
738
+ -- add_column(:projects, :heroku_credentials_id, :integer)
739
+ -> 0.0004s
740
+ -- remove_column(:heroku_deployments, :heroku_credentials_id)
741
+ -> 0.0003s
742
+ == AddHerokuCredentialsIdToProject: migrated (0.0022s) =======================
743
+
744
+ == PutConstraintsOnProjectFullNameAndRepositoryUrl: migrating ================
745
+ -- change_column(:projects, :full_name, :string, {:null=>false})
746
+ -> 0.0006s
747
+ -- add_index(:projects, [:full_name], {:unique=>true})
748
+ -> 0.0018s
749
+ -- change_column(:projects, :repository_url, :string, {:null=>false})
750
+ -> 0.0005s
751
+ == PutConstraintsOnProjectFullNameAndRepositoryUrl: migrated (0.0037s) =======
752
+
753
+ == AddJobStartTimestampToProject: migrating ==================================
754
+ -- add_column(:projects, :job_start_time, :datetime)
755
+ -> 0.0004s
756
+ == AddJobStartTimestampToProject: migrated (0.0008s) =========================
757
+
758
+ == CreateBuildPlanTasks: migrating ===========================================
759
+ -- create_table(:build_plan_tasks)
760
+ -> 0.0035s
761
+ == CreateBuildPlanTasks: migrated (0.0039s) ==================================
762
+
763
+ == CreateBuildPlanStages: migrating ==========================================
764
+ -- create_table(:build_plan_stages)
765
+ -> 0.0032s
766
+ == CreateBuildPlanStages: migrated (0.0036s) =================================
767
+
768
+ == CreateBuildPlanEnvironmentVariables: migrating ============================
769
+ -- create_table(:build_plan_environment_variables)
770
+ -> 0.0032s
771
+ == CreateBuildPlanEnvironmentVariables: migrated (0.0032s) ===================
772
+
773
+ == CreateGitMaterials: migrating =============================================
774
+ -- create_table(:git_materials)
775
+ -> 0.0029s
776
+ == CreateGitMaterials: migrated (0.0032s) ====================================
777
+
778
+ == NormalizeGitMaterialFromBuildPlan: migrating ==============================
779
+ -- remove_column(:build_plans, :repository_owner_name)
780
+ -> 0.0004s
781
+ -- remove_column(:build_plans, :repository_owner_type)
782
+ -> 0.0003s
783
+ -- remove_column(:build_plans, :repository_name)
784
+ -> 0.0003s
785
+ == NormalizeGitMaterialFromBuildPlan: migrated (0.0041s) =====================
786
+
787
+ == MakeBuildPlanOwnerAPolymorphicAssociation: migrating ======================
788
+ -- rename_column(:build_plans, :user_id, :owner_id)
789
+ -> 0.0003s
790
+ -- add_column(:build_plans, :owner_type, :string)
791
+ -> 0.0003s
792
+ -- execute("UPDATE build_plans SET owner_type='User'")
793
+ -> 0.0003s
794
+ -- change_column(:build_plans, :owner_type, :string, {:null=>false})
795
+ -> 0.0006s
796
+ == MakeBuildPlanOwnerAPolymorphicAssociation: migrated (0.0017s) =============
797
+
798
+ == AddRunningFlagToPipeline: migrating =======================================
799
+ -- add_column(:go_pipelines, :running, :boolean, {:null=>false, :default=>false})
800
+ -> 0.0041s
801
+ == AddRunningFlagToPipeline: migrated (0.0042s) ==============================
802
+
803
+ == AddOwnerToProject: migrating ==============================================
804
+ -- add_column(:projects, :owner_id, :integer)
805
+ -> 0.0004s
806
+ -- change_column(:projects, :owner_id, :integer, {:null=>false})
807
+ -> 0.0006s
808
+ == AddOwnerToProject: migrated (0.0025s) =====================================
809
+
810
+ == AddOrderToBuildPlanStage: migrating =======================================
811
+ -- add_column(:build_plan_stages, :stage_order, :integer)
812
+ -> 0.0004s
813
+ -- add_column(:build_plan_tasks, :task_order, :integer)
814
+ -> 0.0004s
815
+ -- change_column(:build_plan_stages, :stage_order, :integer, {:null=>false})
816
+ -> 0.0005s
817
+ -- change_column(:build_plan_tasks, :task_order, :integer, {:null=>false})
818
+ -> 0.0005s
819
+ -- add_index(:build_plan_stages, [:build_plan_id, :stage_order])
820
+ -> 0.0020s
821
+ -- add_index(:build_plan_tasks, [:stage_id, :task_order])
822
+ -> 0.0016s
823
+ == AddOrderToBuildPlanStage: migrated (0.0125s) ==============================
824
+
825
+ == AddUniquenessConstraintOnStageNameInBuildPlan: migrating ==================
826
+ -- add_index(:build_plan_stages, [:build_plan_id, :name])
827
+ -> 0.0020s
828
+ == AddUniquenessConstraintOnStageNameInBuildPlan: migrated (0.0022s) =========
829
+
830
+ == ChangeRunifDefaultToPassedForStages: migrating ============================
831
+ -- change_column(:build_plan_tasks, :runif, :string, {:default=>"passed", :null=>false})
832
+ -> 0.0014s
833
+ -- execute("UPDATE build_plan_tasks SET runif='passed' WHERE runif='success'")
834
+ -> 0.0004s
835
+ == ChangeRunifDefaultToPassedForStages: migrated (0.0026s) ===================
836
+
837
+ == AddRunListToBuildPlan: migrating ==========================================
838
+ -- add_column(:build_plans, :run_list, :string)
839
+ -> 0.0004s
840
+ == AddRunListToBuildPlan: migrated (0.0007s) =================================
841
+
842
+ == AddPipelineXmlToPostCommitNotification: migrating =========================
843
+ -- add_column(:build_requests, :pipeline_xml, :text)
844
+ -> 0.0004s
845
+ == AddPipelineXmlToPostCommitNotification: migrated (0.0008s) ================
846
+
847
+ == MergeHerokuDeploymentsAndBuildPlanStages: migrating =======================
848
+ -- change_table(:build_plan_stages)
849
+ -> 0.0054s
850
+ -- execute("UPDATE build_plan_stages SET type='BuildPlan::ConfigurableStage'")
851
+ -> 0.0003s
852
+ -- execute("UPDATE build_plan_stages SET type='HerokuDeployment' where type IS NULL")
853
+ -> 0.0002s
854
+ -- rename_table(:environment_variables, :x_environment_variables)
855
+ -> 0.0019s
856
+ -- rename_table(:heroku_deployments, :x_heroku_deployments)
857
+ -> 0.0016s
858
+ == MergeHerokuDeploymentsAndBuildPlanStages: migrated (0.0140s) ==============
859
+
860
+ == EnvironmentVariableUniqueIndexOnKeyInScopeOfOwner: migrating ==============
861
+ -- add_index(:build_plan_environment_variables, [:key, :environment_id, :environment_type], {:unique=>true, :name=>"ev_idx_on_key_and_owner"})
862
+ -> 0.0019s
863
+ == EnvironmentVariableUniqueIndexOnKeyInScopeOfOwner: migrated (0.0023s) =====
864
+
865
+ == BuildPlanStageNameIndexOnNameInScopeOfBuildPlan: migrating ================
866
+ -- add_index(:build_plan_stages, [:name, :build_plan_id], {:unique=>true})
867
+ -> 0.0023s
868
+ == BuildPlanStageNameIndexOnNameInScopeOfBuildPlan: migrated (0.0025s) =======
869
+
870
+ == AddPausedToProject: migrating =============================================
871
+ -- add_column(:projects, :paused, :boolean, {:default=>false})
872
+ -> 0.0037s
873
+ == AddPausedToProject: migrated (0.0040s) ====================================
874
+
875
+ == AddUniqueIndexOnProjectIdAndLabelOnGoPipelines: migrating =================
876
+ -- add_index(:go_pipelines, [:project_id, :label], {:unique=>true})
877
+ -> 0.0023s
878
+ == AddUniqueIndexOnProjectIdAndLabelOnGoPipelines: migrated (0.0024s) ========
879
+
880
+ == MakeGoPipelineLabelAndNameMandatory: migrating ============================
881
+ -- change_column(:go_pipelines, :label, :string, {:null=>false})
882
+ -> 0.0009s
883
+ -- change_column(:go_pipelines, :name, :string, {:null=>false})
884
+ -> 0.0005s
885
+ == MakeGoPipelineLabelAndNameMandatory: migrated (0.0016s) ===================
886
+
887
+ == AddHerokuCredentialsToBuildPlan: migrating ================================
888
+ -- add_column(:build_plans, :heroku_credentials_id, :integer)
889
+ -> 0.0004s
890
+ == AddHerokuCredentialsToBuildPlan: migrated (0.0037s) =======================
891
+
892
+ == RemoveHerokuCredentialsFromProject: migrating =============================
893
+ -- remove_column(:projects, :heroku_credentials_id)
894
+ -> 0.0004s
895
+ == RemoveHerokuCredentialsFromProject: migrated (0.0007s) ====================
896
+
897
+ == TransferHerokuCredentialsFromUserToBuildPlan: migrating ===================
898
+ -- rename_column(:heroku_credentials, :user_id, :x_user_id)
899
+ -> 0.0004s
900
+ == TransferHerokuCredentialsFromUserToBuildPlan: migrated (0.0038s) ==========
901
+
902
+ == InvertForeignKeyBetweenBuildPlanAndHerokuCredentials: migrating ===========
903
+ -- add_column(:heroku_credentials, :build_plan_id, :integer)
904
+ -> 0.0004s
905
+ -- change_column(:heroku_credentials, :build_plan_id, :integer, {:null=>false})
906
+ -> 0.0006s
907
+ -- rename_column(:build_plans, :heroku_credentials_id, :x_heroku_credentials_id)
908
+ -> 0.0005s
909
+ == InvertForeignKeyBetweenBuildPlanAndHerokuCredentials: migrated (0.0051s) ==
910
+
911
+ == DropDefaultBranchColumnOnProject: migrating ===============================
912
+ -- change_column(:projects, :default_branch, :string, {:null=>true})
913
+ -> 0.0006s
914
+ -- rename_column(:projects, :default_branch, :x_default_branch)
915
+ -> 0.0003s
916
+ == DropDefaultBranchColumnOnProject: migrated (0.0017s) ======================
917
+
918
+ == DropGoServerHostColumnOnProject: migrating ================================
919
+ -- rename_column(:projects, :go_server_host, :x_go_server_host)
920
+ -> 0.0004s
921
+ == DropGoServerHostColumnOnProject: migrated (0.0007s) =======================
922
+
923
+ == DropRailsRootColumnOnProject: migrating ===================================
924
+ -- rename_column(:projects, :rails_root, :x_rails_root)
925
+ -> 0.0003s
926
+ == DropRailsRootColumnOnProject: migrated (0.0007s) ==========================
927
+
928
+ == DeprecateGitUrlFromProjectEcosystem: migrating ============================
929
+ -- rename_column(:project_ecosystems, "git_url", "x_git_url")
930
+ -> 0.0003s
931
+ == DeprecateGitUrlFromProjectEcosystem: migrated (0.0007s) ===================
932
+
933
+ == DoNotDefaultApprovalTypeOnBuildPlanStages: migrating ======================
934
+ -- change_column_default(:build_plan_stages, :approval_type, nil)
935
+ -> 0.0005s
936
+ == DoNotDefaultApprovalTypeOnBuildPlanStages: migrated (0.0009s) =============
937
+
938
+ == AddArtifactDirectoriesToBuildPlanStages: migrating ========================
939
+ -- add_column(:build_plan_stages, :artifact_directories, :string)
940
+ -> 0.0004s
941
+ == AddArtifactDirectoriesToBuildPlanStages: migrated (0.0008s) ===============
942
+
943
+ == StoreArtifactUrls: migrating ==============================================
944
+ -- create_table("go_artifacts")
945
+ -> 0.0033s
946
+ == StoreArtifactUrls: migrated (0.0036s) =====================================
947
+
948
+ == AddRubyVersionAndDatabaseTypeColumnToBuildPlans: migrating ================
949
+ -- add_column(:build_plans, :ruby_version, :string)
950
+ -> 0.0004s
951
+ -- add_column(:build_plans, :database_type, :string)
952
+ -> 0.0003s
953
+ == AddRubyVersionAndDatabaseTypeColumnToBuildPlans: migrated (0.0035s) =======
954
+
955
+ == DropDatabaseSymlinkTasksFromDb: migrating =================================
956
+ == DropDatabaseSymlinkTasksFromDb: migrated (0.0026s) ========================
957
+
958
+ == DropPathEnvironmentVarsFromDb: migrating ==================================
959
+ == DropPathEnvironmentVarsFromDb: migrated (0.0020s) =========================
960
+
961
+ == RemoveRubyAbsolutePathsFromAllTasks: migrating ============================
962
+ == RemoveRubyAbsolutePathsFromAllTasks: migrated (0.0021s) ===================
963
+
964
+ == RemoveDatabaseFromBuildPlanRunList: migrating =============================
965
+ == RemoveDatabaseFromBuildPlanRunList: migrated (0.0022s) ====================
966
+
967
+ == DropWorkerStatusFromProjects: migrating ===================================
968
+ -- rename_column(:projects, :worker_status, :x_worker_status)
969
+ -> 0.0005s
970
+ == DropWorkerStatusFromProjects: migrated (0.0009s) ==========================
971
+
972
+ == DropWorkerStatusFromBuildPlans: migrating =================================
973
+ -- rename_column(:build_plans, :worker_status, :x_worker_status)
974
+ -> 0.0003s
975
+ == DropWorkerStatusFromBuildPlans: migrated (0.0004s) ========================
976
+
977
+ == CreateDetectionStates: migrating ==========================================
978
+ -- create_table(:detection_states)
979
+ -> 0.0032s
980
+ == CreateDetectionStates: migrated (0.0033s) =================================
981
+
982
+ == MarkAllBuildPlansFirstStageAsAutoDeployable: migrating ====================
983
+ == MarkAllBuildPlansFirstStageAsAutoDeployable: migrated (0.0008s) ===========
984
+
985
+ == AddDebugMessagesToDetectionStatuses: migrating ============================
986
+ -- add_column(:detection_states, :debug_messages, :text)
987
+ -> 0.0004s
988
+ == AddDebugMessagesToDetectionStatuses: migrated (0.0007s) ===================
989
+
990
+ == AddLocalGemsPresentFlagToBuildPlans: migrating ============================
991
+ -- add_column(:build_plans, :local_gems_present, :boolean, {:default=>false})
992
+ -> 0.0030s
993
+ == AddLocalGemsPresentFlagToBuildPlans: migrated (0.0034s) ===================
994
+
995
+ == PopulateNewBuildPlanAttributesFromWorkerStatus: migrating =================
996
+ == PopulateNewBuildPlanAttributesFromWorkerStatus: migrated (0.0022s) ========
997
+
998
+ == AddUniquenessConstraintOnBuildPlanStages: migrating =======================
999
+ -- remove_index(:build_plan_stages, [:build_plan_id, :name])
1000
+ -> 0.0019s
1001
+ -- remove_index(:build_plan_stages, [:build_plan_id, :stage_order])
1002
+ -> 0.0015s
1003
+ -- remove_index(:build_plan_stages, [:name, :build_plan_id])
1004
+ -> 0.0012s
1005
+ -- add_index(:build_plan_stages, [:build_plan_id, :name], {:unique=>true})
1006
+ -> 0.0017s
1007
+ -- add_index(:build_plan_stages, [:build_plan_id, :stage_order], {:unique=>true})
1008
+ -> 0.0021s
1009
+ == AddUniquenessConstraintOnBuildPlanStages: migrated (0.0094s) ==============
1010
+
1011
+ == AddUniquenessConstraintOnBuildPlanTasks: migrating ========================
1012
+ -- remove_index(:build_plan_tasks, [:stage_id, :task_order])
1013
+ -> 0.0013s
1014
+ -- add_index(:build_plan_tasks, [:stage_id, :task_order], {:unique=>true})
1015
+ -> 0.0017s
1016
+ == AddUniquenessConstraintOnBuildPlanTasks: migrated (0.0036s) ===============
1017
+
1018
+ == CreateBuildStatistics: migrating ==========================================
1019
+ -- create_table(:build_statistics)
1020
+ -> 0.0025s
1021
+ == CreateBuildStatistics: migrated (0.0030s) =================================
1022
+
1023
+ == GenerateBuildStatisticsForExistingProjects: migrating =====================
1024
+ == GenerateBuildStatisticsForExistingProjects: migrated (0.0027s) ============
1025
+
1026
+ == StoreRegistrants: migrating ===============================================
1027
+ -- create_table(:registrants)
1028
+ -> 0.0020s
1029
+ == StoreRegistrants: migrated (0.0023s) ======================================
1030
+
1031
+ == AddArtifactDirectoriesForExistingProjects: migrating ======================
1032
+ == AddArtifactDirectoriesForExistingProjects: migrated (0.0026s) =============
1033
+
1034
+ == AddThankedToRegistrant: migrating =========================================
1035
+ -- add_column(:registrants, :thanked, :boolean, {:default=>false})
1036
+ -> 0.0021s
1037
+ == AddThankedToRegistrant: migrated (0.0025s) ================================
1038
+
1039
+ == AddInvitedAndInviteCodeToRegistrant: migrating ============================
1040
+ -- add_column(:registrants, :invited, :boolean, {:default=>false})
1041
+ -> 0.0021s
1042
+ -- add_column(:registrants, :invite_code, :string)
1043
+ -> 0.0013s
1044
+ == AddInvitedAndInviteCodeToRegistrant: migrated (0.0042s) ===================
1045
+
1046
+ == AddUniqueIndexOnInviteCodeToRegistrants: migrating ========================
1047
+ -- add_index(:registrants, [:invite_code], {:unique=>true})
1048
+ -> 0.0018s
1049
+ == AddUniqueIndexOnInviteCodeToRegistrants: migrated (0.0023s) ===============
1050
+
1051
+ == AddJoinedToRegistrants: migrating =========================================
1052
+ -- add_column(:registrants, :joined, :boolean, {:default=>false})
1053
+ -> 0.0037s
1054
+ == AddJoinedToRegistrants: migrated (0.0041s) ================================
1055
+
1056
+ == AddRegistrantRefToAuthorizedUser: migrating ===============================
1057
+ -- change_table(:authorized_users)
1058
+ -> 0.0026s
1059
+ == AddRegistrantRefToAuthorizedUser: migrated (0.0028s) ======================
1060
+
1061
+ == AddAdminFlagToAuthorizedUsers: migrating ==================================
1062
+ -- add_column(:authorized_users, :admin, :boolean, {:default=>false})
1063
+ -> 0.0055s
1064
+ == AddAdminFlagToAuthorizedUsers: migrated (0.0060s) =========================
1065
+
1066
+ == AddDefaultAdminUsers: migrating ===========================================
1067
+ == AddDefaultAdminUsers: migrated (0.0245s) ==================================
1068
+
1069
+ == DropTableXEnvironmentVariables: migrating =================================
1070
+ -- drop_table(:x_environment_variables)
1071
+ -> 0.0009s
1072
+ == DropTableXEnvironmentVariables: migrated (0.0013s) ========================
1073
+
1074
+ == DropTableXHerokuDeployments: migrating ====================================
1075
+ -- drop_table(:x_heroku_deployments)
1076
+ -> 0.0008s
1077
+ == DropTableXHerokuDeployments: migrated (0.0009s) ===========================
1078
+
1079
+ == DropColumnXGitUrlOnProjectEcosystems: migrating ===========================
1080
+ -- remove_column(:project_ecosystems, :x_git_url)
1081
+ -> 0.0004s
1082
+ == DropColumnXGitUrlOnProjectEcosystems: migrated (0.0005s) ==================
1083
+
1084
+ == DropColumnXWorkerStatusOnBuildPlans: migrating ============================
1085
+ -- remove_column(:build_plans, :x_worker_status)
1086
+ -> 0.0004s
1087
+ == DropColumnXWorkerStatusOnBuildPlans: migrated (0.0004s) ===================
1088
+
1089
+ == DropColumnXHerokuCredentialsIdOnBuildPlans: migrating =====================
1090
+ -- remove_column(:build_plans, :x_heroku_credentials_id)
1091
+ -> 0.0004s
1092
+ == DropColumnXHerokuCredentialsIdOnBuildPlans: migrated (0.0005s) ============
1093
+
1094
+ == DropColumnXUserIdOnHerokuCredentials: migrating ===========================
1095
+ -- remove_column(:heroku_credentials, :x_user_id)
1096
+ -> 0.0004s
1097
+ == DropColumnXUserIdOnHerokuCredentials: migrated (0.0004s) ==================
1098
+
1099
+ == DropColumnXRailsRootOnProjects: migrating =================================
1100
+ -- remove_column(:projects, :x_rails_root)
1101
+ -> 0.0004s
1102
+ == DropColumnXRailsRootOnProjects: migrated (0.0005s) ========================
1103
+
1104
+ == DropColumnXGoServerHostOnProjects: migrating ==============================
1105
+ -- remove_column(:projects, :x_go_server_host)
1106
+ -> 0.0004s
1107
+ == DropColumnXGoServerHostOnProjects: migrated (0.0005s) =====================
1108
+
1109
+ == DropColumnXWorkerStatusOnProjects: migrating ==============================
1110
+ -- remove_column(:projects, :x_worker_status)
1111
+ -> 0.0004s
1112
+ == DropColumnXWorkerStatusOnProjects: migrated (0.0004s) =====================
1113
+
1114
+ == DropColumnXDefaultBranchOnProjects: migrating =============================
1115
+ -- remove_column(:projects, :x_default_branch)
1116
+ -> 0.0004s
1117
+ == DropColumnXDefaultBranchOnProjects: migrated (0.0005s) ====================
1118
+
1119
+ == AddSyncedToRegistrants: migrating =========================================
1120
+ -- add_column(:registrants, :synced, :boolean, {:default=>false})
1121
+ -> 0.0036s
1122
+ == AddSyncedToRegistrants: migrated (0.0037s) ================================
1123
+
1124
+ == ResetBuildStatistics: migrating ===========================================
1125
+ == ResetBuildStatistics: migrated (0.0020s) ==================================
1126
+
1127
+ == RenameBuildWaitAverageToAverageQueueTimeForBuildStatistics: migrating =====
1128
+ -- rename_column(:build_statistics, :build_wait_average, :average_queue_time)
1129
+ -> 0.0003s
1130
+ == RenameBuildWaitAverageToAverageQueueTimeForBuildStatistics: migrated (0.0004s)
1131
+
1132
+ == CreateRejectedBuilds: migrating ===========================================
1133
+ -- create_table(:rejected_builds)
1134
+ -> 0.0025s
1135
+ -- add_index(:rejected_builds, :project_id, {:unique=>true})
1136
+ -> 0.0016s
1137
+ == CreateRejectedBuilds: migrated (0.0049s) ==================================
1138
+
1139
+ == AddIntegrationBranchNameToGitMaterial: migrating ==========================
1140
+ -- add_column(:git_materials, :integration_branch_name, :string)
1141
+ -> 0.0004s
1142
+ == AddIntegrationBranchNameToGitMaterial: migrated (0.0005s) =================
1143
+
1144
+ == AddLatestIntegrationAtomEntryIdToProjects: migrating ======================
1145
+ -- add_column(:projects, :latest_integration_atom_entry_id, :string)
1146
+ -> 0.0004s
1147
+ == AddLatestIntegrationAtomEntryIdToProjects: migrated (0.0004s) =============
1148
+
1149
+ == RemoveRunListFromBuildPlans: migrating ====================================
1150
+ -- rename_column(:build_plans, :run_list, :x_run_list)
1151
+ -> 0.0003s
1152
+ == RemoveRunListFromBuildPlans: migrated (0.0004s) ===========================
1153
+
1154
+ == AddDependentPipelineIdToGoPipeline: migrating =============================
1155
+ -- add_column(:go_pipelines, :dependent_pipeline_id, :integer)
1156
+ -> 0.0004s
1157
+ == AddDependentPipelineIdToGoPipeline: migrated (0.0004s) ====================
1158
+
1159
+ == CreateHttpCallbacks: migrating ============================================
1160
+ -- create_table(:http_callbacks)
1161
+ -> 0.0022s
1162
+ -- add_index(:http_callbacks, :project_id, {:unique=>true})
1163
+ -> 0.0015s
1164
+ == CreateHttpCallbacks: migrated (0.0038s) ===================================
1165
+
1166
+ == AddApiTokenToUsers: migrating =============================================
1167
+ -- add_column(:users, :api_token, :string)
1168
+ -> 0.0004s
1169
+ -- change_column(:users, :api_token, :string, {:null=>false})
1170
+ -> 0.0006s
1171
+ == AddApiTokenToUsers: migrated (0.0036s) ====================================
1172
+
1173
+ == AddIndexOnDependentPipelineIdToGoPipelines: migrating =====================
1174
+ -- add_index(:go_pipelines, [:dependent_pipeline_id])
1175
+ -> 0.0027s
1176
+ == AddIndexOnDependentPipelineIdToGoPipelines: migrated (0.0028s) ============
1177
+
1178
+ == DeprecateContainerNodesTable: migrating ===================================
1179
+ -- rename_table(:container_nodes, :x_container_nodes)
1180
+ -> 0.0017s
1181
+ == DeprecateContainerNodesTable: migrated (0.0017s) ==========================
1182
+
1183
+ == DeprecateProjectEcosystemsTable: migrating ================================
1184
+ -- rename_table(:project_ecosystems, :x_project_ecosystems)
1185
+ -> 0.0015s
1186
+ == DeprecateProjectEcosystemsTable: migrated (0.0016s) =======================
1187
+
1188
+ == AddPrefetchingStatusToProjects: migrating =================================
1189
+ -- add_column(:projects, :prefetching, :string, {:default=>"not_last_stage_prefetch"})
1190
+ -> 0.0039s
1191
+ -- execute("UPDATE projects SET prefetching='not_last_stage_prefetch'")
1192
+ -> 0.0003s
1193
+ -- change_column(:projects, :prefetching, :string, {:default=>"not_last_stage_prefetch", :null=>false})
1194
+ -> 0.0014s
1195
+ == AddPrefetchingStatusToProjects: migrated (0.0057s) ========================
1196
+
1197
+ == AddScheduledColumnToBuildRequests: migrating ==============================
1198
+ -- add_column(:build_requests, :scheduled, :boolean, {:default=>false})
1199
+ -> 0.0032s
1200
+ == AddScheduledColumnToBuildRequests: migrated (0.0032s) =====================
1201
+
1202
+ == AddIntegrationHeadShaToBuildRequest: migrating ============================
1203
+ -- add_column(:build_requests, :integration_head_sha, :string)
1204
+ -> 0.0004s
1205
+ == AddIntegrationHeadShaToBuildRequest: migrated (0.0005s) ===================
1206
+
1207
+ == RecreateContainerNodes: migrating =========================================
1208
+ -- create_table(:container_nodes)
1209
+ -> 0.0022s
1210
+ == RecreateContainerNodes: migrated (0.0023s) ================================
1211
+
1212
+ == AddIntegrationBranchCommitToGoCommits: migrating ==========================
1213
+ -- add_column(:go_commits, :integration_branch_commit, :boolean, {:default=>false})
1214
+ -> 0.0029s
1215
+ == AddIntegrationBranchCommitToGoCommits: migrated (0.0030s) =================
1216
+
1217
+ == RemoveRowIntegratedBranchBuildToggleFromSettings: migrating ===============
1218
+ == RemoveRowIntegratedBranchBuildToggleFromSettings: migrated (0.0044s) ======
1219
+
1220
+ == RemoveUniqIndexOnGoPipelinesProjectIdAndUrl: migrating ====================
1221
+ -- remove_index(:go_pipelines, [:project_id, :url])
1222
+ -> 0.0021s
1223
+ == RemoveUniqIndexOnGoPipelinesProjectIdAndUrl: migrated (0.0022s) ===========
1224
+
1225
+ == RemoveUniqIndexOnGoStagesPipelineIdAndUrl: migrating ======================
1226
+ -- remove_index(:go_stages, [:pipeline_id, :url])
1227
+ -> 0.0016s
1228
+ == RemoveUniqIndexOnGoStagesPipelineIdAndUrl: migrated (0.0017s) =============
1229
+
1230
+ == AddIntegrationBranchNameToBuildRequests: migrating ========================
1231
+ -- add_column(:build_requests, :integration_branch_name, :string)
1232
+ -> 0.0004s
1233
+ == AddIntegrationBranchNameToBuildRequests: migrated (0.0005s) ===============
1234
+
1235
+ == AddIndexOnStageIdToBuildRequests: migrating ===============================
1236
+ -- add_index(:build_requests, [:stage_id])
1237
+ -> 0.0017s
1238
+ == AddIndexOnStageIdToBuildRequests: migrated (0.0018s) ======================
1239
+
1240
+ == CreateBuildPlanStageArtifacts: migrating ==================================
1241
+ -- create_table(:build_plan_stage_artifacts)
1242
+ -> 0.0023s
1243
+ -- add_index(:build_plan_stage_artifacts, [:stage_id])
1244
+ -> 0.0016s
1245
+ == CreateBuildPlanStageArtifacts: migrated (0.0039s) =========================
1246
+
1247
+ == MigrateArtifactsForExisitingProjects: migrating ===========================
1248
+ -- rename_column(:build_plan_stages, :artifact_directories, :x_artifact_directories)
1249
+ -> 0.0003s
1250
+ == MigrateArtifactsForExisitingProjects: migrated (0.0011s) ==================
1251
+
1252
+ == AddPropagateToBuildPlanArtifacts: migrating ===============================
1253
+ -- add_column(:build_plan_stage_artifacts, :propagate, :boolean, {:default=>true})
1254
+ -> 0.0023s
1255
+ == AddPropagateToBuildPlanArtifacts: migrated (0.0024s) ======================
1256
+
1257
+ == AddUniqueIndexToKeyInSettings: migrating ==================================
1258
+ -- add_index(:settings, [:key], {:unique=>true})
1259
+ -> 0.0016s
1260
+ == AddUniqueIndexToKeyInSettings: migrated (0.0017s) =========================
1261
+
1262
+ == SplitRubyVersionIntoLanguageAndVersionForBuildPlans: migrating ============
1263
+ -- add_column(:build_plans, :language_name, :string)
1264
+ -> 0.0004s
1265
+ -- add_column(:build_plans, :language_version, :string)
1266
+ -> 0.0003s
1267
+ -- rename_column(:build_plans, :ruby_version, :x_ruby_version)
1268
+ -> 0.0003s
1269
+ -- execute("UPDATE build_plans SET language_name='ruby'")
1270
+ -> 0.0003s
1271
+ -- execute("UPDATE build_plans SET language_version=x_ruby_version")
1272
+ -> 0.0002s
1273
+ == SplitRubyVersionIntoLanguageAndVersionForBuildPlans: migrated (0.0017s) ===
1274
+
1275
+ == CreateBuildPlanLanguages: migrating =======================================
1276
+ -- create_table(:build_plan_languages)
1277
+ -> 0.0030s
1278
+ == CreateBuildPlanLanguages: migrated (0.0030s) ==============================
1279
+
1280
+ == MoveColumnsFromBuildPlansToLanguages: migrating ===========================
1281
+ -- rename_column(:build_plans, :language_name, :x_language_name)
1282
+ -> 0.0003s
1283
+ -- rename_column(:build_plans, :language_version, :x_language_version)
1284
+ -> 0.0003s
1285
+ == MoveColumnsFromBuildPlansToLanguages: migrated (0.0033s) ==================
1286
+
1287
+ == IncreasePrecisionOfBuildStatisticsAverageQueueTime: migrating =============
1288
+ -- change_column(:build_statistics, :average_queue_time, :decimal, {:precision=>20, :scale=>3})
1289
+ -> 0.0020s
1290
+ == IncreasePrecisionOfBuildStatisticsAverageQueueTime: migrated (0.0020s) ====
1291
+
1292
+ == AddNameToUsers: migrating =================================================
1293
+ -- add_column(:users, :name, :string)
1294
+ -> 0.0004s
1295
+ -- execute("UPDATE users SET name=login_name")
1296
+ -> 0.0002s
1297
+ == AddNameToUsers: migrated (0.0008s) ========================================
1298
+
1299
+ == AddBuildStateToBuildRequests: migrating ===================================
1300
+ -- add_column(:build_requests, :build_state, :string)
1301
+ -> 0.0004s
1302
+ -- execute("UPDATE build_requests set build_state='pending'")
1303
+ -> 0.0003s
1304
+ -- change_column(:build_requests, :build_state, :string, {:null=>false, :default=>"pending"})
1305
+ -> 0.0011s
1306
+ == AddBuildStateToBuildRequests: migrated (0.0020s) ==========================
1307
+
1308
+ == RemoveWebHookIdFromBuildRequests: migrating ===============================
1309
+ -- rename_column(:build_requests, :web_hook_id, :x_web_hook_id)
1310
+ -> 0.0003s
1311
+ == RemoveWebHookIdFromBuildRequests: migrated (0.0031s) ======================
1312
+
1313
+ == DropScheduledColumnFromBuildRequests: migrating ===========================
1314
+ -- rename_column(:build_requests, :scheduled, :x_scheduled)
1315
+ -> 0.0003s
1316
+ == DropScheduledColumnFromBuildRequests: migrated (0.0004s) ==================
1317
+
1318
+ == DropPipelineEndedFromProjects: migrating ==================================
1319
+ -- rename_column(:projects, :pipeline_ended, :x_pipeline_ended)
1320
+ -> 0.0003s
1321
+ == DropPipelineEndedFromProjects: migrated (0.0004s) =========================
1322
+
1323
+ == DeprecateBuildingColumnInProjects: migrating ==============================
1324
+ -- rename_column(:projects, :building, :x_building)
1325
+ -> 0.0003s
1326
+ == DeprecateBuildingColumnInProjects: migrated (0.0004s) =====================
1327
+
1328
+ == DropPrefetchingFromProjects: migrating ====================================
1329
+ -- rename_column(:projects, :prefetching, :x_prefetching)
1330
+ -> 0.0003s
1331
+ == DropPrefetchingFromProjects: migrated (0.0004s) ===========================
1332
+
1333
+ == DropProvisionedFromProjects: migrating ====================================
1334
+ -- rename_column(:projects, :provisioned, :x_provisioned)
1335
+ -> 0.0003s
1336
+ == DropProvisionedFromProjects: migrated (0.0004s) ===========================
1337
+
1338
+ == DropArtifactsUriFromGoJobs: migrating =====================================
1339
+ -- rename_column(:go_jobs, :artifacts_uri, :x_artifacts_uri)
1340
+ -> 0.0003s
1341
+ == DropArtifactsUriFromGoJobs: migrated (0.0004s) ============================
1342
+
1343
+ == AddApiKeyToProjects: migrating ============================================
1344
+ -- add_column(:projects, :api_token, :string)
1345
+ -> 0.0004s
1346
+ -- change_column(:projects, :api_token, :string, {:null=>false})
1347
+ -> 0.0006s
1348
+ == AddApiKeyToProjects: migrated (0.0036s) ===================================
1349
+
1350
+ == AddUserIdToHerokuCredentials: migrating ===================================
1351
+ -- add_column(:heroku_credentials, :user_id, :integer)
1352
+ -> 0.0003s
1353
+ == AddUserIdToHerokuCredentials: migrated (0.0004s) ==========================
1354
+
1355
+ == SwitchBuildPlanHerokuCredentialsAssociation: migrating ====================
1356
+ -- add_column(:build_plans, :heroku_credentials_id, :integer)
1357
+ -> 0.0005s
1358
+ -- change_column(:heroku_credentials, :build_plan_id, :integer, {:null=>true})
1359
+ -> 0.0006s
1360
+ -- rename_column(:heroku_credentials, :build_plan_id, :x_build_plan_id)
1361
+ -> 0.0003s
1362
+ == SwitchBuildPlanHerokuCredentialsAssociation: migrated (0.0038s) ===========
1363
+
1364
+ == AddAccessTokenRefreshTokenToHerokuCredentials: migrating ==================
1365
+ -- add_column(:heroku_credentials, :access_token, :string)
1366
+ -> 0.0004s
1367
+ -- add_column(:heroku_credentials, :refresh_token, :string)
1368
+ -> 0.0003s
1369
+ -- add_column(:heroku_credentials, :expires_at, :datetime)
1370
+ -> 0.0003s
1371
+ == AddAccessTokenRefreshTokenToHerokuCredentials: migrated (0.0011s) =========
1372
+
1373
+ == AddNotNullConstraintOnEmailToHerokuCredentials: migrating =================
1374
+ -- change_column(:heroku_credentials, :email, :string, {:null=>false})
1375
+ -> 0.0006s
1376
+ == AddNotNullConstraintOnEmailToHerokuCredentials: migrated (0.0007s) ========
1377
+
1378
+ == AssociateExistingHerokuCredentialsWithUser: migrating =====================
1379
+ == AssociateExistingHerokuCredentialsWithUser: migrated (0.0035s) ============
1380
+
1381
+ == AddDropBuildToBuildRequests: migrating ====================================
1382
+ -- add_column(:build_requests, :drop_build, :boolean, {:default=>false})
1383
+ -> 0.0037s
1384
+ -- execute("UPDATE build_requests SET drop_build='f'")
1385
+ -> 0.0003s
1386
+ -- change_column(:build_requests, :drop_build, :boolean, {:default=>false, :null=>false})
1387
+ -> 0.0013s
1388
+ == AddDropBuildToBuildRequests: migrated (0.0066s) ===========================
1389
+
1390
+ == AddPartOfIntegrationBuildToBuildPlanStages: migrating =====================
1391
+ -- add_column(:build_plan_stages, :part_of_integration_build, :boolean, {:default=>false})
1392
+ -> 0.0043s
1393
+ -- execute("UPDATE build_plan_stages SET part_of_integration_build='f'")
1394
+ -> 0.0003s
1395
+ -- change_column(:build_plan_stages, :part_of_integration_build, :boolean, {:default=>false, :null=>false})
1396
+ -> 0.0013s
1397
+ == AddPartOfIntegrationBuildToBuildPlanStages: migrated (0.0071s) ============
1398
+
1399
+ == AddUserIdToBuildRequests: migrating =======================================
1400
+ -- add_column(:build_requests, :user_id, :integer)
1401
+ -> 0.0004s
1402
+ == AddUserIdToBuildRequests: migrated (0.0006s) ==============================
1403
+
1404
+ == CreateBabysitters: migrating ==============================================
1405
+ -- create_table(:babysitters)
1406
+ -> 0.0022s
1407
+ == CreateBabysitters: migrated (0.0025s) =====================================
1408
+
1409
+ == DeprecateNewContainerNodesTable: migrating ================================
1410
+ -- rename_table(:container_nodes, :y_container_nodes)
1411
+ -> 0.0017s
1412
+ == DeprecateNewContainerNodesTable: migrated (0.0019s) =======================
1413
+
1414
+ == CleanupDeprecatedTables20130821: migrating ================================
1415
+ -- drop_table(:x_container_nodes)
1416
+ -> 0.0009s
1417
+ -- drop_table(:y_container_nodes)
1418
+ -> 0.0006s
1419
+ -- drop_table(:x_project_ecosystems)
1420
+ -> 0.0008s
1421
+ -- remove_column(:build_plan_stages, :x_artifact_directories)
1422
+ -> 0.0004s
1423
+ -- remove_column(:build_plans, :x_run_list)
1424
+ -> 0.0003s
1425
+ -- remove_column(:build_plans, :x_ruby_version)
1426
+ -> 0.0003s
1427
+ -- remove_column(:build_plans, :x_language_name)
1428
+ -> 0.0003s
1429
+ -- remove_column(:build_plans, :x_language_version)
1430
+ -> 0.0003s
1431
+ -- remove_column(:build_requests, :x_web_hook_id)
1432
+ -> 0.0003s
1433
+ -- remove_column(:build_requests, :x_scheduled)
1434
+ -> 0.0004s
1435
+ -- remove_column(:go_jobs, :x_artifacts_uri)
1436
+ -> 0.0004s
1437
+ -- remove_column(:heroku_credentials, :x_build_plan_id)
1438
+ -> 0.0003s
1439
+ -- remove_column(:projects, :x_provisioned)
1440
+ -> 0.0004s
1441
+ -- remove_column(:projects, :x_building)
1442
+ -> 0.0003s
1443
+ -- remove_column(:projects, :x_pipeline_ended)
1444
+ -> 0.0004s
1445
+ -- remove_column(:projects, :x_prefetching)
1446
+ -> 0.0004s
1447
+ == CleanupDeprecatedTables20130821: migrated (0.0122s) =======================
1448
+
1449
+ == CopyRoomFieldFromHipchatCredentialsToHipchatNotifications: migrating ======
1450
+ == CopyRoomFieldFromHipchatCredentialsToHipchatNotifications: migrated (0.0029s)
1451
+
1452
+ == DeprecateUnusedColumnsFromHipchat: migrating ==============================
1453
+ -- rename_column(:hipchat_credentials, :room, :x_room)
1454
+ -> 0.0003s
1455
+ -- change_column(:hipchat_credentials, :x_room, :string, {:null=>true})
1456
+ -> 0.0006s
1457
+ -- rename_column(:hipchat_notifications, :username, :x_username)
1458
+ -> 0.0003s
1459
+ == DeprecateUnusedColumnsFromHipchat: migrated (0.0023s) =====================
1460
+
1461
+ == AddNotNullRoomConstraintToHipchatNotifications: migrating =================
1462
+ -- change_column(:hipchat_notifications, :room, :string, {:null=>false})
1463
+ -> 0.0006s
1464
+ == AddNotNullRoomConstraintToHipchatNotifications: migrated (0.0010s) ========
1465
+
1466
+ == CopyRoomFieldFromCampfireCredentialsToCampfireNotifications: migrating ====
1467
+ == CopyRoomFieldFromCampfireCredentialsToCampfireNotifications: migrated (0.0029s)
1468
+
1469
+ == DeprecateUnusedColumnsFromCampfire: migrating =============================
1470
+ -- rename_column(:campfire_credentials, :room, :x_room)
1471
+ -> 0.0003s
1472
+ -- change_column(:campfire_credentials, :x_room, :string, {:null=>true})
1473
+ -> 0.0006s
1474
+ == DeprecateUnusedColumnsFromCampfire: migrated (0.0017s) ====================
1475
+
1476
+ == AddNotNullRoomConstraintToCampfireNotifications: migrating ================
1477
+ -- change_column(:campfire_notifications, :room, :string, {:null=>false})
1478
+ -> 0.0006s
1479
+ == AddNotNullRoomConstraintToCampfireNotifications: migrated (0.0010s) =======
1480
+
1481
+ == RenameNotificationsToNotificationChannels: migrating ======================
1482
+ -- rename_table(:hipchat_notifications, :hipchat_notification_channels)
1483
+ -> 0.0017s
1484
+ -- rename_table(:campfire_notifications, :campfire_notification_channels)
1485
+ -> 0.0015s
1486
+ == RenameNotificationsToNotificationChannels: migrated (0.0039s) =============
1487
+
1488
+ == DropHerokuOauthToggleFromSettings: migrating ==============================
1489
+ == DropHerokuOauthToggleFromSettings: migrated (0.0021s) =====================
1490
+
1491
+ == AddAutoTrackBranchesToProjects: migrating =================================
1492
+ -- add_column(:projects, :auto_track_branches, :boolean, {:default=>false})
1493
+ -> 0.0040s
1494
+ == AddAutoTrackBranchesToProjects: migrated (0.0041s) ========================
1495
+
1496
+ == CreateGithubRepositories: migrating =======================================
1497
+ -- create_table(:github_repositories)
1498
+ -> 0.0032s
1499
+ == CreateGithubRepositories: migrated (0.0033s) ==============================
1500
+
1501
+ == AssociateBuildPlanWithGithubRepository: migrating =========================
1502
+ -- add_column(:build_plans, :github_repository_id, :integer)
1503
+ -> 0.0004s
1504
+ -- change_column(:github_repositories, :owner_type, :string, {:null=>false})
1505
+ -> 0.0006s
1506
+ -- change_column(:github_repositories, :owner_name, :string, {:null=>false})
1507
+ -> 0.0005s
1508
+ -- change_column(:github_repositories, :name, :string, {:null=>false})
1509
+ -> 0.0005s
1510
+ -- change_column(:git_materials, :repository_owner_name, :string, {:null=>true})
1511
+ -> 0.0006s
1512
+ -- change_column(:git_materials, :repository_owner_type, :string, {:null=>true})
1513
+ -> 0.0005s
1514
+ -- change_column(:git_materials, :repository_name, :string, {:null=>true})
1515
+ -> 0.0005s
1516
+ -- rename_column(:git_materials, :repository_owner_name, :x_repository_owner_name)
1517
+ -> 0.0003s
1518
+ -- rename_column(:git_materials, :repository_owner_type, :x_repository_owner_type)
1519
+ -> 0.0003s
1520
+ -- rename_column(:git_materials, :repository_name, :x_repository_name)
1521
+ -> 0.0003s
1522
+ == AssociateBuildPlanWithGithubRepository: migrated (0.0075s) ================
1523
+
1524
+ == MoveDeployKeyAndWebHookToGithubRepository: migrating ======================
1525
+ -- add_column(:deploy_keys, :github_repository_id, :integer)
1526
+ -> 0.0004s
1527
+ -- add_column(:web_hooks, :github_repository_id, :integer)
1528
+ -> 0.0003s
1529
+ -- rename_column(:deploy_keys, :project_id, :x_project_id)
1530
+ -> 0.0003s
1531
+ -- rename_column(:web_hooks, :project_id, :x_project_id)
1532
+ -> 0.0003s
1533
+ == MoveDeployKeyAndWebHookToGithubRepository: migrated (0.0090s) =============
1534
+
1535
+ == MoveAutoTrackBranchesFromProjectsToGithubRepositories: migrating ==========
1536
+ -- add_column(:github_repositories, :auto_track_branches, :boolean, {:default=>false})
1537
+ -> 0.0031s
1538
+ -- rename_column(:projects, :auto_track_branches, :x_auto_track_branches)
1539
+ -> 0.0003s
1540
+ == MoveAutoTrackBranchesFromProjectsToGithubRepositories: migrated (0.0068s) =
1541
+
1542
+ == AddAutoTrackBranchPrefixToGithubRepository: migrating =====================
1543
+ -- add_column(:github_repositories, :auto_track_branch_prefix, :string)
1544
+ -> 0.0004s
1545
+ == AddAutoTrackBranchPrefixToGithubRepository: migrated (0.0005s) ============
1546
+
1547
+ == ChangeValueToTextForBuildPlanEnvironmentVariables: migrating ==============
1548
+ -- change_column(:build_plan_environment_variables, :value, :text)
1549
+ -> 0.0004s
1550
+ == ChangeValueToTextForBuildPlanEnvironmentVariables: migrated (0.0005s) =====
1551
+
1552
+ == AddMasterToProjects: migrating ============================================
1553
+ -- add_column(:projects, :master, :boolean, {:default=>false})
1554
+ -> 0.0041s
1555
+ == AddMasterToProjects: migrated (0.0043s) ===================================
1556
+
1557
+ == MarkOldestProjectAsMaster: migrating ======================================
1558
+ == MarkOldestProjectAsMaster: migrated (0.0030s) =============================
1559
+
1560
+ == AddAutoIntegrateBranchesToGithubRepository: migrating =====================
1561
+ -- add_column(:github_repositories, :auto_integrate_branches, :boolean, {:default=>false})
1562
+ -> 0.0029s
1563
+ == AddAutoIntegrateBranchesToGithubRepository: migrated (0.0033s) ============
1564
+
1565
+ == AddPausedByUserAndPauseReasonToProject: migrating =========================
1566
+ -- add_column(:projects, :paused_by_id, :integer)
1567
+ -> 0.0004s
1568
+ -- add_column(:projects, :pause_reason, :string)
1569
+ -> 0.0004s
1570
+ == AddPausedByUserAndPauseReasonToProject: migrated (0.0015s) ================
1571
+
1572
+ == AddReceiveEmailsToUser: migrating =========================================
1573
+ -- add_column(:users, :receive_email, :boolean, {:default=>true})
1574
+ -> 0.0027s
1575
+ == AddReceiveEmailsToUser: migrated (0.0030s) ================================
1576
+
1577
+ == AddPipelineConfigToGoPipelines: migrating =================================
1578
+ -- add_column(:go_pipelines, :pipeline_config, :text)
1579
+ -> 0.0004s
1580
+ == AddPipelineConfigToGoPipelines: migrated (0.0006s) ========================
1581
+
1582
+ == AddRunWithGnocciToProjects: migrating =====================================
1583
+ -- add_column(:projects, :run_with_gnocci, :boolean, {:default=>false})
1584
+ -> 0.0038s
1585
+ == AddRunWithGnocciToProjects: migrated (0.0042s) ============================
1586
+
1587
+ == ChangeStageTypeColumnForHerokuDeployments: migrating ======================
1588
+ == ChangeStageTypeColumnForHerokuDeployments: migrated (0.0026s) =============
1589
+
1590
+ == AddCreatedByAndProjectIdToBuildPlans: migrating ===========================
1591
+ -- add_column(:build_plans, :created_by_id, :integer)
1592
+ -> 0.0004s
1593
+ -- add_column(:build_plans, :project_id, :integer)
1594
+ -> 0.0003s
1595
+ == AddCreatedByAndProjectIdToBuildPlans: migrated (0.0013s) ==================
1596
+
1597
+ == DeprecateOwnerIdAndOwnerTypeOnBuildPlans: migrating =======================
1598
+ -- change_column(:build_plans, :owner_id, :integer, {:null=>true})
1599
+ -> 0.0006s
1600
+ -- change_column(:build_plans, :owner_type, :string, {:null=>true})
1601
+ -> 0.0005s
1602
+ -- rename_column(:build_plans, :owner_id, :x_owner_id)
1603
+ -> 0.0003s
1604
+ -- rename_column(:build_plans, :owner_type, :x_owner_type)
1605
+ -> 0.0003s
1606
+ == DeprecateOwnerIdAndOwnerTypeOnBuildPlans: migrated (0.0032s) ==============
1607
+
1608
+ == MigratedOwnerDataToProjectAndCreatedBy: migrating =========================
1609
+ == MigratedOwnerDataToProjectAndCreatedBy: migrated (0.0021s) ================
1610
+
1611
+ == AddAutoIntegrateBranchNameToGithubRepositories: migrating =================
1612
+ -- add_column(:github_repositories, :auto_integrate_branch_name, :string)
1613
+ -> 0.0004s
1614
+ == AddAutoIntegrateBranchNameToGithubRepositories: migrated (0.0005s) ========
1615
+
1616
+ == AddGodToAuthorizedUsers: migrating ========================================
1617
+ -- add_column(:authorized_users, :god, :boolean, {:default=>false})
1618
+ -> 0.0045s
1619
+ == AddGodToAuthorizedUsers: migrated (0.0047s) ===============================
1620
+
1621
+ == AddGnocciToBabysitters: migrating =========================================
1622
+ -- add_column(:babysitters, :gnocci, :boolean, {:default=>false})
1623
+ -> 0.0021s
1624
+ == AddGnocciToBabysitters: migrated (0.0025s) ================================
1625
+
1626
+ == RemoveAutoIntegrateBranchesFromGithubRepositories: migrating ==============
1627
+ -- remove_column(:github_repositories, :auto_integrate_branches)
1628
+ -> 0.0005s
1629
+ == RemoveAutoIntegrateBranchesFromGithubRepositories: migrated (0.0009s) =====
1630
+
1631
+ == RenameDeploymentTriggerToManualTrigger: migrating =========================
1632
+ == RenameDeploymentTriggerToManualTrigger: migrated (0.0023s) ================
1633
+
1634
+ == CullingOfOctober2013: migrating ===========================================
1635
+ -- remove_column(:build_plans, :x_owner_id)
1636
+ -> 0.0004s
1637
+ -- remove_column(:build_plans, :x_owner_type)
1638
+ -> 0.0003s
1639
+ -- remove_column(:campfire_credentials, :x_room)
1640
+ -> 0.0003s
1641
+ -- remove_column(:deploy_keys, :x_project_id)
1642
+ -> 0.0003s
1643
+ -- remove_column(:git_materials, :x_repository_owner_name)
1644
+ -> 0.0003s
1645
+ -- remove_column(:git_materials, :x_repository_owner_type)
1646
+ -> 0.0003s
1647
+ -- remove_column(:git_materials, :x_repository_name)
1648
+ -> 0.0009s
1649
+ -- remove_column(:hipchat_credentials, :x_room)
1650
+ -> 0.0003s
1651
+ -- remove_column(:hipchat_notification_channels, :x_username)
1652
+ -> 0.0004s
1653
+ -- remove_column(:projects, :x_auto_track_branches)
1654
+ -> 0.0005s
1655
+ -- remove_column(:web_hooks, :x_project_id)
1656
+ -> 0.0003s
1657
+ == CullingOfOctober2013: migrated (0.0048s) ==================================
1658
+
1659
+ == AddUniquenessConstraintsToGithubRepositories: migrating ===================
1660
+ -- add_index(:github_repositories, [:owner_type, :owner_name, :name], {:unique=>true})
1661
+ -> 0.0022s
1662
+ == AddUniquenessConstraintsToGithubRepositories: migrated (0.0024s) ==========
1663
+
1664
+ == AddCancelledByUserToGoStages: migrating ===================================
1665
+ -- add_column(:go_stages, :cancelled_by_user, :boolean, {:default=>false})
1666
+ -> 0.0034s
1667
+ == AddCancelledByUserToGoStages: migrated (0.0038s) ==========================
1668
+
1669
+ == ChangeUniqueIndexOnGithubRepositories: migrating ==========================
1670
+ -- remove_index(:github_repositories, [:owner_type, :owner_name, :name])
1671
+ -> 0.0014s
1672
+ -- add_index(:github_repositories, [:owner_name, :name], {:unique=>true})
1673
+ -> 0.0017s
1674
+ == ChangeUniqueIndexOnGithubRepositories: migrated (0.0040s) =================
1675
+
1676
+ == AddCommitTimeToBuildRequest: migrating ====================================
1677
+ -- add_column(:build_requests, :commit_time, :datetime)
1678
+ -> 0.0004s
1679
+ == AddCommitTimeToBuildRequest: migrated (0.0008s) ===========================
1680
+
1681
+ == CreateUserPreferences: migrating ==========================================
1682
+ -- create_table(:user_preferences)
1683
+ -> 0.0022s
1684
+ == CreateUserPreferences: migrated (0.0026s) =================================
1685
+
1686
+ == AddUbuntuSupportToBabysitters: migrating ==================================
1687
+ -- rename_column(:babysitters, :container_id, :centos_container_id)
1688
+ -> 0.0003s
1689
+ -- add_column(:babysitters, :ubuntu_container_id, :integer)
1690
+ -> 0.0003s
1691
+ -- add_column(:babysitters, :reserved_container_id, :integer)
1692
+ -> 0.0003s
1693
+ -- add_column(:build_plans, :container_os, :string)
1694
+ -> 0.0003s
1695
+ -- change_column(:build_plans, :container_os, :string, {:default=>"CentOS", :null=>false})
1696
+ -> 0.0011s
1697
+ == AddUbuntuSupportToBabysitters: migrated (0.0039s) =========================
1698
+
1699
+ == RunAllProjectsOnGnocci: migrating =========================================
1700
+ == RunAllProjectsOnGnocci: migrated (0.0027s) ================================
1701
+
1702
+ == ConvertGoXmlToGnocciConfForGoPipelines: migrating =========================
1703
+ -- add_column(:go_pipelines, :gnocci_config, :text)
1704
+ -> 0.0005s
1705
+ -- rename_column(:go_pipelines, :pipeline_config, :go_config)
1706
+ -> 0.0003s
1707
+ == ConvertGoXmlToGnocciConfForGoPipelines: migrated (0.0047s) ================
1708
+
1709
+ == RemoveGnocciFromBabysitters: migrating ====================================
1710
+ -- rename_column(:babysitters, :gnocci, :x_gnocci)
1711
+ -> 0.0003s
1712
+ == RemoveGnocciFromBabysitters: migrated (0.0007s) ===========================
1713
+
1714
+ == RemoveRunWithGnocciFromProjects: migrating ================================
1715
+ -- rename_column(:projects, :run_with_gnocci, :x_run_with_gnocci)
1716
+ -> 0.0004s
1717
+ == RemoveRunWithGnocciFromProjects: migrated (0.0007s) =======================
1718
+
1719
+ == CreateTableMessages: migrating ============================================
1720
+ -- create_table(:messages)
1721
+ -> 0.0022s
1722
+ == CreateTableMessages: migrated (0.0025s) ===================================
1723
+
1724
+ == RemoveLatestAtomEntryIdAndLatestIntegrationAtomEntryIdFromProjects: migrating
1725
+ -- rename_column(:projects, :latest_atom_entry_id, :x_latest_atom_entry_id)
1726
+ -> 0.0003s
1727
+ -- rename_column(:projects, :latest_integration_atom_entry_id, :x_latest_integration_atom_entry_id)
1728
+ -> 0.0003s
1729
+ == RemoveLatestAtomEntryIdAndLatestIntegrationAtomEntryIdFromProjects: migrated (0.0014s)
1730
+
1731
+ == DropDestAndZipUrlFromGoArtifacts: migrating ===============================
1732
+ -- rename_column(:go_artifacts, :dest, :x_dest)
1733
+ -> 0.0003s
1734
+ -- rename_column(:go_artifacts, :zip_url, :x_zip_url)
1735
+ -> 0.0003s
1736
+ == DropDestAndZipUrlFromGoArtifacts: migrated (0.0013s) ======================
1737
+
1738
+ == RenameSrcToNameForGoArtifacts: migrating ==================================
1739
+ -- rename_column(:go_artifacts, :src, :name)
1740
+ -> 0.0003s
1741
+ == RenameSrcToNameForGoArtifacts: migrated (0.0007s) =========================
1742
+
1743
+ == AddCaseInsensitiveIndexOnUsersLoginName: migrating ========================
1744
+ -- execute("CREATE UNIQUE INDEX index_users_on_lower_login_name_index ON users (lower(login_name))")
1745
+ -> 0.0012s
1746
+ == AddCaseInsensitiveIndexOnUsersLoginName: migrated (0.0012s) ===============
1747
+
1748
+ == PurgePostCommitNotifications: migrating ===================================
1749
+ == PurgePostCommitNotifications: migrated (0.0024s) ==========================
1750
+
1751
+ == PurgeOrphanedStages: migrating ============================================
1752
+ == PurgeOrphanedStages: migrated (0.0042s) ===================================
1753
+
1754
+ == AddCaseInsensitiveIndexOnAuthorizedUsersGithubUsername: migrating =========
1755
+ -- execute("CREATE UNIQUE INDEX index_authorized_users_on_lower_github_username_index ON authorized_users (lower(github_username))")
1756
+ -> 0.0014s
1757
+ == AddCaseInsensitiveIndexOnAuthorizedUsersGithubUsername: migrated (0.0014s)
1758
+
1759
+ == AddGithubIdToUsers: migrating =============================================
1760
+ -- add_column(:users, :github_id, :string)
1761
+ -> 0.0004s
1762
+ == AddGithubIdToUsers: migrated (0.0005s) ====================================
1763
+
1764
+ == RemoveAutoTrackBranchesIntegratedBranchBuildAndJavaEnabledKeysFromApplicationSettings: migrating
1765
+ == RemoveAutoTrackBranchesIntegratedBranchBuildAndJavaEnabledKeysFromApplicationSettings: migrated (0.0028s)
1766
+
1767
+ == AddTemplateBuildPlanIdToGithubRepositories: migrating =====================
1768
+ -- add_column(:github_repositories, :template_build_plan_id, :integer)
1769
+ -> 0.0004s
1770
+ == AddTemplateBuildPlanIdToGithubRepositories: migrated (0.0004s) ============
1771
+
1772
+ == CullingOfNovember2013: migrating ==========================================
1773
+ -- remove_column(:babysitters, :x_gnocci)
1774
+ -> 0.0004s
1775
+ -- remove_column(:go_artifacts, :x_dest)
1776
+ -> 0.0003s
1777
+ -- remove_column(:go_artifacts, :x_zip_url)
1778
+ -> 0.0003s
1779
+ -- remove_column(:projects, :x_latest_atom_entry_id)
1780
+ -> 0.0004s
1781
+ -- remove_column(:projects, :x_latest_integration_atom_entry_id)
1782
+ -> 0.0004s
1783
+ -- remove_column(:projects, :x_run_with_gnocci)
1784
+ -> 0.0004s
1785
+ == CullingOfNovember2013: migrated (0.0024s) =================================
1786
+
1787
+ == RemoveTemplateBuildPlanIdFromGithubRepositories: migrating ================
1788
+ -- remove_column(:github_repositories, :template_build_plan_id)
1789
+ -> 0.0004s
1790
+ == RemoveTemplateBuildPlanIdFromGithubRepositories: migrated (0.0004s) =======
1791
+
1792
+ == ChangeProjectOwnerIdToCreatedById: migrating ==============================
1793
+ -- rename_column(:projects, :owner_id, :created_by_id)
1794
+ -> 0.0004s
1795
+ == ChangeProjectOwnerIdToCreatedById: migrated (0.0004s) =====================
1796
+
1797
+ == CopyCounterForIntegrationPipelinesFromDefaultPipeline: migrating ==========
1798
+ == CopyCounterForIntegrationPipelinesFromDefaultPipeline: migrated (0.0026s) =
1799
+
1800
+ == AddBillingOwnerToGithubRepositories: migrating ============================
1801
+ -- add_column(:github_repositories, :billing_owner_id, :integer)
1802
+ -> 0.0004s
1803
+ -- change_column(:github_repositories, :billing_owner_id, :integer, {:null=>false})
1804
+ -> 0.0006s
1805
+ == AddBillingOwnerToGithubRepositories: migrated (0.0033s) ===================
1806
+
1807
+ == AddTypeToBuildPlans: migrating ============================================
1808
+ -- add_column(:build_plans, :type, :string)
1809
+ -> 0.0004s
1810
+ -- execute("UPDATE build_plans SET type='ProjectBuildPlan'")
1811
+ -> 0.0003s
1812
+ -- change_column(:build_plans, :type, :string, {:null=>false})
1813
+ -> 0.0006s
1814
+ == AddTypeToBuildPlans: migrated (0.0014s) ===================================
1815
+
1816
+ == DeprecrateCreatedByFromBuildPlans: migrating ==============================
1817
+ -- rename_column(:build_plans, :created_by_id, :x_created_by_id)
1818
+ -> 0.0003s
1819
+ == DeprecrateCreatedByFromBuildPlans: migrated (0.0004s) =====================
1820
+
1821
+ == CopyGithubRepositoryIdFromBuildPlansToProjects: migrating =================
1822
+ -- add_column(:projects, :github_repository_id, :integer)
1823
+ -> 0.0004s
1824
+ -- change_column(:projects, :github_repository_id, :integer, {:null=>false})
1825
+ -> 0.0006s
1826
+ == CopyGithubRepositoryIdFromBuildPlansToProjects: migrated (0.0039s) ========
1827
+
1828
+ == InverseAssociationBetweenProjectAndBuildPlan: migrating ===================
1829
+ -- add_column(:projects, :build_plan_id, :integer)
1830
+ -> 0.0004s
1831
+ -- change_column(:projects, :build_plan_id, :integer, {:null=>false})
1832
+ -> 0.0006s
1833
+ -- rename_column(:build_plans, :project_id, :x_project_id)
1834
+ -> 0.0003s
1835
+ == InverseAssociationBetweenProjectAndBuildPlan: migrated (0.0262s) ==========
1836
+
1837
+ == AddHaltedToGithubRepositories: migrating ==================================
1838
+ -- add_column(:github_repositories, :halted, :boolean, {:default=>false})
1839
+ -> 0.0035s
1840
+ == AddHaltedToGithubRepositories: migrated (0.0036s) =========================
1841
+
1842
+ == AddUniquenessConstraintOnGithubRepositoryIdForBuildPlans: migrating =======
1843
+ -- add_index(:build_plans, [:github_repository_id], {:uniqueness=>true})
1844
+ -> 0.0018s
1845
+ == AddUniquenessConstraintOnGithubRepositoryIdForBuildPlans: migrated (0.0018s)
1846
+
1847
+ == DeprecateRepositoryUrlFromProjects: migrating =============================
1848
+ -- rename_column(:projects, :repository_url, :x_repository_url)
1849
+ -> 0.0003s
1850
+ -- change_column(:projects, :x_repository_url, :string, {:null=>true})
1851
+ -> 0.0006s
1852
+ == DeprecateRepositoryUrlFromProjects: migrated (0.0010s) ====================
1853
+
1854
+ == AddCollaborationsToGithubRepositories: migrating ==========================
1855
+ -- add_column(:collaborations, :github_repository_id, :integer)
1856
+ -> 0.0004s
1857
+ == AddCollaborationsToGithubRepositories: migrated (0.0005s) =================
1858
+
1859
+ == MigrateCollaborationsFromProjectToGithubRepository: migrating =============
1860
+ -- rename_column(:collaborations, :project_id, :x_project_id)
1861
+ -> 0.0003s
1862
+ -- change_column(:collaborations, :github_repository_id, :integer, {:null=>false})
1863
+ -> 0.0005s
1864
+ -- add_index(:collaborations, [:github_repository_id, :user_id], {:unique=>true})
1865
+ -> 0.0018s
1866
+ == MigrateCollaborationsFromProjectToGithubRepository: migrated (0.0093s) ====
1867
+
1868
+ == AddAdminFlagToCollaborations: migrating ===================================
1869
+ -- add_column(:collaborations, :admin, :boolean, {:default=>false})
1870
+ -> 0.0025s
1871
+ == AddAdminFlagToCollaborations: migrated (0.0058s) ==========================
1872
+
1873
+ == CreateBuildAllowances: migrating ==========================================
1874
+ -- create_table(:build_allowances)
1875
+ -> 0.0024s
1876
+ -- add_index(:build_allowances, :user_id, {:unique=>true})
1877
+ -> 0.0015s
1878
+ == CreateBuildAllowances: migrated (0.0040s) =================================
1879
+
1880
+ == CreateBuildAllowanceForUsersWithProjects: migrating =======================
1881
+ == CreateBuildAllowanceForUsersWithProjects: migrated (0.0032s) ==============
1882
+
1883
+ == CreateTransientGithubRepositories: migrating ==============================
1884
+ -- create_table(:transient_github_repositories)
1885
+ -> 0.0030s
1886
+ == CreateTransientGithubRepositories: migrated (0.0030s) =====================
1887
+
1888
+ == DeprecateBuildPlanCapacityFromUsers: migrating ============================
1889
+ -- rename_column(:users, :build_plan_capacity, :x_build_plan_capacity)
1890
+ -> 0.0003s
1891
+ == DeprecateBuildPlanCapacityFromUsers: migrated (0.0004s) ===================
1892
+
1893
+ == CreateTransientGithubRepositoriesForExistingTemplateBuildPlans: migrating =
1894
+ == CreateTransientGithubRepositoriesForExistingTemplateBuildPlans: migrated (0.0021s)
1895
+
1896
+ == AddActivatedFlagToBuildAllowances: migrating ==============================
1897
+ -- add_column(:build_allowances, :activated, :boolean, {:default=>false})
1898
+ -> 0.0024s
1899
+ == AddActivatedFlagToBuildAllowances: migrated (0.0025s) =====================
1900
+
1901
+ == CreateBuildAllowanceForUsersThatDoNotHaveOne: migrating ===================
1902
+ == CreateBuildAllowanceForUsersThatDoNotHaveOne: migrated (0.0020s) ==========
1903
+
1904
+ == ActivateBuildAllowancesOfBillingOwners: migrating =========================
1905
+ == ActivateBuildAllowancesOfBillingOwners: migrated (0.0006s) ================
1906
+
1907
+ == CreatePlans: migrating ====================================================
1908
+ -- create_table(:plans)
1909
+ -> 0.0031s
1910
+ == CreatePlans: migrated (0.0162s) ===========================================
1911
+
1912
+ == CreateSubscriptionSyncs: migrating ========================================
1913
+ -- create_table(:subscription_sync)
1914
+ -> 0.0023s
1915
+ == CreateSubscriptionSyncs: migrated (0.0024s) ===============================
1916
+
1917
+ == RenameSubscriptionSyncsToSubscriptionSyncLog: migrating ===================
1918
+ -- rename_table(:subscription_sync, :subscription_sync_log)
1919
+ -> 0.0018s
1920
+ == RenameSubscriptionSyncsToSubscriptionSyncLog: migrated (0.0018s) ==========
1921
+
1922
+ == CreateSubscriptionSyncLogEntry: migrating =================================
1923
+ == CreateSubscriptionSyncLogEntry: migrated (0.0086s) ========================
1924
+
1925
+ == AddPlanIdToBuildAllowances: migrating =====================================
1926
+ -- add_column(:build_allowances, :plan_id, :integer)
1927
+ -> 0.0005s
1928
+ == AddPlanIdToBuildAllowances: migrated (0.0008s) ============================
1929
+
1930
+ == CreateTrialPlan: migrating ================================================
1931
+ == CreateTrialPlan: migrated (0.0099s) =======================================
1932
+
1933
+ == MigrateAllBuildAllowancesToTrialPlans: migrating ==========================
1934
+ == MigrateAllBuildAllowancesToTrialPlans: migrated (0.0107s) =================
1935
+
1936
+ == DropRepoCountAndParallelBuildCountInBuildAllowances: migrating ============
1937
+ -- remove_column(:build_allowances, :repository_count)
1938
+ -> 0.0004s
1939
+ -- remove_column(:build_allowances, :parallel_build_count)
1940
+ -> 0.0003s
1941
+ == DropRepoCountAndParallelBuildCountInBuildAllowances: migrated (0.0014s) ===
1942
+
1943
+ == MakePlanIdNotNullableonBuildAllowances: migrating =========================
1944
+ -- change_column(:build_allowances, :plan_id, :integer, {:null=>false})
1945
+ -> 0.0006s
1946
+ == MakePlanIdNotNullableonBuildAllowances: migrated (0.0010s) ================
1947
+
1948
+ == AddStripeSubscriptionActiveToBuildAllowances: migrating ===================
1949
+ -- add_column(:build_allowances, :stripe_subscription_active, :boolean, {:default=>false})
1950
+ -> 0.0027s
1951
+ == AddStripeSubscriptionActiveToBuildAllowances: migrated (0.0031s) ==========
1952
+
1953
+ == ResurrectRepoCountAndParallelBuildCountOnBuildAllowances: migrating =======
1954
+ -- add_column(:build_allowances, :repository_count, :integer)
1955
+ -> 0.0004s
1956
+ -- add_column(:build_allowances, :parallel_build_count, :integer)
1957
+ -> 0.0003s
1958
+ == ResurrectRepoCountAndParallelBuildCountOnBuildAllowances: migrated (0.0014s)
1959
+
1960
+ == CreateRepoCountAndParallelBuildCountFromPlans: migrating ==================
1961
+ == CreateRepoCountAndParallelBuildCountFromPlans: migrated (0.0020s) =========
1962
+
1963
+ == MakeParallelBuildCountAndRepositoryCountNotNullable: migrating ============
1964
+ -- change_column(:build_allowances, :parallel_build_count, :integer, {:null=>false})
1965
+ -> 0.0006s
1966
+ -- change_column(:build_allowances, :repository_count, :integer, {:null=>false})
1967
+ -> 0.0005s
1968
+ == MakeParallelBuildCountAndRepositoryCountNotNullable: migrated (0.0019s) ===
1969
+
1970
+ == AddUserWhoTriggeredTheBuildToGoStages: migrating ==========================
1971
+ -- add_column(:go_stages, :user_who_triggered_the_build, :string)
1972
+ -> 0.0004s
1973
+ == AddUserWhoTriggeredTheBuildToGoStages: migrated (0.0005s) =================
1974
+
1975
+ == RemoveScheduleTimeFromPipeline: migrating =================================
1976
+ -- rename_column(:go_pipelines, :schedule_time, :x_schedule_time)
1977
+ -> 0.0003s
1978
+ == RemoveScheduleTimeFromPipeline: migrated (0.0007s) ========================
1979
+
1980
+ == AddStageIdToArtifacts: migrating ==========================================
1981
+ -- add_column(:go_artifacts, :stage_id, :integer)
1982
+ -> 0.0004s
1983
+ == AddStageIdToArtifacts: migrated (0.0008s) =================================
1984
+
1985
+ == FillStageIdInArtifacts: migrating =========================================
1986
+ -- execute(" UPDATE go_artifacts\n SET\n stage_id = go_jobs.stage_id\n FROM go_jobs JOIN go_artifacts ga ON go_jobs.id = ga.job_id\n")
1987
+ -> 0.0005s
1988
+ == FillStageIdInArtifacts: migrated (0.0006s) ================================
1989
+
1990
+ == DeprecateJobIdInArtifacts: migrating ======================================
1991
+ -- change_column(:go_artifacts, :job_id, :integer, {:null=>true})
1992
+ -> 0.0006s
1993
+ -- rename_column(:go_artifacts, :job_id, :x_job_id)
1994
+ -> 0.0002s
1995
+ == DeprecateJobIdInArtifacts: migrated (0.0010s) =============================
1996
+
1997
+ == AddJobFieldsToStage: migrating ============================================
1998
+ -- add_column(:go_stages, :job_scheduled_at, :datetime)
1999
+ -> 0.0004s
2000
+ -- add_column(:go_stages, :job_result, :string)
2001
+ -> 0.0003s
2002
+ -- add_column(:go_stages, :job_name, :string)
2003
+ -> 0.0003s
2004
+ -- add_column(:go_stages, :job_duration, :integer)
2005
+ -> 0.0003s
2006
+ == AddJobFieldsToStage: migrated (0.0015s) ===================================
2007
+
2008
+ == CopyJobFieldsToStage: migrating ===========================================
2009
+ -- execute(" UPDATE go_stages\n SET\n job_scheduled_at = go_jobs.scheduled,\n job_name = go_jobs.name,\n job_result = go_jobs.result,\n job_duration = go_jobs.duration\n FROM go_jobs JOIN go_stages gs ON go_jobs.stage_id = gs.id\n")
2010
+ -> 0.0005s
2011
+ == CopyJobFieldsToStage: migrated (0.0006s) ==================================
2012
+
2013
+ == AddNotNullConstraintToResultInStage: migrating ============================
2014
+ -- change_column(:go_stages, :job_result, :string, {:null=>false})
2015
+ -> 0.0006s
2016
+ == AddNotNullConstraintToResultInStage: migrated (0.0007s) ===================
2017
+
2018
+ == DeprecateGoJobs: migrating ================================================
2019
+ -- rename_table(:go_jobs, :x_go_jobs)
2020
+ -> 0.0016s
2021
+ == DeprecateGoJobs: migrated (0.0016s) =======================================
2022
+
2023
+ Command bundle exec rake db:drop db:create db:migrate db:test:prepare exited successfully with status 0. Took 10.14 seconds.
2024
+
2025
+ $ bundle exec rspec --format documentation spec/models spec/jobs spec/observers spec/caches spec/helpers spec/mailers spec/controllers spec/integration
2026
+ No DRb server is running. Running in local process instead ...
2027
+ Turning off log for tests
2028
+
2029
+ PipelineCache
2030
+ cache_key
2031
+ should depend on project_id & pipeline-label
2032
+ .invalidate
2033
+ regular build
2034
+ should invalidate the pipeline cache by touching it
2035
+ integrated build
2036
+ should invalidate cache of dependent pipeline by touching it
2037
+ should invalidate cache of tracking pipeline by touching it
2038
+ sweeper
2039
+ should call invalidate with the right params
2040
+
2041
+ Admin::AuthorizedUsersController
2042
+ it should behave like authorized_users_controller
2043
+ should not allow users who are not administrators
2044
+ should allow users who are administrators
2045
+ should not allow users who are not administrators
2046
+ should allow users who are administrators
2047
+ should not allow users who are not administrators
2048
+ should allow users who are administrators
2049
+ GET 'index'
2050
+ should show authorized users sorted by reverse order of createtion
2051
+ GET 'new'
2052
+ should show the add new authorized user form
2053
+ POST 'create'
2054
+ should create a new authorized user
2055
+ should set the created_by field
2056
+ should redirect to the authorized users page
2057
+ should set the right notice for non-admin users
2058
+ should set the right notice for admins
2059
+ should show error message if authorized user cannot be created
2060
+ DELETE 'destroy'
2061
+ should delete the right authorized user
2062
+ should show the right message
2063
+ should not allow you to delete yourself
2064
+
2065
+ Admin::BuildAllowancesController
2066
+ PUT 'update'
2067
+ should not allow regular users
2068
+ should allow updates by admin users
2069
+
2070
+ Admin::RegistrantsController
2071
+ GET 'index'
2072
+ authentication
2073
+ should not allow users without admin access
2074
+ should allow users with correct basic auth credentials
2075
+ behavior
2076
+ should show registrants
2077
+ should show if registrants have been invited with the invitation url
2078
+ POST 'invite'
2079
+ authentication
2080
+ should not allow users without basic auth
2081
+ should not allow users without correct basic auth credentials
2082
+ should allow users with correct basic auth credentials
2083
+ behavior
2084
+ should invite the right user
2085
+ should flash success message
2086
+ DELETE 'destroy'
2087
+ authentication
2088
+ should not allow users without basic auth
2089
+ should not allow users without correct basic auth credentials
2090
+ should allow users with correct basic auth credentials
2091
+ behavior
2092
+ should destroy the registrant
2093
+ should show success notification on deletion of the registrant
2094
+
2095
+ Admin::StatusController
2096
+ authentication
2097
+ should not allow users without admin access
2098
+ should allow users with correct basic auth credentials
2099
+ GET 'unreserve_babysitter_confirm'
2100
+ should render a js
2101
+ POST 'unreserve_babysitter'
2102
+ should release a given container
2103
+ GET 'show'
2104
+ behavior
2105
+ build_stats sql should not fail
2106
+ please_fixme sql should not fail
2107
+ baby sitters
2108
+ should show the total number of build requests
2109
+ should render a list of all babysitter nodes
2110
+ should render a list of projects building on baby sitter
2111
+ should render babysitter as 'idle' if the babysitter is not building
2112
+ should render a link to unreserve the babysitters which are reserved
2113
+ project status
2114
+ should render a list of all projects
2115
+ should tell if a project is paused
2116
+ should render the number of build requests for a given project
2117
+ features
2118
+ should create the send_admin_email setting when one doesn't exist
2119
+ should render send_admin_email
2120
+ should not be toggled on by default
2121
+ should be toggleable
2122
+
2123
+ Admin::TimesController
2124
+ should be ok (FAILED - 1)
2125
+
2126
+ Admin::UsersController
2127
+ should list all users
2128
+ should show build allowance form for all users
2129
+
2130
+ FooController
2131
+ Maintainance Mode Off
2132
+ should allow GET actions for non-xhr requests
2133
+ should allow GET actions for xhr requests
2134
+ should allow PUT actions for non-xhr requests
2135
+ should allow PUT actions for xhr requests
2136
+ should allow POST actions for non-xhr requests
2137
+ should allow POST actions for xhr requests
2138
+ should allow DELETE actions for non-xhr requests
2139
+ should allow DELETE actions for xhr requests
2140
+ Maintainance Mode On
2141
+ should show a banner on top indicating that snap is under maintenance
2142
+ should allow GET actions for non-xhr requests
2143
+ should allow GET actions for xhr requests
2144
+ should not allow PUT actions for non-xhr requests
2145
+ should not allow PUT actions for xhr requests
2146
+ should not allow POST actions for non-xhr requests
2147
+ should not allow POST actions for xhr requests
2148
+ should not allow DELETE actions for non-xhr requests
2149
+ should not allow DELETE actions for xhr requests
2150
+
2151
+ ApplicationSettingsController
2152
+ should toggle on the setting
2153
+ should toggle off the setting
2154
+
2155
+ ArtifactsController
2156
+ logs
2157
+ should render the log babysitter on show
2158
+ should tell if the stage is currently running
2159
+ should raise error if pipeline id is incorrect
2160
+ should raise error if stage id is incorrect
2161
+ artifacts
2162
+ should show no artifacts configured for stages without any artifacts
2163
+ should display all artifacts
2164
+
2165
+ AuthController
2166
+ GET/POST 'create'
2167
+ should redirect to the dashboard if the redirect_back_url is not present in the session
2168
+ should create heroku credentials if one do not exist for the user
2169
+ should update existing heroku credentials of the user
2170
+ GET/POST 'failure'
2171
+ should render the user to be unauthorized with the error message
2172
+
2173
+ BuildHistoryController
2174
+ should render a notice when project is paused
2175
+ should always show the pipeline group in the collapsed (default) state if the project isn't an integrated branch build
2176
+ should include only the default pipelines
2177
+ Authorization
2178
+ should display pipelines only to authorized user
2179
+ should not display dashboard unauthorized users
2180
+ header actions
2181
+ should render a rerun last pipeline link
2182
+ should render a pause link
2183
+ should render a resume link for paused projects
2184
+ halted projects
2185
+ should render a disabled rerun last pipeline link
2186
+ should render a disabled pause link
2187
+ should render a disabled resume link for paused projects
2188
+ Drop build
2189
+ should render correct metadata for pending pipeline
2190
+ should mark a pipeline to be dropped
2191
+ should mark a pipeline to be dropped
2192
+ Completed Pipeline information
2193
+ should render the correct markup
2194
+ should display the stage duration
2195
+ should display the time it was triggered at
2196
+ should display Unknown when the time it was triggered at is nil
2197
+ should display the login name of the person who triggered the stage for manual stages
2198
+ should display correct stage name
2199
+ should display artifact download link
2200
+ should render integration build related information for pipelines which were members of integration branch builds
2201
+ integrated branch build
2202
+ should show both the pipelines in a consolidated manner when both the pipelines have passed
2203
+ pagination
2204
+ should display first page of pipelines for a provisioned project
2205
+ should show all pipeline instances before a pipeline counter for a provisioned project when there are more pipeline instances than the default page size
2206
+ should show all pipeline instances before a pipeline counter when there are lesser pipeline instances than the default page size
2207
+ should show all pipeline instances after a pipeline counter when there are lesser pipeline instances than the default page size
2208
+ Ajax Refresh of new Pipeline Instances
2209
+ should render no new pipelines when there are no new pipelines
2210
+ should render top pipeline + 25 new pipelines (page size) = 26 pipelines when there are exactly 25 new available
2211
+ should render all available pipelines if their count is less than the default page size
2212
+ should render top pipeline + 24 = 25 (page size) pipelines after a given pipeline instance if there are a lot more new pipeline instances available
2213
+ build status update
2214
+ for non-integrated builds
2215
+ should provide latest build status for requested pipeline if pipeline is valid
2216
+ should provide nothing if pipeline is valid
2217
+ should render a pipeline group with a single pipeline instance in it for non-integrated branch builds
2218
+ integrated branch build
2219
+ should render a pipeline group with both(tracking as well as integrated) pipeline instance in it
2220
+ should show the tracking pipeline's counter only in the expanded state when the pipelines have completed
2221
+ should show the tracking pipeline's counter only in the collapsed state when the pipelines have completed
2222
+ cancel build
2223
+ should mark the stage for being cancelled and return ok when its gnocci build
2224
+ currently building pipeline
2225
+ should render completed stages as done
2226
+ should render cancelled stages as cancelled
2227
+ should render the running stage as running
2228
+ should render pending stages as pending
2229
+ should render stages that can be manually triggered
2230
+ error handling
2231
+ should display appropriate provisioning errors
2232
+ caching
2233
+ should cache content for pipeline once it gets rendered
2234
+ integrated builds
2235
+ should wrap the pipelines in a group
2236
+ should show the pipeline group in an expanded state if the integration pipeline has not passed
2237
+ should show the pipeline group in the collapsed (default) state if all pipelines including the integration pipeline have passed
2238
+
2239
+ BuildImageController
2240
+ should render unknown image if project has no pipeline history (new project)
2241
+ should render success image if last build has passed
2242
+ should render failed image if last build has failed
2243
+ should render unknown image if project has no history
2244
+ Security
2245
+ should not allow access if the api key does not match the project
2246
+ should allow access if the api key matches the project
2247
+
2248
+ BuildPlansController
2249
+ Build Plan Operations
2250
+ POST 'create'
2251
+ should create a new transient github repository with the supplied params
2252
+ should create a new build plan with the correct branch name and container os
2253
+ GET 'branches'
2254
+ should render the branches for the repo in the right format
2255
+ GET 'new_custom_stage'
2256
+ should render a dialog for adding a new custom stage
2257
+ GET 'new_heroku_deployment_stage'
2258
+ should render a dialog for adding a new heroku deployment stage
2259
+ should associate a heroku credential with the build plan if the user has one
2260
+ should show existing heroku credentials associated with the build plan if any
2261
+ should set run_db_migrate to true for rubygems and rails builds
2262
+ should set run_db_migrate to false for java builds
2263
+ should not render db migrate option for java builds
2264
+ GET 'show'
2265
+ should render the repository owner and name when the build plan is owned by a user
2266
+ should redirect to project settings page if plan is owned by project
2267
+ should show build plan for user if build plan is ready and there are more than 3 collaborators
2268
+ should show build plan for user if build plan is ready and there are 3 or less collaborators
2269
+ should not show build plan for user if build plan is not ready
2270
+ should show detection errors if build plan has errors
2271
+ should show the DATABASE_URL environment variable when the language is java and the build plan has a database selected
2272
+ should show the 'Why we configured the pipeline the way we did' message dialog when the user first sets up the build plan
2273
+ should not render the project scheduling paused banner when the build plan is not owned by a project
2274
+ should not show the edit link on HerokuDeployment stages when there is no heroku credentials associated with the build plan
2275
+ should show the edit link on HerokuDeployment stages when there is heroku credentials associated with the build plan
2276
+ should not show 'Heroku credentials missing' on HerokuDeployment stages when there is heroku credentials associated with the build plan
2277
+ should show 'Heroku credentials missing' on HerokuDeployment stages when there is no heroku credentials associated with the build plan
2278
+ PUT 'update'
2279
+ should allow updating the ruby version and database type
2280
+ should allow updating the branch
2281
+ should render a bad status code if build plan could not be updated
2282
+ GET 'ready'
2283
+ should render nothing for #ready if build plan has detection pending
2284
+ should js redirect to build plan show action when build plan is ready
2285
+ should delete build plan and js redirect to detection error page when detection fails because of git connection error
2286
+ POST 'switch_heroku_credentials'
2287
+ should switch to the current user's heroku credentials
2288
+ should render an error when the current user doesn't have any credentials
2289
+ should redirect to the build plan edit stage path
2290
+ Stage Operations
2291
+ POST 'append_stage'
2292
+ should create a heroku deployment stage
2293
+ should set run_db_migrate to false for java builds
2294
+ should not set run_db_migrate to false for rubygems or rails builds
2295
+ should create a custom stage and tasks associated with the build plan
2296
+ should accept nested attributes for environment variables
2297
+ should accept nested attributes for artifacts
2298
+ should not save a stage if stage validation fails
2299
+ should not display errors for job_name as the user does not have an option to specify it
2300
+ heroku credentials
2301
+ should create a new set of heroku credentials for the signed-in user
2302
+ should reuse the heroku credentials from the build plan if there is one
2303
+ should update the heroku credentials of the build_plan of the current project
2304
+ PUT 'reorder_stages'
2305
+ should reorder stages in the build plan specified by the :stage_order array param
2306
+ should render error when the first stage is a manual triggerable stage
2307
+ should render error when reordering fails
2308
+ DELETE "destroy"
2309
+ should destroy the build plan and clear the session key containing the collaborator message
2310
+ should not destroy the build plan if it is owned by a project
2311
+ DELETE "delete_stage"
2312
+ should not destroy the specified stage if the next stage is manual deploy
2313
+ should not destroy the stage if total stages == 1
2314
+ should destroy the specified stage in the build plan
2315
+ PUT 'update_stage'
2316
+ should update the custom stage if params are valid
2317
+ should accept nested attributes for environment variables
2318
+ should accept nested attributes for artifacts
2319
+ should not update the custom stage if all tasks will be destroyed
2320
+ should render error if custom stage could not be updated
2321
+ should update the heroku deployment if params are valid
2322
+ should render error if deployment could not be updated
2323
+ security
2324
+ should not show the build plan that not owned by logged in user
2325
+ should not show the build plan for a project on which the current user is not a collaborator
2326
+ should not show the edit stage for a project on which the current user is not a collaborator
2327
+ should not allow updates to a build plan not owned by a user
2328
+ should not allow updates to a stage for a project on which the current user is not a collaborator
2329
+ should not destroy the build plan that is not owned by logged in user
2330
+ should not answer ready for a build plan that is not owned by logged in user
2331
+ should not allow deletion of stages in a build plan that is not owned by logged in user
2332
+ GET 'heroku apps'
2333
+ should return the list of heroku apps
2334
+ should return not found if the build plan or the current user doesn't have any heroku credentials
2335
+ should use Heroku credentials of the current user if the build plan doesn't have any credentials yet (first time Heroku stage is created)
2336
+
2337
+ CampfireNotificationChannelsController
2338
+ create
2339
+ should add campfire notification to the project
2340
+ should use user's campfire credentials
2341
+ should not update someone else's project
2342
+ delete
2343
+ should delete campfire notification channel on the project
2344
+ should not blow up if a project doesn't have a campfire notification channel
2345
+ send_test_message
2346
+ should send a test message to the right room
2347
+ should use the correct credentials
2348
+ should show the correct error message in case of failure
2349
+ should ignore unknown exceptions (not CampfireExceptions)
2350
+
2351
+ CcTrayController
2352
+ should not raise error is user has no projects
2353
+ should not raise error if project has no history
2354
+ should not raise error if project has exactly one scheduled pipeline instance
2355
+ should not raise error if project has exactly 1 partially completed pipeline instance with 1 completed stage
2356
+ should not raise error if project has exactly 1 partially completed pipeline instance with 2 completed stages
2357
+ should return previous stage previous pipeline result as 'LastBuildStatus' of the previous pipeline if current pipeline, same stage is building
2358
+ should crawl back to find the last time a stage executed in order to report the lastBuildStatus for a stage
2359
+ should crawl back to find the last time a stage executed in order to report the lastBuildStatus for a stage when there are multiple empty pipelines lined up for execution
2360
+ Security
2361
+ should render a 404 for a bad api token for action all_projects
2362
+ should render page with a valid api token for action all_projects
2363
+ should render a 404 for a bad api token for action for_project
2364
+ should render page with a valid api token for action for_project
2365
+ should render a 404 when accessing a project that a user does not own
2366
+
2367
+ CommitsController
2368
+ should render a list of commits that belong to the specified pipeline instance
2369
+ should render a compare link
2370
+ should render a commits url in the compare link if there is no prior pipeline
2371
+ should raise error when pipeline id is incorrect
2372
+ should render the correct compare link for dependent pipelines(integrated branch builds)
2373
+
2374
+ DashboardController
2375
+ new user landing
2376
+ should have the right content when there are no projects available to add
2377
+ user has no projects of his own and there are projects available for him to add
2378
+ should list the right collaborations
2379
+ user has no project of his own and there are no projects available for him to add
2380
+ should not list any collaborations
2381
+ GET 'build_status'
2382
+ should render the name of stage currently building
2383
+ should return status of all of the current users projects which have a build status or are currently building
2384
+ should return status of an integrated branch build
2385
+ should not return status of projects the user doesn't own
2386
+ should render 'paused' when a project is paused
2387
+ should not render the number of build requests is yet to complete its first run
2388
+ should render the number of build requests about to be scheduled
2389
+ should render project as running until the build completes
2390
+ GET 'edit'
2391
+ should render an alert if there are pending builds for current user but no capacity to build it
2392
+ should user message if user has unseen messages
2393
+ should show project tiles for all the users projects
2394
+ should show the integrated branch name on the project tile
2395
+ Get 'show'
2396
+ should group projects in correctly
2397
+ provisioning_errors
2398
+ should render error message if there are provisioning errors
2399
+
2400
+ ErrorsController
2401
+ should render 500 output
2402
+ not_found
2403
+ should redirect to root path with a not_found param
2404
+
2405
+ FeedbacksController
2406
+ new
2407
+ should render a form
2408
+ post 'CREATE'
2409
+ should forward the feeback to zendesk
2410
+ should render an error if feedback validation fails when its a xhr request
2411
+ should render a flash error if feedback validation fails when request is not a xhr request
2412
+ should render a flash with success when the feedback is successfully submitted when its a xhr request
2413
+ should render a thanks when the feedback is successfully submitted when its not a xhr request
2414
+ GET 'contact-us'
2415
+ should render a form
2416
+
2417
+ Github::RepositoriesController
2418
+ should not show the new github repository page if user is not logged in
2419
+ PUT 'update'
2420
+ should the right flash message when auto_track_branches is enabled for a project
2421
+ should update the auto_track_branches and auto_track_branches_prefix with the supplied params
2422
+ should do nothing if the repository is halted
2423
+ should the right flash message when auto_track_branches is disabled for a project
2424
+ should fetch all branches from github if creation of existing branches is requested
2425
+ should create clones for all existing remote branches
2426
+ should not create clones which already exist
2427
+ should enqueue a delayed job for creation of clones
2428
+ should redirect to the projects configuration page
2429
+ should not allow a user change the repository he doesn't own or collaborate to
2430
+ should update repository if user wishes to integerate with a particular branch of repository
2431
+ Sidebar Operations
2432
+ GET 'edit_sidebar_for_org'
2433
+ should show an add link to a new build plan when an existing project with the same full name does not exist
2434
+ should show a collaborate link to the collaborations controller when an existing project with the same ssh_url exists
2435
+ should return a list of repositories in specified organization for the logged in user, this list should not contain only repositories adminstered by the user
2436
+ should NOT show repositories for which the user, while organization member- does not have admin rights to
2437
+ should show repositories for which the user has admin rights to
2438
+ should render error page if the repositories could not be fetched because of http error
2439
+ should render error page if the repositories could not be fetched because of bad status code
2440
+ should render error page if the repositories could not be fetched because of authorization error
2441
+ GET 'edit_sidebar_for_user'
2442
+ should return a list of repositories for the logged in user, this list should not contain only repositories you either own or adminster
2443
+ should return a list of repositories that the user adminsters in addition to the ones they own
2444
+ should render error page if the repositories could not be fetched because of http error
2445
+ should render error page if the repositories could not be fetched because of bad status code
2446
+ GET 'start_auto_track_branches'
2447
+ should have the right form
2448
+ POST 'stop_auto_track_branches'
2449
+ should disable auto track branches and redirect to the auto track branches page
2450
+ should do nothing if the repository is halted
2451
+
2452
+ HerokuCredentialsController
2453
+ GET 'heroku_deployments'
2454
+ should return a list of projects
2455
+ should return an empty array when there are no build plans associated with a heroku credential
2456
+ should return an empty array when there is a build plan with no heroku deployments on it
2457
+ GET 'heroku_oauth'
2458
+ should redirect to the url for heroku oauth flow
2459
+ should set the redirect back url in the session
2460
+ should set the source of the request in the session if one is supplied in the request
2461
+ DELETE 'destroy'
2462
+ should destroy the heroku_credentials with the given id
2463
+ should handle HerokuExceptions and notify the users to cleanup the SSH keys from heroku
2464
+
2465
+ HipchatNotificationChannelsController
2466
+ create
2467
+ should add hipchat notification to the project
2468
+ should use user's hipchat credentials
2469
+ should not update someone else's project
2470
+ delete
2471
+ should delete campfire notification channel on the project
2472
+ should not blow up if a project doesn't have a campfire notification channel
2473
+ send_test_message
2474
+ should send a test message to the right room
2475
+ should use the correct credentials
2476
+ should show the correct error message in case of failure
2477
+ should ignore unknown exceptions (not HipchatExceptions)
2478
+
2479
+ HttpCallbacksController
2480
+ POST 'create'
2481
+ should create a new http callback on the right project
2482
+ should flash error messages if the callback isn't valid
2483
+ should redirect the user to the project notifications page
2484
+ should not create a http callback for somebody else's project
2485
+ DELETE 'destroy'
2486
+ should remove the http callback from the right project
2487
+ should redirect the user to the project notifications page
2488
+ should not remove somebody else's http callback
2489
+ PUT 'update'
2490
+ should update the http callback for the right project
2491
+ should redirect the user to the project notifications page
2492
+ should not update somebody else's http callback
2493
+
2494
+ IdentityController
2495
+ GET 'project_owned_by_user'
2496
+ should return success when the project is owned by the logged in user
2497
+ should return 401 unauthorized when the project is not owned by the logged in user
2498
+
2499
+ ManualTriggerController
2500
+ should schedule a manual stage and display flash message when the stage is scheduled
2501
+ should not schedule a manual stage if the repository has been halted
2502
+ should set the current user to be the one who triggered the build
2503
+ reset the job fields when the user re triggers a manual stage
2504
+ should clear the pipeline's cache when a stage is scheduled
2505
+ should raise error if stage_id is not found
2506
+ should raise error if pipeline_id is not found
2507
+ should raise error if project_id is not found
2508
+
2509
+ MessagesController
2510
+ should delete the message
2511
+
2512
+ PlansController
2513
+ GET index
2514
+ with show plans page off
2515
+ should be not found
2516
+ with show plans page toggled on
2517
+ should not list trial plan
2518
+ should list plans with payment buttons for logged in users on the trial plan
2519
+ should render change plan links for logged in users with a purchased plan
2520
+ should render renew subscription link for logged in users with a purchased but inactive plan
2521
+ should list plans with no payment buttons for not logged in users
2522
+
2523
+ PostCommitNotificationController
2524
+ security
2525
+ should allow anonymous posts without an established session
2526
+ POST new_commit
2527
+ should send correct parameters to post commit notification processor
2528
+ should do nothing if the secret key is bad
2529
+ should respond with OK if an exception is raised while processing
2530
+
2531
+ Presenters::ListViewProjectPresenter
2532
+ #contruct should be generate correct presenter objects
2533
+
2534
+ Presenters::ProjectPresenter
2535
+ should construct the presenter object with all relevant information from the project
2536
+ should return correct css class for build status
2537
+
2538
+ Presenters::RepositoryPresenter
2539
+ should return the master project
2540
+ should return list of child projects
2541
+
2542
+ ProjectConfigurationController
2543
+ GET 'auto_track_branches'
2544
+ should render the start auto tracking link when auto tracking is disabled for the repository
2545
+ should render the change and disable link when auto tracking is enabled for the repository
2546
+ should show the branch prefix being tracked if its present
2547
+ should render the list of child projects when auto tracking is enabled for the repository
2548
+ GET 'status_images'
2549
+ should render the status image link
2550
+ POST 'status_images'
2551
+ should render the status image link
2552
+ GET 'edit_plan'
2553
+ should not render the back link when the build plan is being edited
2554
+ should not render the project delete link when the build plan is being edited
2555
+ should render an editable build plan only when the project is pause
2556
+ should render error if project is not paused
2557
+ should set from_edit if there is a param with the same name
2558
+ POST 'finish_edit_plan'
2559
+ should unpause the current project
2560
+ should render errors when the project could not be unpaused
2561
+ should rerun the last build
2562
+ should do nothing if the project is halted
2563
+ should render errors when the project could not be rerun
2564
+ should recreate the template build plan when the project being edited is a master project
2565
+ should not recreate the template build plan when the project being edited is a child project
2566
+ GET 'show'
2567
+ should render a build plan
2568
+ should not show the 'Why we configured the pipeline the way we did' message dialog when the user edits a build plan owned by a project
2569
+ should show the 'Auto track branches' link when the project is a master project
2570
+ should not show the 'Auto track branches' link when the project is a child project
2571
+ should render a build plan edit link
2572
+ halted projects
2573
+ should render a disabled build plan edit link
2574
+ should render a disabled branch tracking link for master projects
2575
+ should render a disabled clone link for master projects
2576
+ GET 'notifications'
2577
+ http callbacks
2578
+ should render http callback form
2579
+ hipchat notifications
2580
+ should have the right data bindings when the credentials are present
2581
+ should have no data bindings when the credentials are absent
2582
+ should have correct test-hipchat-post-path
2583
+ should ask user to add hipchat credentials if absent
2584
+ should show a form to enter the room name if credentials are present
2585
+ should show the room name being used and creds present when notifications have been configured for a project to any collaborator on that project
2586
+ should show the room name being used and creds present when notifications have been configured for a project
2587
+ campfire credentials
2588
+ should have the right data bindings when the credentials are present
2589
+ should have no data bindings when the credentials are absent
2590
+ should have correct test-campfire-post-path
2591
+ should ask user to add campfire credentials if absent
2592
+ should show a form to enter the room name if credentials are present
2593
+ should show the room name being used and creds present when notifications have been configured for a project to any collaborator on that project
2594
+ should show the room name being used and creds present when notifications have been configured for a project
2595
+
2596
+ ProjectsController
2597
+ POST 'add_collaboration'
2598
+ should not create a new collaboration for a repo owned by a user if it already exists
2599
+ should create a new collaboration for a repo owned by an organization if it does not already exist
2600
+ should not create a new collaboration if user does not have access to an organization
2601
+ should add a collaboration on an existing project
2602
+ should redirect users to dashboard if request is not done over xhr
2603
+ should redirect users to project build history if redirect_to param is set to build_history
2604
+ GET 'list_collaborators'
2605
+ should list all collaborators
2606
+ PUT 'regenerate_encrypted_urls'
2607
+ should not allow the action for regular users
2608
+ should change the api key for a project
2609
+ PUT 'add_all_collaborators'
2610
+ should sync collaborators from github
2611
+ should sync collaborator permissions for repos owned by orgs
2612
+ should not allow the action for regular users
2613
+ GET #refresh_team_list
2614
+ should render a json containing the list of teams
2615
+ should render error when connection to github fails
2616
+ should render error when connection to github return bad status code
2617
+ should not allow the action for regular users
2618
+ POST 'create'
2619
+ successful project creation should enqueue a delayed job to invite collaborators when the user requests for it and clear the session key containing the collaborator message
2620
+ should not attempt to provision a project for a build plan not owned by logged in user
2621
+ should not attempt to provision a project for a build plan does not have any stages
2622
+ should create a project from the specified build plan
2623
+ should create a github repository
2624
+ should create a deploy key on the associated github repository
2625
+ should create a web hook on the associated github repository
2626
+ should raise error if project could not be created for because of a validation error
2627
+ should raise error if deploy key upload to github fails
2628
+ should raise error if webhook registration with github fails
2629
+ should set the project to be a master project
2630
+ clone
2631
+ should setup correct databindings
2632
+ should show the current project's branch in the 'integrate with dropdown'
2633
+ should show errors if there are no branches available for clone.
2634
+ should show error if the project to be cloned from has only deployment stages
2635
+ should not show the branches that have been cloned
2636
+ should not show the create clone option if the user is not an administrator
2637
+ should show the create clone option if the user is an administrator
2638
+ should filter out deployment stages when showing the build plan view to user
2639
+ should not save the project if build_plan is invalid
2640
+ should ignore the 'branch_for_integration_build' parameter if it is blank
2641
+ should respect the 'branch_for_integration_build' parameter if one provided
2642
+ should reject clone requests wherein the integration branch and branch params are the same
2643
+ should clone a project with the specified branch
2644
+ should not clone halted projects
2645
+ should return failure if clone fails
2646
+ should associate the collaborators to cloned project
2647
+ rebuild_head
2648
+ should rebuild project at the head revision(last known revision for project)
2649
+ should do nothing if project does not have a build yet
2650
+ should do nothing if the project has been halted
2651
+ pause
2652
+ should pause the specified project if the project is unpaused
2653
+ should error out when project pausing fails
2654
+ should render javascript when xhr request is made
2655
+ unpause
2656
+ should unpause the specified project if the project is unpaused
2657
+ should error out when project unpausing fails
2658
+ destroy
2659
+ should delete a project administered by a logged in user
2660
+ should not delete a project not owned by the logged in user
2661
+ should display warning and destroy project if project deletion fails
2662
+ destroy as admin
2663
+ user is not an authorized admin
2664
+ should not show destroy_confirm_as_admin
2665
+ should not show destroy_as_admin
2666
+ user is an authorized admin
2667
+ should show destroy_confirm_as_admin
2668
+ should destroy specified project when destroy_as_admin is invoked
2669
+ halt as admin
2670
+ user is not an authorized admin
2671
+ should not show halt_confirm_as_admin
2672
+ should not show halt_as_admin
2673
+ user is an authorized admin
2674
+ should show halt_confirm_as_admin
2675
+ should halt specified project when halt_as_admin is invoked
2676
+ resume as admin
2677
+ user is not an authorized admin
2678
+ should not show resume_confirm_as_admin
2679
+ should not show resume_as_admin
2680
+ user is an authorized admin
2681
+ should show resume_confirm_as_admin
2682
+ should resume specified project when resume_as_admin is invoked
2683
+ remove_collaborator
2684
+ should remove a collaborator from a project if the current user is an admin of the project
2685
+ should not allow regular users
2686
+ should not allow current user to remove himself
2687
+ POST add_team
2688
+ should create users and add them as collaborators if they are not users in snap
2689
+ should make admins if the added team has adminstrative permissions
2690
+ should render an error if connection to github fails with connection error
2691
+ should render an error if connection to github fails with bad http status
2692
+ should not allow action for collaborators who are not owners
2693
+ should not allow action users that are not collaborators
2694
+
2695
+ RegistrantsController
2696
+ should store registrant information and provide a success message when new registrant is created
2697
+ should show errors
2698
+
2699
+ DummyController
2700
+ should be success if user is logged in
2701
+ should redirect to root path if user is not logged in
2702
+ should remember the url, user was trying access if not logged in
2703
+ should not remember the url for xhr requests if user is not logged in
2704
+
2705
+ SessionsController
2706
+ should destroy the session when logging out
2707
+ should not login or create a new user if access_token is not received
2708
+ authorized access for
2709
+ non registrant flow
2710
+ should not create a registrant if he is exists
2711
+ existing registrant
2712
+ should create an associated authorized user
2713
+ existing users
2714
+ logged in user should be redirected to the dashboard edit path by default
2715
+ should redirect to dashboard page if user preference is list view
2716
+ not logged in user should be redirected to the root path
2717
+ should obtain an access token and create a user if user does not already exist when logging in
2718
+ should redirect to edit_dashboard if user has projects
2719
+ should redirect to the previously accessed url (unless it's the root path) if the user successfully logs in
2720
+ should redirect to available_projects if the user doesn't have any projects
2721
+ should obtain an access token and not create a user if user already exists when logging in
2722
+ new user when registration is disabled
2723
+ create a new registrant if it doesn't exist
2724
+ new user when registration is enabled
2725
+ should delete the registrant id from the session
2726
+ should obtain an access token and create a user if user does not already exist when logging in
2727
+ should authorize the registrant
2728
+ should redirect to edit_dashboard if user has projects
2729
+ should redirect to the previously accessed url (unless it's the root path) if the user successfully logs in
2730
+ should redirect to available_projects if the user doesn't have any projects
2731
+ unauthorized access
2732
+ should forbid unauthorized user from loging in
2733
+ github errors
2734
+ should forbid login if connection to github fails with connection error
2735
+ should forbid login if github throws 500
2736
+ index
2737
+ should flash the right error message if there's a not found param
2738
+
2739
+ SignupController
2740
+ GET 'invitation'
2741
+ should redirect users with invalid invitation codes to the login page
2742
+ should redirect users with valid invitation codes to the signup page
2743
+ should add the registrant id to the session
2744
+ GET 'signup'
2745
+ should redirect users to login page if the session doesn't have a valid registrant id
2746
+ should render the signup page if the session has a valid registrant id
2747
+
2748
+ SubscriptionsController
2749
+ DELETE 'destroy'
2750
+ should unsubscribe the subscription and redirect to the user repositories page
2751
+ should render an error if the delete fails
2752
+ POST 'create'
2753
+ should create a subscription and redirect to dashboard
2754
+ should render error if creating a subscription fails
2755
+ PUT 'update'
2756
+ should update an existing subscription and redirect to the dashboard
2757
+ should render an error if updating a subscription fails
2758
+
2759
+ UserSettingsController
2760
+ GET 'repositories'
2761
+ show_plans_page toggle on
2762
+ should show the user's build allowance information
2763
+ should show the unsubscribe link if the current plan isn't a trial plan
2764
+ should not show the unsubscribe link if the current plan is a trial plan
2765
+ should show the subscribe link if the current plan is a trial plan
2766
+ should show the re-subscribe link if the current plan isn't active on stripe
2767
+ show_plans_page toggled off
2768
+ should now show any build allowance information
2769
+ edit
2770
+ heroku credentials
2771
+ should show a message that there are no heroku credentials for this user, if indeed, there are none
2772
+ should store the redirect_uri
2773
+ should show heroku credentials which have a build plan associated with them
2774
+ should show heroku credentials if the user has one
2775
+ hipchat credentials
2776
+ should show form to add new credentials if there aren't any
2777
+ should create hipchat credentials for the signed-in user
2778
+ should redirect to the url sent in the params
2779
+ should stay on the same page if the redirect uri specified if blank
2780
+ should render errors and stay on the same page
2781
+ should set the right flash message when the redirect uri specified is blank
2782
+ should show hipchat credentials
2783
+ should show link to delete hipchat credentials
2784
+ should destroy the hipchat credentials
2785
+ campfire credentials
2786
+ should show form to add new credentials if there aren't any
2787
+ should store the redirect_uri
2788
+ should create new campfire credentials for the logged in user
2789
+ should redirect to the url sent in the params
2790
+ should stay on the same page if the redirect uri specified is blank
2791
+ should render errors and stay on the same page
2792
+ should set the right flash message when the redirect_uri in the params is blank
2793
+ should show campfire credentials
2794
+ should show link to delete campfire credentials
2795
+ should delete the campfire credentials for the logged in user
2796
+ notifications
2797
+ should show the right form
2798
+ should turn off email notifications
2799
+ should turn on email notifications
2800
+ PUT regenerate_api_key
2801
+ should regenerate the logged in users api key
2802
+ #default_view
2803
+ should create display preferences for user if it doesn't exist.
2804
+ should update an existing user preference
2805
+
2806
+ ApplicationHelper
2807
+ should generate heroku app url for heroku app hosted on cedar
2808
+ should render the correct human readable database_name_with_version
2809
+ gravatar image
2810
+ should generate correct gravatar url for an author
2811
+ should generate image path using case insensitive email
2812
+ should generate image path using only email address
2813
+ should understand size parameter when rendering a gravatar
2814
+
2815
+ BuildHistoryHelper
2816
+ #commits_link
2817
+ renders the merged message for dependent pipeline
2818
+ renders all the commits separated by commas for tracking pipeline
2819
+ #expand_pipeline?
2820
+ should return false if the project is not an integrated branch build
2821
+ integrated branch builds
2822
+ should return true if any stages in the integration branch are yet to pass
2823
+ should return true if the integration build has failed
2824
+ should return true if the integration build has been cancelled
2825
+ should return true if the integration build is yet to be triggered
2826
+ should return false if the integration build has passed
2827
+
2828
+ BuildPlanHelper
2829
+ #heroku_deployment_has_credentials_present?
2830
+ should return true when the stage is not a HerokuDeployment
2831
+ should return false when the stage is HerokuDeployment and the build plan has no credentials on it
2832
+ should return true when the stage is HerokuDeployment and the build plan has credentials on it
2833
+ #user_owns_heroku_credentials?
2834
+ should return true if user owns the supplied credentials
2835
+ should return false if user doesn't own the supplied credentials
2836
+ #repository_display_name
2837
+ should display the name of repo when the owner name is same as the selected item in the repository listing dropdown
2838
+ should display the full name of repo when the owner name is not the same as the selected item in the repository listing dropdown
2839
+
2840
+ CollaboratorHelper
2841
+ should include all collaborators
2842
+ should not include the user in the list of collaborators
2843
+
2844
+ CubicBezierHelper
2845
+ should generate only start point when interpolating a single point on a cubic bezier path
2846
+ should generate start & one intermediate points when interpolating two points on a cubic bezier path
2847
+ should generate start & three intermediate points when interpolating two points on a cubic bezier path
2848
+ should yield points if block provided
2849
+
2850
+ DashboardHelper
2851
+ should set correct css based on the state of the stage
2852
+ should return correct status in the log header
2853
+ should not render log header in case the stage has not finished
2854
+ should mark div with class manual-triggered but not clickable if the stage is manual and has been triggered
2855
+ should mark div with class manual but not clickable if stage is manual but is not triggerable
2856
+ should mark div with class manual and clickable if stage is manual and triggerable
2857
+ should mark div with class manual and not clickable if stage is manual, triggerable but already running
2858
+ should mark div with class auto if stage is not manual
2859
+
2860
+ GithubUrlHelper
2861
+ should generate github urls for file
2862
+ should return the correct github commit url
2863
+ should return the correct github service hook admin page url
2864
+ should return the correct github service hook admin page url
2865
+ #changeset_url
2866
+ should return github_commit_url in case of reruns (prior pipeline's last commit == current pipeline's last commit)
2867
+ should return the compare url in case of different commit revisions
2868
+
2869
+ ProjectConfigurationHelper
2870
+ #edit_plan_action?
2871
+ should return true if the action is edit_plan
2872
+ should return false if the action is not edit_plan
2873
+ #redirect_to_project_notifications_path
2874
+ should emit a url with the a redirect_uri query string parameter redirecting back to the project notifications path
2875
+
2876
+ UserSettingsHelper
2877
+ #credentials_delete_warning
2878
+ hipchat_credentials
2879
+ should render nothing if there are no projects using the supplied credentials
2880
+ should render warning message which contains a list of project
2881
+ campfire_credentials
2882
+ should render nothing if there are no projects using the supplied credentials
2883
+ should render warning message which contains a list of project
2884
+
2885
+ ChatNotifications
2886
+ campfire
2887
+ should post to subscribed room when there is a new commit
2888
+ should post to subscribed room when manual stage is triggered
2889
+ build status changed
2890
+ should post to subscribed room on failure
2891
+ should post to subscribed room on success after 1 failing build
2892
+ hipchat
2893
+ % Total % Received % Xferd Average Speed Time Time Time Current
2894
+ Dload Upload Total Spent Left Speed
2895
+
2896
+ 0 0 0 0 0 100 0 216 --:--:-- --:--:-- --:--:-- 216
2897
+ 0 0 0 0 0 100 0 68 --:--:-- 0:00:01 --:--:-- 0
2898
+ 0 0 0 0 0 100 0 40 --:--:-- 0:00:02 --:--:-- 0
2899
+ 0 0 0 0 0 100 0 28 --:--:-- 0:00:03 --:--:-- 0
2900
+ 0 0 0 0 0 100 0 22 --:--:-- 0:00:04 --:--:-- 0
2901
+ 0 0 0 0 0 100 0 18 --:--:-- 0:00:05 --:--:-- 0
2902
+ 0 0 0 0 0 100 0 15 --:--:-- 0:00:06 --:--:-- 0
2903
+ 0 0 0 0 0 100 0 13 --:--:-- 0:00:07 --:--:-- 0
2904
+ 0 0 0 0 0 100 0 11 --:--:-- 0:00:08 --:--:-- 0
2905
+ 0 0 0 0 0 100 0 10 --:--:-- 0:00:09 --:--:-- 0
2906
+ 0 0 0 0 0 100 0 9 --:--:-- 0:00:10 --:--:-- 0
2907
+ 0 0 0 0 0 100 0 8 --:--:-- 0:00:11 --:--:-- 0
2908
+ 0 0 0 0 0 100 0 8 --:--:-- 0:00:12 --:--:-- 0
2909
+ 0 0 0 0 0 100 0 7 --:--:-- 0:00:13 --:--:-- 0
2910
+ 174 248 124 248 0 100 17 6 0:00:14 0:00:14 --:--:-- 30
2911
+ 174 248 124 248 0 100 17 6 0:00:14 0:00:14 --:--:-- 37
2912
+ polling hipchat chatroom...
2913
+ polling hipchat chatroom...
2914
+ % Total % Received % Xferd Average Speed Time Time Time Current
2915
+ Dload Upload Total Spent Left Speed
2916
+
2917
+ 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2918
+ 0 16 0 16 0 0 17 0 --:--:-- --:--:-- --:--:-- 27
2919
+ 0 16 0 16 0 0 17 0 --:--:-- --:--:-- --:--:-- 27
2920
+ should post to subscribed room when there is a new commit
2921
+ % Total % Received % Xferd Average Speed Time Time Time Current
2922
+ Dload Upload Total Spent Left Speed
2923
+
2924
+ 0 0 0 0 0 100 0 301 --:--:-- --:--:-- --:--:-- 301
2925
+ 174 248 124 248 0 100 535 216 --:--:-- --:--:-- --:--:-- 1138
2926
+ polling hipchat chatroom...
2927
+ % Total % Received % Xferd Average Speed Time Time Time Current
2928
+ Dload Upload Total Spent Left Speed
2929
+
2930
+ 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2931
+ 0 16 0 16 0 0 25 0 --:--:-- --:--:-- --:--:-- 61
2932
+ 0 16 0 16 0 0 25 0 --:--:-- --:--:-- --:--:-- 61
2933
+ should post to subscribed room when manual stage is triggered
2934
+ build status changed
2935
+ % Total % Received % Xferd Average Speed Time Time Time Current
2936
+ Dload Upload Total Spent Left Speed
2937
+
2938
+ 0 0 0 0 0 100 0 287 --:--:-- --:--:-- --:--:-- 287
2939
+ 174 248 124 248 0 100 375 151 --:--:-- --:--:-- --:--:-- 472
2940
+ 174 248 124 248 0 100 375 151 --:--:-- --:--:-- --:--:-- 472
2941
+ polling hipchat chatroom...
2942
+ % Total % Received % Xferd Average Speed Time Time Time Current
2943
+ Dload Upload Total Spent Left Speed
2944
+
2945
+ 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2946
+ 0 16 0 16 0 0 25 0 --:--:-- --:--:-- --:--:-- 60
2947
+ should post to subscribed room when the first build fails
2948
+ % Total % Received % Xferd Average Speed Time Time Time Current
2949
+ Dload Upload Total Spent Left Speed
2950
+
2951
+ 0 0 0 0 0 100 0 113 --:--:-- --:--:-- --:--:-- 113
2952
+ 174 248 124 248 0 100 213 86 0:00:01 0:00:01 --:--:-- 521
2953
+ 174 248 124 248 0 100 213 86 0:00:01 0:00:01 --:--:-- 521
2954
+ polling hipchat chatroom...
2955
+ % Total % Received % Xferd Average Speed Time Time Time Current
2956
+ Dload Upload Total Spent Left Speed
2957
+
2958
+ 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2959
+ 0 16 0 16 0 0 32 0 --:--:-- --:--:-- --:--:-- 108
2960
+ should post to subscribed room on failure after 1 passing build
2961
+ % Total % Received % Xferd Average Speed Time Time Time Current
2962
+ Dload Upload Total Spent Left Speed
2963
+
2964
+ 0 0 0 0 0 100 0 299 --:--:-- --:--:-- --:--:-- 299
2965
+ 174 248 124 248 0 100 529 213 --:--:-- --:--:-- --:--:-- 1104
2966
+ polling hipchat chatroom...
2967
+ % Total % Received % Xferd Average Speed Time Time Time Current
2968
+ Dload Upload Total Spent Left Speed
2969
+
2970
+ 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
2971
+ 0 16 0 16 0 0 33 0 --:--:-- --:--:-- --:--:-- 134
2972
+ should post to subscribed room on success after 1 failing build
2973
+
2974
+ PostFeedbackToZendeskJob
2975
+ should create a ticket with the correct attributes
2976
+
2977
+ BuildAllowanceEnforcerJob
2978
+ #perform
2979
+ should call halt_if_expired on all build allowances
2980
+
2981
+ BuildPlanDetectionJob
2982
+ delayed job
2983
+ should generate correct worker execution command
2984
+ should mark the detection as failed if git operation fails
2985
+
2986
+ Gnocci::ManualTriggerWorkerJob
2987
+ should run all the automatic stages after the manually triggered stage and before the next manual in the correct order when every stage passes for non-integration branch builds
2988
+ should stop execution of subsequent stages when a stage fails
2989
+ should stop execution of subsequent stages when a stage is cancelled by user
2990
+ integration builds
2991
+ should run all the automatic stages on the default and the integration pipelines after the manually triggered stage on default pipeline in the correct order when every stage passes
2992
+ error handling
2993
+ should update project provisioning executing a command fails
2994
+ S3 uploads
2995
+ should upload artifacts of all executed stages to S3
2996
+
2997
+ Gnocci::PostCommitWorkerJob
2998
+ should update the pipeline's schedule time
2999
+ should stop execution of subsequent stages when a stage fails
3000
+ should stop execution of subsequent stages when a stage is cancelled by user
3001
+ Command execution
3002
+ should be in the right order
3003
+ error handling
3004
+ should update project provisioning executing a command fails
3005
+ project delete
3006
+ does NOT notify errors if notification does NOT exist anymore
3007
+ does NOT run stages
3008
+ S3 uploads
3009
+ should upload artifacts of all executed stages to S3
3010
+ non integration branch builds
3011
+ should run all automatic stages when the pipeline has no manual stages
3012
+ should run all the automatic stages before the first manual in the correct order when every stage passes
3013
+ integration branch builds
3014
+ should run all automatic stages when the pipeline has no manual stages
3015
+ should run all the automatic stages before the first manual in the correct order when every stage passes
3016
+
3017
+ InviteCollaboratorsJob
3018
+ should fetch all the collaborators from github for a given project
3019
+ should add the collaborators to the authorized list
3020
+ should not error out if the collaborators are already authorized users
3021
+ should send out an email to all collaborators
3022
+ should not send an invite to the person who setup the build(the project's owner)
3023
+
3024
+ MixpanelTrackingJob
3025
+ job creation
3026
+ should track post commit notification processing
3027
+ should track manual triggering (PENDING: Temporarily disabled with xit)
3028
+ posting to mixpanel
3029
+ should send a build start event when a post commit notification is generated
3030
+
3031
+ RegistrantMarketoSyncJob
3032
+ params
3033
+ should send the right registrant information in the post params
3034
+ success
3035
+ should mark the registrant as synced
3036
+ failure
3037
+ should raise an error
3038
+
3039
+ SubscriptionSyncAllJob
3040
+ should update all build allowances from the API endpoint
3041
+
3042
+ SubscriptionSyncJob
3043
+ should update the build allowance from the API endpoint
3044
+
3045
+ BuildStatusChangeMailer
3046
+ state_changed and there are no users to notify
3047
+ should not be delivered
3048
+ state_changed and its the first time the stage ran
3049
+ should have the right subject
3050
+ state_changed and its not the first time pipeline run
3051
+ should get delivered
3052
+ should have the right subject
3053
+ should have the right subject for integrated builds
3054
+ should have the right body
3055
+ should have the right body for integrated builds
3056
+ should not include a link to the build logs if the build passed
3057
+ should not escape the author email
3058
+ should not escape the commit message
3059
+ should be sent to the project users who have opted for email notifications
3060
+
3061
+ CollaboratorInviteMailer
3062
+ should get delivered
3063
+ should have the right subject
3064
+ should be sent to the correct email
3065
+ should have correct content
3066
+
3067
+ ManualTriggerMailer
3068
+ manual_trigger and there are no users to notify
3069
+ should not be delivered
3070
+ manual_trigger and there are users to notify
3071
+ should get delivered
3072
+ should have the right subject
3073
+ should be sent to all users who have opted for notifications
3074
+ should have correct content
3075
+ should list out all commits
3076
+
3077
+ MonitorMailer
3078
+ Monitor Errors
3079
+ should get delivered
3080
+ should be sent to the snap admins
3081
+ should have correct content
3082
+
3083
+ ProjectProvisioningMailer
3084
+ Provisioning errors
3085
+ should get delivered
3086
+ should have the right subject
3087
+ should be sent to the snap admins
3088
+ should have correct content
3089
+
3090
+ ProjectSetupMailer
3091
+ first_job and there are no users to notify
3092
+ should not be delivered
3093
+ first_job and there are users to nofify
3094
+ should get delivered
3095
+ should have the right subject
3096
+ should be sent to all the users of the project who have opted for email notifications
3097
+ should have correct content in text mail
3098
+ should have correct content in html mail
3099
+
3100
+ RegistrantMailer
3101
+ #thank_you
3102
+ should send the thank you email
3103
+ should send it to right registrant
3104
+ should have the right subject
3105
+ should have the right body
3106
+ should mark the registrant as thanked
3107
+ #invite
3108
+ should send the invitation email
3109
+ should send it to right registrant
3110
+ should have the right subject
3111
+ should have the body with the link to login to Snap
3112
+ should mark the registrant as invited
3113
+
3114
+ Admin::AuthorizedUser
3115
+ should not downcase github username before saving
3116
+ should return the creator of the authorized user
3117
+ should not allow duplicate github usernames
3118
+ should tell if a user is authorized or not
3119
+ should match authorized users case insensitively
3120
+ should answer true for authorized_as_admin? if user is an admin
3121
+ when github username is empty
3122
+ should not be valid
3123
+ #with_github_username
3124
+ should find user with case insensitive match
3125
+ #with_github_username_matching
3126
+ should find users matching a keyword
3127
+ mass assigment
3128
+ should fail for user
3129
+ should fail for admin
3130
+ god mode
3131
+ should answer false for #god? if admin user is not god
3132
+ should answer false for #god? if non admin user is not god
3133
+ should answer true for #god? if admin user is god
3134
+ should not allow creating non-admin god users
3135
+
3136
+ ApplicationSetting
3137
+ send_admin_email
3138
+ should return true if the send_admin_email is set to '1'
3139
+ should return false if the send_admin_email is set to '0'
3140
+ should return false if send_admin_email doesn't exist
3141
+ maintenance_mode
3142
+ should return true if maintenence mode is set to '1'
3143
+ should return false if maintenance_mode is set to '0'
3144
+ should return false if maintenance_mode doesn't exist
3145
+ #toggle
3146
+ should toggle the supplied setting
3147
+ #state
3148
+ should return the state of the setting
3149
+
3150
+ BuildAllowance
3151
+ .build_default
3152
+ should initialize a default build allowance
3153
+ #expired?
3154
+ should be expired if valid till is in the past and the allowance is activated
3155
+ should not be expired if valid till is in the past and the allowance is deactivated
3156
+ update_build_allowance
3157
+ should update itself
3158
+ #halt_if_expired
3159
+ should halt all the user's project if the build allowance has expired
3160
+ should resume scheduling of any halted repositories if the build allowance has not expired
3161
+
3162
+ BuildPlan::ConfigurableStage::Artifact
3163
+ validations
3164
+ should not be valid with an empty directory
3165
+ directory should allow dots in between
3166
+ should not allow references to any parent directories
3167
+ should not allow absolute pathnames
3168
+ should not allow working directory
3169
+ behavior
3170
+ should be propagated by default
3171
+ #self_clone
3172
+ should return a clone of itself
3173
+ #to_xml
3174
+ should generate valid xml for top level artifact dir
3175
+ should generate valid xml for nested artifact dir
3176
+ #to_gnocci
3177
+ should generate a valid json
3178
+ #propagated
3179
+ should return all propagated artifacts
3180
+
3181
+ BuildPlan::ConfigurableStage
3182
+ approval_type should default to sucess by default
3183
+ should not create a stage with no tasks
3184
+ validates uniqueness of stage name within a build plan
3185
+ should clone the stage with the same tasks, environment_variables and artifacts
3186
+ should generate valid xml
3187
+ custom stage with default tasks
3188
+ should include the correct tasks if local gems present
3189
+ should include the correct tasks if local gems are not present
3190
+ should include the correct tasks if a database is supplied
3191
+
3192
+ BuildPlan::EnvironmentVariable
3193
+ should not show secure environment variables on the UI
3194
+ should clone the environment variable
3195
+ association
3196
+ should be associated with a build plan
3197
+ validation
3198
+ should mark environment_variable as invalid if key is empty
3199
+ should be unique per environment
3200
+ can be non-unique across environment
3201
+ should be invalid if the key is over 255 characters
3202
+ #to_xml
3203
+ should be valid
3204
+ #to_gnocci
3205
+ should be valid
3206
+
3207
+ BuildPlan::FetchArtifact
3208
+ #to_xml
3209
+ should generate valid xml for top level artifact dir
3210
+ should generate valid xml for nested artifact dir
3211
+
3212
+ BuildPlan::HerokuDeployment
3213
+ should mark the object as invalid when the stack_name is blank
3214
+ should mark the object as invalid when the app_name is blank
3215
+ should mark the object as invalid when run_db_migrate is true for java builds
3216
+ approval_type should default to manual by default
3217
+ should not do anything when cloned
3218
+ should generate correct go config stage xml
3219
+ should generate correct go config stage xml when the db migrate is turned off
3220
+ #missing_credentials?
3221
+ should return true when the build plan has no credentials associated with it
3222
+ should return false when the build plan has heroku credentials associated with it
3223
+
3224
+ BuildPlan::Language
3225
+ RubyLanguage
3226
+ should validate ruby version
3227
+ should set a default ruby version on create
3228
+ should return the absolute path of bin directory
3229
+ java language
3230
+ should validate java version
3231
+ should set a default java version on create
3232
+ on centos
3233
+ should return the absolute path of bin directory
3234
+ should return an environment variable for JAVA_HOME
3235
+ on Ubuntu
3236
+ should return the absolute path of bin directory
3237
+ should return an environment variable for JAVA_HOME
3238
+
3239
+ BuildPlan::Stage
3240
+ should validate presence of name
3241
+ should validate presence of job_name
3242
+ should validate presence of stage_order
3243
+ should validates format and length of name
3244
+ should validates format and length of job_name
3245
+ validates that the first stage approval can be 'success' only
3246
+ validates that stage approval can be either 'manual' or 'success' for subsequent stages only
3247
+ should show the correct error message when stage name is blank
3248
+ should reject stages with duplicate stage names
3249
+ errors out if updated first stage is set to be manual in the build plan
3250
+ should include artifacts in the gnocci config if the stage has artifacts configured
3251
+ should NOT include any artifacts int the gnocci config if the stage doesn't have any artifacts
3252
+ should mark the first stage of integration pipeline to be manual
3253
+ should return manual if stage is part of integration build and is the first stage
3254
+ should return true if stage is part of integration build and is the first stage
3255
+ #to_xml
3256
+ should include the PATH and LD_LIBRARY_PATH in the xml that it generates
3257
+ should not include the PATH in the xml if one is not specified on the stage
3258
+ #to_gnocci
3259
+ should generate the correct gnocci config
3260
+ should include the PATH and LD_LIBRARY_PATH in the gnocci json that it generates
3261
+ should include the PATH and LD_LIBRARY_PATH in the gnocci config even when they are not specified on the stage
3262
+ should create JAVA_HOME environment variable if the language is java
3263
+ should create DATABASE_URL environment variable if and a database is selected and if its not rails/ruby project
3264
+
3265
+ BuildPlan::Task
3266
+ should validate presence of command
3267
+ should validate length of command to be less than 255 characters
3268
+ should validate runif to be either 'passed', 'failed' or 'any' only
3269
+ should clone the task with the same command
3270
+ #to_xml
3271
+ should be valid
3272
+ #to_gnocci
3273
+ should be a valid json
3274
+
3275
+ BuildRequest
3276
+ should send the list of build requests pending in the work queue for more than 10 minutes
3277
+ validates presence of build_state
3278
+ should set a default build state when a build request gets created with blank build_state
3279
+ should set mark a request to be dropped
3280
+ #schedule
3281
+ should set build_state to 'scheduled' and create a PostCommitWorkerJob
3282
+ #droppable
3283
+ should return true for when pipeline is pending
3284
+ should return false when a pipeline is pending but is already marked to be dropped
3285
+
3286
+ BuildStatistic
3287
+ should update the average when #generate_new_average is invoked with the wait time
3288
+ should answer the average_build_time for a project
3289
+
3290
+ CampfireCredentials
3291
+ should not allow empty api_key
3292
+ should not allow empty subdomain
3293
+ campfire notifications associations
3294
+ when destroying parent creds
3295
+ should get destroyed
3296
+ mass assigment
3297
+ should fail for user
3298
+
3299
+ CampfireNotificationChannel
3300
+ campfire credentials
3301
+ when empty
3302
+ should not be valid
3303
+ room selection
3304
+ when empty
3305
+ should not be valid
3306
+ self_clone
3307
+ should clone itself with the right room and credentials
3308
+ notifications
3309
+ should try to speak in the room
3310
+ new commit
3311
+ should send right message
3312
+ manual trigger
3313
+ should send the right message
3314
+ test_message
3315
+ should send the right message
3316
+ should raise an exception if the room doesn't exist
3317
+ should rescue any exceptions raised by #notify and rethrow them as CampfireExceptions
3318
+ should preserve the original exception's message
3319
+ build status changed
3320
+ with a failing build
3321
+ should send a failure message
3322
+ with a passing build
3323
+ should send a passing message
3324
+
3325
+ Collaboration
3326
+ should not create two collaborations for the same user and project
3327
+ A User who is a collaborator on multiple projects
3328
+ should list a project if a given user is a collaborator on a given project
3329
+
3330
+ DetectionState
3331
+ should only allow passed or failed or null values for detection state
3332
+ should validate presence of build_plan
3333
+ should return true for #pending? if there is no result
3334
+
3335
+ Feedback
3336
+ should validate presence of name
3337
+ should validate presence of email
3338
+ should validate presence of subject
3339
+ should validate presence of body
3340
+
3341
+ GitCommandsHelper
3342
+ should generate git_fetch_command
3343
+
3344
+ GitMaterial
3345
+ should validate presence of branch_name
3346
+ should generate correct ssh_url for project
3347
+ should generate correct git_proxy_url for project
3348
+ should clone the git material
3349
+ #to_xml
3350
+ should generate the correct config
3351
+ #to_gnocci
3352
+ should generate the correct config
3353
+
3354
+ Github::API::Branches
3355
+ should fetch a list of all branches for a specified repository
3356
+ should raise error if github responded with a bad status code
3357
+ should raise error if http connection to github failed
3358
+
3359
+ Github::API::Collaborator
3360
+ .all
3361
+ should fetch a list of all collaborators at a specified url
3362
+ should raise error if github responded with a bad status code
3363
+ should raise error if http connection to github failed
3364
+ .admins_for
3365
+ organization owned repos
3366
+ should fetch the list of admins from the current list of collaborators
3367
+
3368
+ Github::API::Organization
3369
+ should fetch a list of all orgs a user belongs to
3370
+ should raise ConnectionError if github responded with a bad status code
3371
+ should raise AuthError if github responded with status 401
3372
+ should raise AuthError if github responded with status 403
3373
+ should raise error if http connection to github failed
3374
+
3375
+ Github::API::Repository
3376
+ should fetch a list of all repositories at a specified url
3377
+ should raise error if github responded with a bad status code
3378
+ should raise error if http connection to github failed
3379
+
3380
+ Github::API::Revision
3381
+ #head
3382
+ should call fetch
3383
+ should retrieve the last commit on the project default branch
3384
+ #commit
3385
+ should retrieve full commit information for the sha
3386
+ should call fetch
3387
+ #fetch
3388
+ should raise error when commit information retrieval from GitHub fails with bad http status code
3389
+ should raise error when commit information retrieval from GitHub fails with connection error
3390
+
3391
+ Github::API::Team
3392
+ .all_admins
3393
+ should fetch a list of all admin teams
3394
+ .admin?
3395
+ should report if a team has administrative permissions
3396
+
3397
+ Github::DeployKey
3398
+ title is self-explanatory
3399
+
3400
+ Github::Helpers
3401
+ should be able to exract link header from a bunch of headers
3402
+ should be able to exract next header from link header when next link is present
3403
+ should safely return nil if no next link is present
3404
+ should safely return nil if no link header is present
3405
+ should identify link rel type correctly
3406
+ should identify link uri type correctly
3407
+ should set rel to nil if none specified
3408
+ should set rel to nil if header appears damaged or illegal
3409
+ should identify link as a next-rel-type if rel-type is next
3410
+
3411
+ Github::PostCommitNotificationProcessor
3412
+ #process
3413
+ should create multiple commits if notification contains multiple commits
3414
+ should do nothing if the repository is halted
3415
+ on initial commit
3416
+ should create a post commit notification
3417
+ on branch creation
3418
+ should not create a new project or post commit notification if auto branch tracking is disabled
3419
+ should create a new project if auto branch tracking is enabled
3420
+ should do nothing if the repository is halted
3421
+ on branch deletion
3422
+ should destroy project if auto branch tracking is enabled
3423
+ should not destroy project if auto branch tracking is disabled
3424
+ should do nothing if the repository is halted
3425
+ on tag creation
3426
+ should ignore
3427
+ on tag deletion
3428
+ should ignore
3429
+
3430
+ Github::Repository
3431
+ should validate the presence of owner_type
3432
+ should validate the presence of owner_name
3433
+ should validate the presence of name
3434
+ should validate the presence of billing_owner
3435
+ should not allow duplicate entries
3436
+ should validate that owner_type is either 'organization' or 'user'
3437
+ #recreate_template_build_plan_from!
3438
+ should replace the existing template build plan with a clone of the provided build_plan
3439
+ #find_project_by_branch
3440
+ should locate the associated project which builds against the supplied branch
3441
+ #find_master_project
3442
+ should return the master project
3443
+ should return nil if no master project exists
3444
+ #full_name
3445
+ should return the correct full name of a repository
3446
+ #ssh_url
3447
+ should return the correct ssh url of repository
3448
+ #maybe_clone_project!
3449
+ auto_track_branches is disabled
3450
+ should not perform a project clone
3451
+ auto_track_branches is enabled
3452
+ should create a clone when the branch prefix matches
3453
+ should not create a clone when the branch prefix doesn't match
3454
+ should not create a clone when the clone already exists
3455
+ should create a clone when the branch prefix is blank
3456
+ should create a clone that includes all collaborators on the master project
3457
+ should create a clone which has notification channels as on the master project
3458
+ should create a clone that integrates with the supplied integration branch
3459
+ #maybe_destroy_child_project!
3460
+ should do nothing when auto_track_branches is turned off
3461
+ should do nothing when a project for that branch doesn't exist
3462
+ should do nothing when the project being deleted is a master project
3463
+ should destroy a child project when it exists
3464
+ #child_projects
3465
+ should return an empty array if there is only master project created for a repository
3466
+ should return the child projects
3467
+ should return child projects in ascending order of their branch names
3468
+ destroy
3469
+ should destroy its deploy key
3470
+ should set errors on itself if destroying the deploy key fails
3471
+ should destroy its web hook
3472
+ should set errors on itself if destroying the web hook fails
3473
+ should not fail if there are no deploy keys or web hooks created
3474
+ should destroy its template build plan
3475
+ #maybe_destroy
3476
+ should destroy itself if there's only no project associated
3477
+ should not destroy itself when there are more than one projects associated with it
3478
+
3479
+ Github::WebHook
3480
+ should generate a secret key on save
3481
+
3482
+ Github
3483
+ #user_profile_for
3484
+ should fetch user profile details
3485
+ should raise error when github throws 500 while fetching user profile
3486
+ should raise error when connection to github fails while fetching user profile
3487
+ #user_emails_for
3488
+ should fetch user email details
3489
+ should raise error when github throws 500 while fetching email address
3490
+ should raise error when connection to github fails while fetching email address
3491
+ #public_profile_for
3492
+ should fetch user profile details
3493
+ should raise error when github throws 500 while fetching user profile
3494
+ should raise error when connection to github fails while fetching user profile
3495
+ authorize
3496
+ should fetch oauth access_token if code is correct
3497
+ should raise error if access_token is not received
3498
+ should raise error if fetching access token returns status 500
3499
+ should raise error if fetching access token fails with connection error
3500
+ #teams_for_repository
3501
+ should return a list of teams for a repository owned by an organization
3502
+ should raise error when github throws a bad status code (4XX, 5XX) while fetching teams of a repository
3503
+ should raise error when connection to github fails while fetching teams of a repository
3504
+ #members_of_team
3505
+ should return a list of members of a team
3506
+ should raise an error when github throws a bad status code (4XX, 5XX) while fetching members of a team
3507
+ should raise error when connection to github fails while fetching members of a team
3508
+
3509
+ Gnocci::ManualTrigger
3510
+ validates presence of a user
3511
+ should send notifcation on create
3512
+ should raise error when attempting to drop request (since we do not want to delete the pipeline instance that has already partially run)
3513
+ #destroy
3514
+ should invalidate pipeline cache
3515
+
3516
+ Gnocci::PostCommitNotification
3517
+ should cleanup the pipeline structure and delete the build request when #drop_request is called
3518
+ validations
3519
+ should mark the object as invalid when the ref is blank or nil
3520
+ should mark the object as invalid when the sha_before_push is blank
3521
+ should mark the object as invalid when the sha_after_push is blank
3522
+ should mark the object as invalid when the project is nil
3523
+ Pipeline Structure
3524
+ should save the gnocci post commit notification with a newly created pipeline instance with correct commit/label/author/run list
3525
+ should save the gnocci post commit notification with a newly created pipeline instance with correct commit/label/author/run list for integrated branch builds
3526
+ should cleanup the pipeline structure and delete the build request when #performed_with_errors is called
3527
+
3528
+ Gnocci::Stage
3529
+ #run
3530
+ should perform a job start before running gnocci
3531
+ should update the stage's duration
3532
+ should create go artifacts only when they don't exist
3533
+ should not create go artifacts when they already exist
3534
+ should execute the right commands while running gnocci
3535
+ passing stage
3536
+ should perform a job end after running gnocci and mark the stage to have passed
3537
+ failing stage
3538
+ should perform a job end after running gnocci and mark the stage to have failed
3539
+ cancelled stage
3540
+ should perform a job end after running gnocci and mark the stage to have been cancelled
3541
+ should not create go artifacts
3542
+ #console_log_path
3543
+ should generate the correct console path
3544
+ #upload_artifacts_to_s3
3545
+ should upload all artifacts
3546
+ #fetch_previous_artifacts_from_s3
3547
+ should download and unpack artifacts from s3 if requested
3548
+
3549
+ Go::Artifact
3550
+ returns its download url
3551
+
3552
+ Go::Commit
3553
+ author display name should strip out email segment if present
3554
+ notification
3555
+ should notify of a new commit only if the commit does not belong to an integration branch
3556
+
3557
+ Go::Pipeline
3558
+ should answer the last commit on a pipeline
3559
+ should return dependent pipeline if present
3560
+ should return the tracking pipeline
3561
+ should answer if the pipeline is dependent
3562
+ should answer if the pipeline is a tracking pipeline
3563
+ should return its related pipeline (dependent -> tracking, tracking -> dependent) or nil if it doesn't have a related pipeline
3564
+ should specify if a pipeline is a member of an integrated branch build
3565
+ should determine if pipeline is compelete till the first manual stage
3566
+ should error when attempting to run a pipeline without a counter
3567
+ should not allow reassignment of counter
3568
+ pipeline creation
3569
+ should create a pipeline with the right right stages and jobs as given in the build plan without integrated build
3570
+ should create a pipeline with the right stages and jobs as given in the build plan with an integrated build
3571
+ should create a dependent pipeline with the right integration commit revision and type
3572
+ stage ordering
3573
+ should be ordered by creation time
3574
+ on deletion
3575
+ should destroy dependant stages
3576
+ should destroy dependant commits
3577
+ counters
3578
+ should return pipeline instances for a project before a pipeline id (previous page)
3579
+ should return pipeline instances for a project after a pipeline counter inclusive of the current pipeline
3580
+ #initialize_counter
3581
+ should initialize pipeline counter to 1 when there are no previously triggered pipelines
3582
+ should initialize the counter to the next available pipeline counter when there are previously triggered pipelines
3583
+ should do nothing when the pipeline already has a counter
3584
+ should update the counter of the dependent pipeline
3585
+ duration
3586
+ should exclude the pending stages from the computation
3587
+ should compute the correct duration when all the stages are complete
3588
+ completion
3589
+ should report itself to be completed if all stages have passed
3590
+ should report itself to be completed if any stage has failed
3591
+ should report itself to be completed if any stage has been cancelled
3592
+ should report itself to be completed if all stages upto the manual trigger have completed
3593
+ triggerability
3594
+ should return true if a stage is manual trigger and stages prior to that stage have completed
3595
+ should return false if a manual stage has already been triggered
3596
+ should return false if a stage is auto trigger even if stages prior to that stage have completed
3597
+ should return false if a stage is manual trigger even if stages prior to that stage have not completed
3598
+ should return false if a stage is auto trigger even if stages prior to that stage have not completed
3599
+ #combined_result
3600
+ should return the result of the pipeline when its not member of an integrated branch build
3601
+ should return the result of the tracking pipeline until we have a result on the dependent pipeline
3602
+ should return the result of the dependent pipeline when it has a result
3603
+ #prior_pipeline
3604
+ should return the prior pipeline
3605
+ the returned prior pipeline should be of the same type
3606
+
3607
+ Go::Stage
3608
+ completion
3609
+ should tell if it's completed
3610
+ should tell if it's pending
3611
+ should tell if it has failed
3612
+ should tell if it has been cancelled
3613
+ should set duration when job is completed
3614
+ #triggered?
3615
+ should return true if there is a deployment trigger for this stage
3616
+ should return false if there are no deployment triggers for this stage
3617
+ manually trigger stage
3618
+ sets user who triggered the build
3619
+ resets job state
3620
+ #console_log_url
3621
+ should generate correct url for current stages
3622
+ should generate correct url for previously run stages
3623
+ result
3624
+ downcases result before saving
3625
+
3626
+ GoSaasWorker::CommandRunner
3627
+ should execute commands in order
3628
+ should not halt the execution of the chain if none of the command fails
3629
+ should halt the execution of the chain if any command fails
3630
+
3631
+ GoSaasWorker::Config::Generator
3632
+ should detect if local gems present
3633
+ should detect if local gems are not present
3634
+ should detect rails without a database, with test::unit
3635
+ should detect rails with a database and test::unit
3636
+ should detect rubygems without a database, with test::unit
3637
+ should detect rubygems with a database and test::unit
3638
+ should detect mysql and test::unit
3639
+ should detect pg and test::unit
3640
+ should create a symlink to database.yml
3641
+ should detect unit tests on rubygems
3642
+ should not detect RSpecs if no targets present in the spec folder in the FastFeedback stage
3643
+ should ensure that tasks are in the right order
3644
+ java project
3645
+ should detect a build.xml tool and create a default task
3646
+ should detect a pom.xml tool and create a default task
3647
+ should detect a build.gradle tool and create a default task
3648
+ database
3649
+ should add a DATABASE_URL environment variable to the pipeline
3650
+ should not attempt to symlink a database.yml
3651
+ Integration tests stage
3652
+ should detect poltergeist based integration test builds
3653
+ should detect rack request specs with the rack driver
3654
+ should detect spec features
3655
+ should detect only spec features when both features and request specs are detected
3656
+ should not detect RSpecs if no targets present in the spec folder in the Integration stage
3657
+ should not detect Test::Unit if no targets present in the test folder in the Integration stage
3658
+
3659
+ GoSaasWorker::Detect::Database
3660
+ RailsDatabaseSupport
3661
+ should not change run_list if no database is detected
3662
+ should not error out if no database is detected
3663
+ determine postgres db from gemfile
3664
+ determine mysql db from gemfile
3665
+ determine sqlite db from gemfile
3666
+ should detect database in the development group in gemfile
3667
+ should detect database specified in a custom group in gemfile
3668
+ should prefer the gem specified in test group over a custom group
3669
+ should prefer the test database over the development
3670
+ should fallback to the database in the default gem group in case the development group doesn't have a db
3671
+ should use the production database if nothing compatible is found in either dev/test or default
3672
+ production db is used only if no compatible db is found in dev/test or default
3673
+ RubygemsDatabaseSupport
3674
+ should always answer true for #success? when there is no database gem
3675
+ gemfile should be searched if database is not present in gemspec
3676
+ gemspec takes priority over gemfile
3677
+ should prefer a gem specified in the development group over the runtime group
3678
+
3679
+ GoSaasWorker::Detect::DefaultJavaTask
3680
+ should be success if build.xml is present
3681
+ should be success if pom.xml is present
3682
+ should be success if build.gradle is present
3683
+ fail if neither build.xml, pom.xml nor build.gradle are present
3684
+ multiple build tools present
3685
+ should give priority to maven over ant
3686
+ should give priority to maven over gradle
3687
+
3688
+ GoSaasWorker::Detect::Framework
3689
+ should have all detectors for all supported frameworks
3690
+ should succeed if rails is detected
3691
+ should succeed if rubygems is detected
3692
+ should succeed if java is detected
3693
+ should fail if neither rubygems nor rails detected
3694
+
3695
+ GoSaasWorker::Detect::GemCache
3696
+ should succeed even if vendor/cache dir not present
3697
+ should succeed when the vendor/cache dir is found
3698
+
3699
+ GoSaasWorker::Detect::Gemfile
3700
+ should set failure status if Gemfile is not present at project root
3701
+ should set success status if Gemfile is present at project root
3702
+
3703
+ GoSaasWorker::Detect::JavaFramework
3704
+ should have all detectors specific to java
3705
+ should detect if its java project if it has either build.xml, pom.xml or build.gradle
3706
+ should fail if java is not detected
3707
+
3708
+ GoSaasWorker::Detect::Java
3709
+ should be success if build.xml is present
3710
+ should be success if pom.xml is present
3711
+ should be success if build.gradle is present
3712
+ fail if neither build.xml, pom.xml nor build.gradle are present
3713
+
3714
+ GoSaasWorker::Detect::JavascriptTestFramework
3715
+ should not detect jasmine if gem not present in Gemfile
3716
+ should detect jasmine if gem is present in Gemfile
3717
+
3718
+ GoSaasWorker::Detect::RailsGroup
3719
+ should have all detectors specific to rails
3720
+ should detect if its rails project if Gemfile contains rails
3721
+ should detect if its rails project if Gemfile contains rails git url
3722
+ should not detect rails project if Gemfile does not contain rails
3723
+ should not detect rails project if Gemfile does not contains commented rails
3724
+ should detect database if present
3725
+ should be success even if database is not present
3726
+ should fail if rails is not detected
3727
+
3728
+ GoSaasWorker::Detect::Rails
3729
+ should be success if script/rails is present
3730
+ fail if script/rails not present
3731
+
3732
+ GoSaasWorker::Detect::RubyFramework
3733
+ should have all detectors specific to ruby
3734
+ should fail detection if neither ruby detection fails
3735
+ should pass detection if rails app with no zeroci.yaml
3736
+ should pass detection if rubygem with no zeroci.yaml
3737
+
3738
+ GoSaasWorker::Detect::Ruby
3739
+ should translate known ruby to full system path
3740
+ should use default ruby if ruby version is not among known rubies
3741
+ should use default ruby if ruby version is is not a valid version string
3742
+ should detect if a ruby version is specified in the .zeroci.yml file
3743
+ should use default ruby version if it is not present in .zeroci.yml file
3744
+ should detect if a ruby version is specified in the Gemfile
3745
+ should use default ruby version if it is not present in gemfile
3746
+ should detect if a ruby version is specified in a .ruby-version file
3747
+ should use default ruby if version specified in .ruby-version is not a valid version string
3748
+ should detect if a ruby version is specified in the rvmrc
3749
+ should use default ruby if a ruby version is not specified in rvmrc
3750
+ should assume latest patch level when a patch level is not specified
3751
+ should prefer ruby version specified in zeroci.yml over all others
3752
+ should prefer ruby version specified in Gemfile over rvmrc if .zeroci.yml doesn't have ruby
3753
+
3754
+ GoSaasWorker::Detect::RubygemsGroup
3755
+ should have all detectors specific to rubygems
3756
+ should report failure if gemspec is not present
3757
+ should succeed if rubygems
3758
+ should detect database if present
3759
+ should fail if rubygem is not detected
3760
+
3761
+ GoSaasWorker::Detect::RubyGems
3762
+ Should be success if *.gemspec is present
3763
+ Should fail if *.gemspec is not present
3764
+
3765
+ GoSaasWorker::Detect::SystemProperties
3766
+ should detect the system.properties file
3767
+ should not fail when the system.properties file is blank
3768
+ should not fail when the java.runtime.version key is present with an invalid value
3769
+ should detect the correct java version in the system.properties file
3770
+ should set the correct java version from the system.properties file
3771
+ should fail when the java version detected is unsupported
3772
+
3773
+ GoSaasWorker::Detect::Twist
3774
+ should detect twist dependency based on zeroci.yml
3775
+ should detect lack of twist dependency based on zeroci.yml
3776
+ should not barf if twist key is missing
3777
+
3778
+ GoSaasWorker::Detect::UnitTestFramework
3779
+ should report failure if there is no spec or test folder at project root
3780
+ should detect both test/unit and rspec if they are present
3781
+ should detect only integration spec targets to run for a rails project with a spec/requests dir
3782
+ test unit
3783
+ should detect test unit if test folder is present at project root
3784
+ should detect the correct tests to be run for a rails project with test/integration dir
3785
+ should detect the correct tests to be run for a rails project without test/integration dir
3786
+ should detect the correct tests to be run when project is a ruby project
3787
+ rspec
3788
+ should detect rspec if spec folder is present at project root
3789
+ should detect the correct specs to be run when project is a ruby project
3790
+ should detect the correct specs to be run for a rails project with spec/requests dir
3791
+ should detect the correct specs to be run for a rails project with spec/features dir
3792
+ should detect the correct specs to be run for a rails project without spec/requests or spec/features dir
3793
+
3794
+ GoSaasWorker::Status
3795
+ should be able to add predefined status messages
3796
+ should not add predefined status message if a status key is missing
3797
+ should not add status message if key is unknown
3798
+
3799
+ GoXmlBuilder
3800
+ should perform xml escaping
3801
+ should escape go param interpolation char #
3802
+
3803
+ Heroku::App
3804
+ #fetch_all
3805
+ should refresh the access token before fetching the apps
3806
+ should fetch all Heroku apps
3807
+ should raise HerokuCredentials::ConnectionError if heroku gives a bad response
3808
+ should raise HerokuCredentials::AuthError if heroku gives 401 or 403
3809
+ should raise HerokuCredentials::ConnectionError if http connection fails
3810
+
3811
+ Heroku::Keys
3812
+ #delete_key
3813
+ should refresh the access token before fetching the apps
3814
+ should delete the heroku key with the given fingerprint
3815
+ should raise HerokuCredentials::ConnectionError if heroku gives a bad response
3816
+ should raise HerokuCredentials::AuthError if heroku gives 401 or 403
3817
+ should raise HerokuCredentials::ConnectionError if http connection fails
3818
+
3819
+ HerokuCredentials
3820
+ should create a ssh key on create
3821
+ should upload added SSH Key to heroku
3822
+ should not create the heroku credentials when the uploading of the SSH Key fails
3823
+ should not create the heroku credentials when there is a connection error when uploading the ssh key
3824
+ should destroy the ssh deploy key after the heroku credential is destroyed
3825
+ #destroy_without_heroku_keys_cleanup should destroy the ssh deploy key and itself without deleting the key from heroku
3826
+ #from_omniauth!
3827
+ should update the oauth tokens
3828
+ should raise HerokuCredentials::ConnectionError if heroku gives a bad response
3829
+ should raise HerokuCredentials::AuthError if heroku gives 401 or 403
3830
+ should raise HerokuCredentials::ConnectionError if http connection fails
3831
+ #refresh_access_token
3832
+ should post to heroku with the right data
3833
+ should update the heroku credentials with the new access_token
3834
+ should return early if the Heroku credentials don't have a refresh token
3835
+
3836
+ HipchatCredentials
3837
+ should respond to #user_id
3838
+ should respond to #api_key
3839
+ should respond to #username
3840
+ should respond to #hipchat_notification_channels
3841
+ should not allow empty api_key
3842
+ should not allow empty username
3843
+ should not allow usernames longer than 15 characters
3844
+ when user_id is empty
3845
+ should not be valid
3846
+ hipchat notifications associations
3847
+ when destroying parent creds
3848
+ should get destroyed
3849
+ mass assigment
3850
+ should fail for user
3851
+
3852
+ HipchatNotificationChannel
3853
+ hipchat credentials
3854
+ when empty
3855
+ should not be valid
3856
+ room selection
3857
+ when empty
3858
+ should not be valid
3859
+ self_clone
3860
+ should clone itself with the right room and credentials
3861
+ notifications
3862
+ should send the right message
3863
+ new commit
3864
+ should send right message
3865
+ test_message
3866
+ should send the right message
3867
+ should rescue any exceptions raised by #notify and rethrow them as HipchatExceptions
3868
+ should preserve the original exception's message
3869
+ manual trigger
3870
+ should send the right message
3871
+ build status changed
3872
+ with a failing build
3873
+ should send a failure message in red
3874
+ with a passing build
3875
+ should send a passing message in green
3876
+
3877
+ HttpCallback
3878
+ should not allow empty urls
3879
+ should not allow strings that are not urls
3880
+ should not allow invalid urls
3881
+ should post to the url with the stage metadata when notify is called
3882
+ should increment the fail counter if the post fails
3883
+ should increment the fail counter if the post raises an exception
3884
+ self_clone
3885
+ should clone itself with the right url
3886
+
3887
+ HttpFetcher
3888
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:14)
3889
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:14)
3890
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:14)
3891
+ should return true for #success? when http connection has an OK status code
3892
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:29)
3893
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:29)
3894
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:29)
3895
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:29)
3896
+ should return true for #success? when http connection has a redirect code
3897
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:44)
3898
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:44)
3899
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:44)
3900
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:44)
3901
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:44)
3902
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:44)
3903
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:44)
3904
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:44)
3905
+ should return false for #success? when http connection has an error status code
3906
+ DEPRECATION WARNING: You passed in an :authorization option -- please use :headers => {'Authorization' => ....} instead. (called from block (3 levels) in <top (required)> at /var/go/repo/spec/models/http_fetcher_spec.rb:58)
3907
+ should raise error when http connection fails
3908
+
3909
+ Notification
3910
+ project hasn't finished building yet
3911
+ should not send out any notifications
3912
+ when build status changed is called
3913
+ should trigger build status changed mailer when a pipeline ends
3914
+ should trigger build status changed when there are hipchat credentials enabled for a project (PENDING: Temporarily disabled with xit)
3915
+ should trigger build status changed when there are campfire credentials enabled for a project (PENDING: Temporarily disabled with xit)
3916
+ should notify on new commit on hipchat if subscribed
3917
+ should notify on new commit on campfire if subscribed
3918
+ manual trigger
3919
+ should notify on hipchat if subscribed
3920
+ should notify on campfire if subscribed
3921
+ should send an email
3922
+
3923
+ PipelineCompleteNotifier
3924
+ first build
3925
+ should send a notification if a stage passes
3926
+ should send a notification if a stage fails
3927
+ should not send a notification if a pipeline doesnt complete
3928
+ subsequent builds
3929
+ should send a notification if a stage moves from passed to failed
3930
+ should send a notification if a stage moves from failed to passed
3931
+ should not send a notification if a stage moves from failed to failed
3932
+ should not send a notification if a stage moves from passed to passed
3933
+ should not send a notification when the stage is manually triggerable
3934
+
3935
+ PipelineTrigger
3936
+ #execute_on_head
3937
+ should create a post commit notification having last commit in default branch
3938
+ #execute
3939
+ should create a post commit notification having last commit in default branch and integration branch for integrated branch build
3940
+
3941
+ ProjectBuildPlan
3942
+ not allow a build plan with no stages
3943
+ should raise error if no pipeline label is provided
3944
+ should not create a project if the build allowance repository limit has been exceeded
3945
+ #editable_by?
3946
+ should answer true only if the user is a collaborator on the project
3947
+ #append_stage
3948
+ should append stage at the end for a build plan with existing stages
3949
+ #to_gnocci
3950
+ should generate valid gnocci config json from plan with no deployments configured for non integration builds
3951
+ should generate valid gnocci config json from plan with no deployments configured for integration builds
3952
+ to_xml
3953
+ should generate valid go config xml for plan with no deployments configured
3954
+ should generate dependent pipelines when integration branch is specified
3955
+ should create JAVA_HOME environment variable if the language is java
3956
+ should create DATABASE_URL environment variable if and a database is selected and if its not rails/ruby project
3957
+ should create PATH environment variable if the language is Java and should also have a default ruby on the PATH
3958
+ should prepend the PATH environment variable if the user provides one
3959
+ should only include stages marked for integration
3960
+ behaves like BuildPlanSharedExamples
3961
+ #add_new_custom_stage
3962
+ should build a new stage with default tasks when the language is ruby
3963
+ should build a new stage with no tasks when the language is java
3964
+ #database_url_environment_variable
3965
+ should generate a valid database url
3966
+ change stage order
3967
+ should allow changing order of existing stages
3968
+ should raise an exception when reordering results in the first stage being a manual stage
3969
+ should not an exception when reordering does not result in the first stage being a manual stage
3970
+ should raise an exception if reordering of stages causes a manual stage to be part of integration
3971
+ #destroy_stage
3972
+ should destroy specified stage from the build plan and return true on success
3973
+ should not allow destroying the first automatic stage if the stage following it is manual
3974
+ should not destroy a stage if total stages == 1
3975
+ #self_clone
3976
+ should create a ProjectBuildPlan with the same git_material, container os, stages and environment_variable but different branch_name
3977
+ should set integration branch if user passes in a integration branch name
3978
+ should use the last automatic before manual if none is provided in the upto_stage_in_integration_build
3979
+ should collect all configurable stages for clone if there is no upto_stage_in_clone_build passed
3980
+ should only collect configurable stages upto_stage_in_clone_build
3981
+ should mark stages for integration when upto_stage_in_integration_build is passed
3982
+ should clone the build plan without heroku deployment stages
3983
+ integration builds
3984
+ should mark a stage as part_of_integration_build if a stage which is not part_of_integration_build is moved before the first and only integration stage
3985
+ should mark a stage as part_of_integration_build if a stage which is not part_of_integration_build is moved between integration stages
3986
+ validations
3987
+ should validate database type
3988
+ #ubuntu?
3989
+ should be true if container_os is Ubuntu
3990
+ should be false if container_os is not Ubuntu
3991
+ #create_project_for_branch
3992
+ should create a ProjectBuildPlan clone
3993
+ should create a project with the supplied branch
3994
+ should not create a new project for the same branch
3995
+ integrated branch builds
3996
+ should create a project with integrated branch build
3997
+
3998
+ Project
3999
+ a project should be generated with an api token
4000
+ should add the creator as a collaborator
4001
+ should create message for all users to switch to list view
4002
+ should not create message for user who have display preference set
4003
+ should return null last_triggered_default_pipeline if there are no pipelines
4004
+ should return null last_triggered_default_pipeline if there is exactly one scheduled pipeline but none of it has run
4005
+ #last_triggered_default_pipeline should return the last completed pipeline if no other pipeline is running
4006
+ last_triggered_default_pipeline should return the last pipeline with a completed stage when there are other scheduled pipelines
4007
+ #last_triggered_default_pipeline should return currently running pipeline if there is one
4008
+ should return last commit time
4009
+ should return nil when no commit data is available
4010
+ #clone_exists?
4011
+ should return true if a project exists on the same repository
4012
+ should return false if a project does not exist on the same repository
4013
+ build requests
4014
+ return all build requests belonging to that project
4015
+ should destroy all post commit notifications when the project is destroyed
4016
+ should destroy all build requests when the project is destroyed
4017
+ rejected build request statistic
4018
+ should be generated upon project creation
4019
+ should be destroyed upon project deletion
4020
+ #destroy
4021
+ should destroy the build plan when the project is deleted
4022
+ should destroy the github repository if it is the last project
4023
+ should nominate a new master project when a master project is deleted and there are other projects
4024
+ should not fail when a master project is deleted and there are no other projects on the repository
4025
+ should not change the master project when a non-master project is deleted
4026
+ validation
4027
+ should not allow a pause reason more than 150 character
4028
+ should not create a new project for the same branch
4029
+ should not allow creation multiple master projects within github repository
4030
+ DetectionStatusComesBackFromWorker
4031
+ should create a pipeline with as many stages as detected, each with as many pending jobs
4032
+ should create a commit on the pipeline which will be for the detected sha
4033
+ hipchat notification
4034
+ should be deleted when the project is destroyed
4035
+ campfire notifications
4036
+ should be deleted when the project is destroyed
4037
+ job lifecycle notifications
4038
+ job start
4039
+ for a project with no history - should set the pipeline counter to 1 for first pipeline
4040
+ for a project with history - should set the pipeline counter to next available pipeline counter
4041
+ should mark the project as building
4042
+ should mark the stage corrsponding to the job as being current
4043
+ if the pipeline, stage and job already exist (in the event the stage is re-triggered inside the go-server), update the job
4044
+ should set current build_request state to 'build_in_progress' when job_start is invoked
4045
+ should clear the provisioning_errors when job_start is invoked
4046
+ should update the currently running stage
4047
+ should update job start time
4048
+ job end
4049
+ http callbacks
4050
+ should notify the job's status on http if callback configured
4051
+ integrated build
4052
+ pipeline with a single stage
4053
+ should not toggle the current build request's build_in_progress flag when the parent pipeline ends (unless it has failed)
4054
+ should toggle the current build request to change its state to build_complete when the parent pipeline fails
4055
+ should toggle the current build request to change its state to build_complete when the parent pipeline is cancelled
4056
+ should toggle the current build request to change its state to build_complete when the dependent pipeline passes
4057
+ should toggle the current build request to change its state to build_complete when the dependent pipeline fails
4058
+ should toggle the current build request to change its state to build_complete when the dependent pipeline is cancelled
4059
+ pipeline with multiple stages
4060
+ should not change the build status to build complete when the parent pipeline ends (unless it has failed)
4061
+ should not toggle the project's pipeline ended flag to false when the first automatic stage passes and it is waiting for the next automatic stage to run
4062
+ should toggle the current build request to change its state to build_complete when the parent pipeline fails
4063
+ should toggle the current build request to change its state to build_complete when the dependent pipeline passes
4064
+ should toggle the current build request to change its state to build_complete when the dependent pipeline fails
4065
+ should toggle the current build request to change its state to build_complete when the dependent pipeline is cancelled
4066
+ pipeline config with 1 stage (units)
4067
+ should mark the project as no longer building
4068
+ should mark the pipeline as no longer running when all stages finish successfully
4069
+ should mark the pipeline as no longer running when any stage fails
4070
+ should mark the stage corrsponding to the job as not being current
4071
+ should save the build result
4072
+ should update the corresponding job
4073
+ should remove job start time when a job ends
4074
+ pipeline config with 1 stage (units) and a single job in that stage
4075
+ should mark pipeline as ended if the last stage has Passed
4076
+ should mark pipeline as ended if 1st stage(Units) has Failed
4077
+ should mark pipeline as ended if 1st stage(Units) is Cancelled
4078
+ pipeline config with 1 stage (units) and multiple jobs in that stage
4079
+ should not mark the pipeline as ended if the stage hasn't finished yet
4080
+ pipeline config with 3 stages (units, functionals, deploy)
4081
+ should be ended if only when all three stages have finished
4082
+ should be ended upon failure of any stage
4083
+ hung jobs
4084
+ job is hung if job_start_time is more than 10 minutes ago
4085
+ job is not hung is job start time is not set
4086
+ job is not hung is job start time was within last 10 minutes
4087
+ clone
4088
+ should clone the project with the same build_plan, collaborators and notification channels
4089
+ rerun last revision
4090
+ should create a post commit notification with the right revision
4091
+ should not create a post commit notification when the last build revision is nil
4092
+ should create a post commit notification with the integration head sha for an integrated branch build
4093
+ http callback
4094
+ should be destroyed when a project is destroyed
4095
+ integrated branch build
4096
+ should tell if the project is not an integrated branch build
4097
+ should tell if the project is an integrated branch build
4098
+ pipeline structure creation
4099
+ should create a single pipeline instance with the right commit revision for a given build plan without integrated builds
4100
+ should create two pipeline instances with the correct commit revisions and types for a given build plan with integrated builds
4101
+ #users_to_notify
4102
+ should return the list of project users ordered by email who have opted to receive email
4103
+
4104
+ RegistrantObserver
4105
+ after_create
4106
+ should thank the registrant only if registration is enabled
4107
+ should not send 'thank you' email to registrant when registration is disabled
4108
+ should sync the registrant's information to Marketo
4109
+ thank
4110
+ should invoke RegistrantMailer#thank_you with the correct params
4111
+
4112
+ Registrant
4113
+ should not be created without an email address
4114
+ should downcase the email before creating the registrant
4115
+ should not create a duplicate record
4116
+ should not delete associated authorized user when destroyed
4117
+ should consider newly created registrant as uninvited
4118
+ should consider invited user who is not authorized as invited but not joined
4119
+ should consider an authorized user as joined
4120
+ #invite
4121
+ should generate an invite code
4122
+ should send an invitation mail
4123
+ sync_to_marketo
4124
+ should enque the RegistrantMarketoSyncJob with the right params
4125
+ #authorize
4126
+ should create an authorized user if one doesn't exist already
4127
+ should not create an authorized user if one already exists
4128
+ should delete the invite code
4129
+ should mark the registrant as joined
4130
+
4131
+ RejectedBuild
4132
+ #because_vz_host_capacity
4133
+ should increment vz_host_capacity by 1
4134
+ #because_paused
4135
+ should increment paused by 1
4136
+ #because_running
4137
+ should increment running by 1
4138
+ #because_build_plan_over_capacity
4139
+ should increment build_plan_capacity by 1
4140
+
4141
+ SshKey
4142
+ should generate a keypair when creating an ssh key
4143
+ should only store the key-data and not comments and type for public key
4144
+ can be owned by deploy key
4145
+ can be owned by heroku credentials
4146
+ should not not allow writing any attributes
4147
+ should return the fingerprint of the key
4148
+
4149
+ Subscription
4150
+ #update
4151
+ should send the correct params to the payments API
4152
+ should return true and update the build allowance if the subscription is updated in the payment API
4153
+ should return false if the subscription update fails with a bad status code
4154
+ should return false if connection to the subscription API fails
4155
+ #subscribe
4156
+ should send the correct params to the payments API
4157
+ should return true and update the build allowance if the subscription is created in the payment API
4158
+ should return false if the subscription creation fails with a bad status code
4159
+ should return false if connection to the subscription API fails
4160
+
4161
+ TemplateBuildPlan
4162
+ should have a validation error when creating multiple template build plans for the same repository
4163
+ #detection_errored? should return true when #github_connection_error! is invoked
4164
+ should not update the ruby version if none specified in the context
4165
+ should not update the java version if none specified in the context
4166
+ should not create a new project if the build allowance's repository_count has been exceeded
4167
+ should not create a new project if an build allowance has expired
4168
+ #editable_by?
4169
+ should answer true if the for the creator of the repository
4170
+ #append_stage
4171
+ should append stage at the end for an empty build plan
4172
+ should append stage at the end for a build plan with existing stages
4173
+ should not allow appending a manual stage to an empty build plan
4174
+ behaves like BuildPlanSharedExamples
4175
+ #add_new_custom_stage
4176
+ should build a new stage with default tasks when the language is ruby
4177
+ should build a new stage with no tasks when the language is java
4178
+ #database_url_environment_variable
4179
+ should generate a valid database url
4180
+ change stage order
4181
+ should allow changing order of existing stages
4182
+ should raise an exception when reordering results in the first stage being a manual stage
4183
+ should not an exception when reordering does not result in the first stage being a manual stage
4184
+ should raise an exception if reordering of stages causes a manual stage to be part of integration
4185
+ #destroy_stage
4186
+ should destroy specified stage from the build plan and return true on success
4187
+ should not allow destroying the first automatic stage if the stage following it is manual
4188
+ should not destroy a stage if total stages == 1
4189
+ #self_clone
4190
+ should create a ProjectBuildPlan with the same git_material, container os, stages and environment_variable but different branch_name
4191
+ should set integration branch if user passes in a integration branch name
4192
+ should use the last automatic before manual if none is provided in the upto_stage_in_integration_build
4193
+ should collect all configurable stages for clone if there is no upto_stage_in_clone_build passed
4194
+ should only collect configurable stages upto_stage_in_clone_build
4195
+ should mark stages for integration when upto_stage_in_integration_build is passed
4196
+ should clone the build plan without heroku deployment stages
4197
+ integration builds
4198
+ should mark a stage as part_of_integration_build if a stage which is not part_of_integration_build is moved before the first and only integration stage
4199
+ should mark a stage as part_of_integration_build if a stage which is not part_of_integration_build is moved between integration stages
4200
+ validations
4201
+ should validate database type
4202
+ #ubuntu?
4203
+ should be true if container_os is Ubuntu
4204
+ should be false if container_os is not Ubuntu
4205
+ #create_project_for_branch
4206
+ should create a ProjectBuildPlan clone
4207
+ should create a project with the supplied branch
4208
+ should not create a new project for the same branch
4209
+ integrated branch builds
4210
+ should create a project with integrated branch build
4211
+
4212
+ TransientGithubRepository
4213
+ should generate valid github repo clone url
4214
+
4215
+ User
4216
+ should be generated with an api token
4217
+ should create a default build allowance when the user is created
4218
+ should tell if the user has authenticated via Heroku
4219
+ #with_login_matching
4220
+ should find users matching a keyword
4221
+ #find_or_create_via_oauth
4222
+ should create a new user if one with the same login doesn't already exist
4223
+ should update an existing user's profile name and access token but not the email
4224
+ github repositories
4225
+ repository
4226
+ should contain a wrapped version of every github repository passed into it
4227
+ should understand the owner of a repository
4228
+ should understand forks created by someone other than the repos member
4229
+ should understand a repository that a user collaborates on but does not administer
4230
+ #all_remote_github_repositories
4231
+ should return all the repos the user has access to
4232
+ #all_unadded_projects for admin users
4233
+ should list all branches and clones
4234
+ should NOT list projects that the user has already added
4235
+ should contain all unadded projects from the user repo list which have been already been added by someone else
4236
+ should NOT list projects the user doesn't have access to
4237
+ should return nothing if there is an error contacting github
4238
+ #all_unadded_projects for non-admin and readonly users
4239
+ all_remote_github_repositories should should list all branches and clones
4240
+ all_unadded_projects should return red-snappers/stomata if the project already exists in the db
4241
+ #github_collaborator
4242
+ for organization owned repository
4243
+ should return true for non-admin and readonly collaborators
4244
+ should return true for admins
4245
+ should return false for a non collaborator
4246
+ users owned repo
4247
+ should return true for non-admin collaborators
4248
+ should return true for admins
4249
+ should return false for a non collaborator
4250
+ addable project
4251
+ should NOT list other people's forks as available for provisioning unless you administer them
4252
+ should list all projects which the user administers & are not other people's forks as available for provisioning
4253
+ should list provisioned projects if user is NOT a collaborator on them
4254
+ should NOT list provisioned projects if user is already a collaborator on them
4255
+ should report a project as addable if it is provisioned, even if it is neither owned nor administered by user
4256
+ login name
4257
+ should be case sensitive unique
4258
+ should save login_name with correct case
4259
+ #with_login_name
4260
+ should find user with case insensitive match
4261
+ hipchat credentials
4262
+ should have one
4263
+ should be removed when a user is deleted
4264
+ campfire credentials
4265
+ should have one
4266
+ should be removed when a user is deleted
4267
+
4268
+ WorkQueue
4269
+ should drop all pending build requests for halted repositories
4270
+ should skip paused projects
4271
+ deployment triggers
4272
+ should be scheduled
4273
+ multiple work queue items
4274
+ work queue items for same user
4275
+ user with one simultaneous build plan
4276
+ should only perform one build at a time
4277
+ should update the rejected build status for a project's build which was rejected due to build plan being over capacity
4278
+ user with two simultaneous build plan
4279
+ should process 2 build requests at a time (assuming they belong to different projects)
4280
+ should process 1 build if subsequent build requests belong to same project
4281
+ work queue items for different users
4282
+ 2 users with single simultaneous build plan for both
4283
+ should process 1 build each when both users have multiple build requests
4284
+ should process 1 build for a user when all build requests belong to that user
4285
+ for any work queue items belonging to any user
4286
+ should not schedule worker if maintenance mode is activated
4287
+ should reject build requests if the vz host is over capacity
4288
+
4289
+ WorkerStatus
4290
+ should validate a default status
4291
+ should not validate a status with missing translation keys
4292
+ should return has_failure? to be false if the detection status doesn't return any error message
4293
+ should return has_failure? to be true if the detection status returns an error message
4294
+ should not return any failure message if the detection status doesn't return any error message
4295
+ should return appropriate non-admin failure message if the detection status has an error message
4296
+ success messages
4297
+ should return all success messages
4298
+ should not return any messages having the not_found keys
4299
+ should not return any messages for the gemfile, rails, rubygems, zeroci_yaml_validator key
4300
+ should not return any messages having rspec.detected or test_unit.detected keys
4301
+
4302
+ FirstJobCompleteEmailObserver
4303
+ should send email notification when the first job completes
4304
+ should not send email notification if job is not the first job in project
4305
+
4306
+ Github::API::DeployKeyObserver
4307
+ should upload deploy key to GitHub on create
4308
+ should delete deploy key from GitHub on destroy
4309
+ should raise error on deploy key if upload of key to GitHub fails
4310
+ should raise error when deploy key deletion from GitHub fails
4311
+
4312
+ GoProvisioningObserver
4313
+ should notify ScheduleFirstBuildJob after creating a project
4314
+ should notify DeleteProjectJob after project is deleted
4315
+
4316
+ ProjectProvisioningEmailObserver
4317
+ should not send email notification only when Setting#send_admin_email is '0'
4318
+ Setting send_admin_email is '1'
4319
+ should send email notification only when Setting#send_admin_email is '1'
4320
+ should send email notification when the project has provisioning errors
4321
+ should not send an email notification when the Project#provisioning_errors is not updated
4322
+ should not send email notification when the project provisioning errors is not changed
4323
+ should not send email notification when there are no project provisioning errors
4324
+
4325
+ Github::API::WebHookObserver
4326
+ should register web hook to GitHub on create
4327
+ should delete webhook from GitHub on destroy
4328
+ should raise error when registration of post commit hook to GitHub fails
4329
+ should raise error when web hook removal from GitHub fails
4330
+
4331
+ Pending:
4332
+ MixpanelTrackingJob job creation should track manual triggering
4333
+ # Temporarily disabled with xit
4334
+ # ./spec/jobs/mixpanel_tracking_job_spec.rb:34
4335
+ Notification when build status changed is called should trigger build status changed when there are hipchat credentials enabled for a project
4336
+ # Temporarily disabled with xit
4337
+ # ./spec/models/notification_spec.rb:52
4338
+ Notification when build status changed is called should trigger build status changed when there are campfire credentials enabled for a project
4339
+ # Temporarily disabled with xit
4340
+ # ./spec/models/notification_spec.rb:60
4341
+
4342
+ Failures:
4343
+
4344
+ 1) Admin::TimesController should be ok
4345
+ Failure/Error: response.should be_ok
4346
+ expected ok? to return true, got false
4347
+ # ./spec/controllers/admin/times_controller_spec.rb:6:in `block (2 levels) in <top (required)>'
4348
+
4349
+ Finished in 4 minutes 43.2 seconds
4350
+ 1460 examples, 1 failure, 3 pending
4351
+
4352
+ Failed examples:
4353
+
4354
+ rspec ./spec/controllers/admin/times_controller_spec.rb:4 # Admin::TimesController should be ok
4355
+ Command bundle exec rspec --format documentation spec/models spec/jobs spec/observers spec/caches spec/helpers spec/mailers spec/controllers spec/integration failed with status 1. Took 4 minutes 52.3 seconds.
4356
+ Saving console log for later