shipit-engine 0.34.0 → 0.36.0

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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -7
  3. data/app/assets/stylesheets/_pages/_deploy.scss +2 -1
  4. data/app/controllers/concerns/shipit/authentication.rb +5 -1
  5. data/app/controllers/shipit/api/base_controller.rb +13 -1
  6. data/app/controllers/shipit/api/rollbacks_controller.rb +1 -1
  7. data/app/controllers/shipit/api/stacks_controller.rb +8 -2
  8. data/app/controllers/shipit/api/tasks_controller.rb +19 -2
  9. data/app/helpers/shipit/stacks_helper.rb +11 -0
  10. data/app/models/concerns/shipit/deferred_touch.rb +3 -3
  11. data/app/models/shipit/anonymous_user.rb +4 -0
  12. data/app/models/shipit/commit_checks.rb +3 -3
  13. data/app/models/shipit/rollback.rb +5 -0
  14. data/app/models/shipit/task.rb +3 -3
  15. data/app/models/shipit/user.rb +23 -9
  16. data/app/serializers/shipit/stack_serializer.rb +1 -1
  17. data/app/views/shipit/deploys/_deploy.html.erb +1 -5
  18. data/app/views/shipit/stacks/_banners.html.erb +1 -1
  19. data/app/views/shipit/stacks/_settings_form.erb +55 -0
  20. data/app/views/shipit/stacks/settings.html.erb +1 -55
  21. data/app/views/shipit/stacks/show.html.erb +1 -1
  22. data/config/locales/en.yml +1 -1
  23. data/config/routes.rb +4 -0
  24. data/db/migrate/20210504200438_add_github_updated_at_to_check_runs.rb +1 -1
  25. data/db/migrate/20210823075617_change_check_runs_github_updated_at_default.rb +5 -0
  26. data/db/migrate/20211103154121_increase_github_team_slug_size.rb +5 -0
  27. data/lib/shipit/commands.rb +12 -6
  28. data/lib/shipit/engine.rb +13 -5
  29. data/lib/shipit/stack_commands.rb +3 -3
  30. data/lib/shipit/task_commands.rb +1 -1
  31. data/lib/shipit/version.rb +1 -1
  32. data/lib/shipit.rb +5 -2
  33. data/test/controllers/api/hooks_controller_test.rb +1 -1
  34. data/test/controllers/api/rollback_controller_test.rb +1 -0
  35. data/test/controllers/api/stacks_controller_test.rb +25 -0
  36. data/test/controllers/api/tasks_controller_test.rb +56 -0
  37. data/test/controllers/stacks_controller_test.rb +11 -0
  38. data/test/dummy/config/application.rb +1 -2
  39. data/test/dummy/db/schema.rb +2 -2
  40. data/test/fixtures/shipit/check_runs.yml +3 -3
  41. data/test/fixtures/shipit/commits.yml +101 -101
  42. data/test/fixtures/shipit/deliveries.yml +1 -1
  43. data/test/fixtures/shipit/merge_requests.yml +19 -19
  44. data/test/fixtures/shipit/stacks.yml +28 -28
  45. data/test/fixtures/shipit/statuses.yml +16 -16
  46. data/test/fixtures/shipit/tasks.yml +65 -65
  47. data/test/fixtures/shipit/users.yml +2 -5
  48. data/test/models/commits_test.rb +6 -6
  49. data/test/models/deploys_test.rb +22 -0
  50. data/test/models/tasks_test.rb +2 -2
  51. data/test/models/team_test.rb +21 -2
  52. data/test/models/users_test.rb +29 -9
  53. data/test/unit/deploy_commands_test.rb +7 -7
  54. metadata +170 -167
@@ -93,7 +93,7 @@ module Shipit
93
93
  task = shipit_tasks(:shipit)
94
94
  task.update(
95
95
  rolled_up: false,
96
- created_at: (60 + 1).minutes.ago.to_s(:db),
96
+ created_at: (60 + 1).minutes.ago.to_formatted_s(:db),
97
97
  status: "success",
98
98
  )
99
99
 
@@ -104,7 +104,7 @@ module Shipit
104
104
  task = shipit_tasks(:shipit)
105
105
  task.update(
106
106
  rolled_up: false,
107
- created_at: (60 + 1).minutes.ago.to_s(:db),
107
+ created_at: (60 + 1).minutes.ago.to_formatted_s(:db),
108
108
  status: "error",
109
109
  )
110
110
 
@@ -29,6 +29,25 @@ module Shipit
29
29
  end
30
30
  end
31
31
 
32
+ test ".find_or_create_by_handle accepts large slugs" do
33
+ limit = Shipit::Team.columns_hash['slug'].limit
34
+ skip unless limit
35
+
36
+ slug = 'a' * 255
37
+ team = new_team(slug: slug)
38
+
39
+ response = stub(rels: {}, data: [team])
40
+ Shipit.github.api.expects(:org_teams).with('shopify', per_page: 100).returns(response.data)
41
+ Shipit.github.api.expects(:last_response).returns(response)
42
+
43
+ assert_difference -> { Team.count }, 1 do
44
+ Team.find_or_create_by_handle("Shopify/#{slug}")
45
+ end
46
+
47
+ team_record = Team.find_by(name: team.name)
48
+ assert_equal limit, team_record.slug.bytesize
49
+ end
50
+
32
51
  private
33
52
 
34
53
  def members_resource
@@ -46,11 +65,11 @@ module Shipit
46
65
  )
47
66
  end
48
67
 
49
- def new_team
68
+ def new_team(slug: 'new-team')
50
69
  stub(
51
70
  id: 24,
52
71
  name: 'New Team',
53
- slug: 'new-team',
72
+ slug: slug,
54
73
  url: 'https://example.com',
55
74
  description: 'The Best one',
56
75
  organization: 'shopify',
@@ -216,19 +216,24 @@ module Shipit
216
216
  end
217
217
 
218
218
  test "users with legacy encrypted access token get their token reset automatically" do
219
- # See: https://github.com/attr-encrypted/attr_encrypted/blob/53266da546a21afaa1f1b93a461b912f4ccf363b/README.md#upgrading-from-attr_encrypted-v2x-to-v3x
220
219
  legacy = shipit_users(:legacy)
221
- assert_not_nil legacy.encrypted_github_access_token
222
- assert_not_nil legacy.encrypted_github_access_token_iv
223
-
224
220
  assert_nil legacy.github_access_token
225
- legacy.reload
226
- assert_nil legacy.encrypted_github_access_token
227
- assert_nil legacy.encrypted_github_access_token_iv
228
221
 
229
- legacy.update!(github_access_token: 't0k3n')
222
+ legacy.update!(github_access_token: 'ghu_t0k3n')
223
+ assert_equal 'ghu_t0k3n', legacy.github_access_token
224
+ end
225
+
226
+ test "users with legacy encrypted access token can be updated" do
227
+ legacy = shipit_users(:legacy)
228
+ legacy.update!(github_access_token: 'ghu_t0k3n')
230
229
  legacy.reload
231
- assert_equal 't0k3n', legacy.github_access_token
230
+ assert_equal 'ghu_t0k3n', legacy.github_access_token
231
+ end
232
+
233
+ test "users with legacy encrypted access token can have unrelated attributes updated" do
234
+ legacy = shipit_users(:legacy)
235
+ legacy.update!(name: 'Test')
236
+ assert_equal 'Test', legacy.name
232
237
  end
233
238
 
234
239
  test "users are always logged_in?" do
@@ -274,6 +279,21 @@ module Shipit
274
279
  assert_equal user, found_user
275
280
  end
276
281
 
282
+ test "requires_fresh_login? defaults to false" do
283
+ u = User.new
284
+ refute_predicate u, :requires_fresh_login?
285
+ end
286
+
287
+ test "requires_fresh_login? is true for users with legacy github_access_token" do
288
+ @user.update!(github_access_token: 'some_legacy_value')
289
+ assert_predicate @user, :requires_fresh_login?
290
+ end
291
+
292
+ test "requires_fresh_login? is false for users with a new format github_access_token" do
293
+ @user.update!(github_access_token: 'ghu_tok3n')
294
+ refute_predicate @user, :requires_fresh_login?
295
+ end
296
+
277
297
  private
278
298
 
279
299
  def fetch_user
@@ -27,7 +27,7 @@ module Shipit
27
27
 
28
28
  command = @commands.fetch
29
29
 
30
- assert_equal %w(git fetch origin --tags master), command.args
30
+ assert_equal %w(git fetch origin --quiet --tags master), command.args
31
31
  end
32
32
 
33
33
  test "#fetch calls git fetch in git_path directory if repository cache already exist" do
@@ -44,7 +44,7 @@ module Shipit
44
44
 
45
45
  command = @commands.fetch
46
46
 
47
- expected = %W(git clone --single-branch --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
47
+ expected = %W(git clone --quiet --single-branch --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
48
48
  assert_equal expected, command.args.map(&:to_s)
49
49
  end
50
50
 
@@ -54,7 +54,7 @@ module Shipit
54
54
 
55
55
  command = @commands.fetch
56
56
 
57
- expected = %W(git clone --single-branch --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
57
+ expected = %W(git clone --quiet --single-branch --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
58
58
  assert_equal expected, command.args
59
59
  end
60
60
 
@@ -67,7 +67,7 @@ module Shipit
67
67
 
68
68
  command = @commands.fetch
69
69
 
70
- expected = %W(git clone --single-branch --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
70
+ expected = %W(git clone --quiet --single-branch --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
71
71
  assert_equal expected, command.args
72
72
  end
73
73
 
@@ -81,7 +81,7 @@ module Shipit
81
81
 
82
82
  command = @commands.fetch
83
83
 
84
- expected = %W(git clone --single-branch --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
84
+ expected = %W(git clone --quiet --single-branch --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
85
85
  assert_equal expected, command.args
86
86
  end
87
87
 
@@ -91,7 +91,7 @@ module Shipit
91
91
 
92
92
  command = @commands.fetch
93
93
 
94
- expected = %W(git clone --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
94
+ expected = %W(git clone --quiet --recursive --branch master #{@stack.repo_git_url} #{@stack.git_path})
95
95
  assert_equal expected, command.args.map(&:to_s)
96
96
  end
97
97
 
@@ -134,7 +134,7 @@ module Shipit
134
134
 
135
135
  test "#checkout checks out the deployed commit" do
136
136
  command = @commands.checkout(@deploy.until_commit)
137
- assert_equal ['git', 'checkout', @deploy.until_commit.sha], command.args
137
+ assert_equal ['git', '-c', 'advice.detachedHead=false', 'checkout', @deploy.until_commit.sha], command.args
138
138
  end
139
139
 
140
140
  test "#checkout checks out the deployed commit from the working directory" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipit-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-16 00:00:00.000000000 Z
11
+ date: 2022-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 6.1.0
215
+ version: 7.0.0
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 6.1.0
222
+ version: 7.0.0
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: rails-timeago
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -676,6 +676,7 @@ files:
676
676
  - app/views/shipit/stacks/_banners.html.erb
677
677
  - app/views/shipit/stacks/_header.html.erb
678
678
  - app/views/shipit/stacks/_links.html.erb
679
+ - app/views/shipit/stacks/_settings_form.erb
679
680
  - app/views/shipit/stacks/_stack.html.erb
680
681
  - app/views/shipit/stacks/all_tasks.html.erb
681
682
  - app/views/shipit/stacks/index.html.erb
@@ -768,6 +769,8 @@ files:
768
769
  - db/migrate/20201008152744_add_max_retries_to_tasks.rb
769
770
  - db/migrate/20210325194053_remove_stacks_branch_default.rb
770
771
  - db/migrate/20210504200438_add_github_updated_at_to_check_runs.rb
772
+ - db/migrate/20210823075617_change_check_runs_github_updated_at_default.rb
773
+ - db/migrate/20211103154121_increase_github_team_slug_size.rb
771
774
  - lib/shipit-engine.rb
772
775
  - lib/shipit.rb
773
776
  - lib/shipit/cast_value.rb
@@ -1040,198 +1043,198 @@ signing_key:
1040
1043
  specification_version: 4
1041
1044
  summary: Application deployment software
1042
1045
  test_files:
1043
- - test/jobs/reap_dead_tasks_job_test.rb
1044
- - test/jobs/fetch_commit_stats_job_test.rb
1045
- - test/jobs/emit_event_job_test.rb
1046
- - test/jobs/github_sync_job_test.rb
1047
- - test/jobs/unique_job_test.rb
1048
- - test/jobs/cache_deploy_spec_job_test.rb
1049
- - test/jobs/destroy_stack_job_test.rb
1050
- - test/jobs/perform_task_job_test.rb
1051
- - test/jobs/refresh_github_user_job_test.rb
1052
- - test/jobs/mark_deploy_healthy_job_test.rb
1053
- - test/jobs/purge_old_deliveries_job_test.rb
1054
- - test/jobs/process_merge_requests_job_test.rb
1055
- - test/jobs/chunk_rollup_job_test.rb
1056
- - test/jobs/destroy_repository_job_test.rb
1057
- - test/jobs/refresh_status_job_test.rb
1058
- - test/jobs/fetch_deployed_revision_job_test.rb
1059
- - test/jobs/update_github_last_deployed_ref_job_test.rb
1060
- - test/jobs/deliver_hook_job_test.rb
1061
- - test/middleware/same_site_cookie_middleware_test.rb
1062
- - test/unit/commands_test.rb
1063
1046
  - test/unit/github_url_helper_test.rb
1064
- - test/unit/shipit_test.rb
1065
- - test/unit/deploy_commands_test.rb
1066
1047
  - test/unit/shipit_deployment_checks_test.rb
1048
+ - test/unit/user_serializer_test.rb
1067
1049
  - test/unit/github_app_test.rb
1068
- - test/unit/shipit_task_execution_strategy_test.rb
1050
+ - test/unit/deploy_serializer_test.rb
1069
1051
  - test/unit/csv_serializer_test.rb
1070
- - test/unit/github_apps_test.rb
1071
- - test/unit/command_test.rb
1072
- - test/unit/anonymous_user_serializer_test.rb
1073
1052
  - test/unit/environment_variables_test.rb
1053
+ - test/unit/commands_test.rb
1054
+ - test/unit/anonymous_user_serializer_test.rb
1055
+ - test/unit/command_test.rb
1056
+ - test/unit/shipit_task_execution_strategy_test.rb
1057
+ - test/unit/shipit_test.rb
1058
+ - test/unit/github_apps_test.rb
1059
+ - test/unit/variable_definition_test.rb
1060
+ - test/unit/deploy_commands_test.rb
1061
+ - test/unit/commit_serializer_test.rb
1074
1062
  - test/unit/line_buffer_test.rb
1075
1063
  - test/unit/shipit_helper_test.rb
1076
- - test/unit/deploy_serializer_test.rb
1077
- - test/unit/variable_definition_test.rb
1078
- - test/unit/user_serializer_test.rb
1079
1064
  - test/unit/rollback_commands_test.rb
1080
- - test/unit/commit_serializer_test.rb
1081
- - test/models/commits_test.rb
1082
- - test/models/deploy_spec_test.rb
1083
- - test/models/release_statuses_test.rb
1084
- - test/models/commit_checks_test.rb
1085
- - test/models/github_hook_test.rb
1086
- - test/models/shipit/review_stack_test.rb
1087
- - test/models/shipit/webhooks/handlers_test.rb
1088
- - test/models/shipit/webhooks/handlers/pull_request/review_stack_adapter_test.rb
1089
- - test/models/shipit/webhooks/handlers/pull_request/opened_handler_test.rb
1090
- - test/models/shipit/webhooks/handlers/pull_request/assigned_handler_test.rb
1091
- - test/models/shipit/webhooks/handlers/pull_request/label_capturing_handler_test.rb
1092
- - test/models/shipit/webhooks/handlers/pull_request/unlabeled_handler_test.rb
1093
- - test/models/shipit/webhooks/handlers/pull_request/reopened_handler_test.rb
1094
- - test/models/shipit/webhooks/handlers/pull_request/labeled_handler_test.rb
1095
- - test/models/shipit/webhooks/handlers/pull_request/closed_handler_test.rb
1096
- - test/models/shipit/webhooks/handlers/pull_request/edited_handler_test.rb
1097
- - test/models/shipit/provisioning_handler_test.rb
1098
- - test/models/shipit/review_stack_provisioning_queue_test.rb
1099
- - test/models/shipit/stacks_test.rb
1100
- - test/models/shipit/provisioning_handler/unregistered_provisioning_handler_test.rb
1101
- - test/models/shipit/provisioning_handler/base_test.rb
1102
- - test/models/shipit/pull_request_test.rb
1103
- - test/models/shipit/check_run_test.rb
1104
- - test/models/shipit/repository_test.rb
1105
- - test/models/shipit/review_stack_provision_status_test.rb
1106
- - test/models/delivery_test.rb
1107
- - test/models/rollbacks_test.rb
1108
- - test/models/merge_request_test.rb
1109
- - test/models/status_test.rb
1110
- - test/models/api_client_test.rb
1111
- - test/models/commit_deployment_status_test.rb
1112
- - test/models/commit_deployment_test.rb
1113
- - test/models/hook_test.rb
1114
- - test/models/duration_test.rb
1115
- - test/models/deploy_stats_test.rb
1116
- - test/models/status/missing_test.rb
1117
- - test/models/status/group_test.rb
1118
- - test/models/membership_test.rb
1119
- - test/models/deploys_test.rb
1120
- - test/models/task_definitions_test.rb
1121
- - test/models/team_test.rb
1122
- - test/models/pull_request_assignment_test.rb
1123
- - test/models/undeployed_commits_test.rb
1124
- - test/models/users_test.rb
1125
- - test/models/tasks_test.rb
1065
+ - test/middleware/same_site_cookie_middleware_test.rb
1126
1066
  - test/test_helper.rb
1067
+ - test/serializers/shipit/pull_request_serializer_test.rb
1068
+ - test/lib/shipit/task_commands_test.rb
1069
+ - test/lib/shipit/deploy_commands_test.rb
1070
+ - test/helpers/json_helper.rb
1071
+ - test/helpers/api_helper.rb
1072
+ - test/helpers/hooks_helper.rb
1073
+ - test/helpers/links_helper.rb
1074
+ - test/helpers/fixture_aliases_helper.rb
1075
+ - test/helpers/payloads_helper.rb
1076
+ - test/helpers/queries_helper.rb
1077
+ - test/dummy/db/schema.rb
1078
+ - test/dummy/db/seeds.rb
1079
+ - test/dummy/app/assets/javascripts/application.js
1080
+ - test/dummy/app/assets/config/manifest.js
1081
+ - test/dummy/app/assets/stylesheets/application.css
1082
+ - test/dummy/app/helpers/application_helper.rb
1083
+ - test/dummy/app/controllers/application_controller.rb
1084
+ - test/dummy/app/views/layouts/application.html.erb
1085
+ - test/dummy/config.ru
1086
+ - test/dummy/public/favicon.ico
1127
1087
  - test/dummy/public/422.html
1128
1088
  - test/dummy/public/404.html
1129
- - test/dummy/public/favicon.ico
1130
1089
  - test/dummy/public/500.html
1131
- - test/dummy/Rakefile
1132
- - test/dummy/config/initializers/assets.rb
1090
+ - test/dummy/bin/rake
1091
+ - test/dummy/bin/setup
1092
+ - test/dummy/bin/bundle
1093
+ - test/dummy/bin/rails
1094
+ - test/dummy/config/boot.rb
1095
+ - test/dummy/config/database.postgresql.yml
1096
+ - test/dummy/config/database.mysql.yml
1097
+ - test/dummy/config/secrets_double_github_app.yml
1098
+ - test/dummy/config/routes.rb
1099
+ - test/dummy/config/database.yml
1100
+ - test/dummy/config/application.rb
1101
+ - test/dummy/config/environments/test.rb
1102
+ - test/dummy/config/environments/production.rb
1103
+ - test/dummy/config/environments/development.rb
1104
+ - test/dummy/config/locales/en.yml
1105
+ - test/dummy/config/initializers/cookies_serializer.rb
1106
+ - test/dummy/config/initializers/mime_types.rb
1133
1107
  - test/dummy/config/initializers/0_load_development_secrets.rb
1108
+ - test/dummy/config/initializers/session_store.rb
1134
1109
  - test/dummy/config/initializers/wrap_parameters.rb
1135
- - test/dummy/config/initializers/mime_types.rb
1136
- - test/dummy/config/initializers/inflections.rb
1137
- - test/dummy/config/initializers/cookies_serializer.rb
1138
1110
  - test/dummy/config/initializers/filter_parameter_logging.rb
1111
+ - test/dummy/config/initializers/assets.rb
1112
+ - test/dummy/config/initializers/inflections.rb
1139
1113
  - test/dummy/config/initializers/backtrace_silencers.rb
1140
- - test/dummy/config/initializers/session_store.rb
1141
- - test/dummy/config/database.yml
1142
- - test/dummy/config/environments/development.rb
1143
- - test/dummy/config/environments/production.rb
1144
- - test/dummy/config/environments/test.rb
1145
- - test/dummy/config/application.rb
1146
- - test/dummy/config/boot.rb
1147
- - test/dummy/config/database.mysql.yml
1148
- - test/dummy/config/locales/en.yml
1149
1114
  - test/dummy/config/secrets.yml
1150
1115
  - test/dummy/config/environment.rb
1151
- - test/dummy/config/database.postgresql.yml
1152
- - test/dummy/config/routes.rb
1153
- - test/dummy/config/secrets_double_github_app.yml
1154
- - test/dummy/config.ru
1155
- - test/dummy/bin/rake
1156
- - test/dummy/bin/bundle
1157
- - test/dummy/bin/rails
1158
- - test/dummy/bin/setup
1159
- - test/dummy/db/schema.rb
1160
- - test/dummy/db/seeds.rb
1161
- - test/dummy/app/views/layouts/application.html.erb
1162
- - test/dummy/app/controllers/application_controller.rb
1163
- - test/dummy/app/helpers/application_helper.rb
1164
- - test/dummy/app/assets/config/manifest.js
1165
- - test/dummy/app/assets/javascripts/application.js
1166
- - test/dummy/app/assets/stylesheets/application.css
1167
- - test/serializers/shipit/pull_request_serializer_test.rb
1168
- - test/test_command_integration.rb
1169
- - test/controllers/stacks_controller_test.rb
1170
- - test/controllers/github_authentication_controller_test.rb
1171
- - test/controllers/status_controller_test.rb
1172
- - test/controllers/api/outputs_controller_test.rb
1173
- - test/controllers/api/stacks_controller_test.rb
1174
- - test/controllers/api/release_statuses_controller_test.rb
1175
- - test/controllers/api/ccmenu_controller_test.rb
1176
- - test/controllers/api/merge_requests_controller_test.rb
1177
- - test/controllers/api/commits_controller_test.rb
1178
- - test/controllers/api/base_controller_test.rb
1116
+ - test/dummy/Rakefile
1117
+ - test/controllers/tasks_controller_test.rb
1118
+ - test/controllers/deploys_controller_test.rb
1119
+ - test/controllers/ccmenu_controller_test.rb
1179
1120
  - test/controllers/api/tasks_controller_test.rb
1180
1121
  - test/controllers/api/deploys_controller_test.rb
1181
- - test/controllers/api/hooks_controller_test.rb
1182
1122
  - test/controllers/api/locks_controller_test.rb
1183
1123
  - test/controllers/api/rollback_controller_test.rb
1184
- - test/controllers/rollbacks_controller_test.rb
1185
- - test/controllers/release_statuses_controller_test.rb
1186
- - test/controllers/ccmenu_controller_test.rb
1187
- - test/controllers/merge_requests_controller_test.rb
1188
- - test/controllers/commit_checks_controller_test.rb
1124
+ - test/controllers/api/ccmenu_controller_test.rb
1125
+ - test/controllers/api/base_controller_test.rb
1126
+ - test/controllers/api/outputs_controller_test.rb
1127
+ - test/controllers/api/hooks_controller_test.rb
1128
+ - test/controllers/api/commits_controller_test.rb
1129
+ - test/controllers/api/release_statuses_controller_test.rb
1130
+ - test/controllers/api/merge_requests_controller_test.rb
1131
+ - test/controllers/api/stacks_controller_test.rb
1132
+ - test/controllers/status_controller_test.rb
1133
+ - test/controllers/webhooks_controller_test.rb
1189
1134
  - test/controllers/commits_controller_test.rb
1190
- - test/controllers/merge_status_controller_test.rb
1191
- - test/controllers/tasks_controller_test.rb
1192
1135
  - test/controllers/api_clients_controller_test.rb
1193
- - test/controllers/deploys_controller_test.rb
1136
+ - test/controllers/release_statuses_controller_test.rb
1137
+ - test/controllers/commit_checks_controller_test.rb
1138
+ - test/controllers/merge_requests_controller_test.rb
1194
1139
  - test/controllers/repositories_controller_test.rb
1195
- - test/controllers/webhooks_controller_test.rb
1196
- - test/helpers/hooks_helper.rb
1197
- - test/helpers/api_helper.rb
1198
- - test/helpers/links_helper.rb
1199
- - test/helpers/json_helper.rb
1200
- - test/helpers/payloads_helper.rb
1201
- - test/helpers/queries_helper.rb
1202
- - test/helpers/fixture_aliases_helper.rb
1203
- - test/fixtures/shipit/deliveries.yml
1204
- - test/fixtures/shipit/stacks.yml
1205
- - test/fixtures/shipit/users.yml
1140
+ - test/controllers/merge_status_controller_test.rb
1141
+ - test/controllers/stacks_controller_test.rb
1142
+ - test/controllers/rollbacks_controller_test.rb
1143
+ - test/controllers/github_authentication_controller_test.rb
1144
+ - test/fixtures/timeout
1145
+ - test/fixtures/payloads/check_suite_master.json
1146
+ - test/fixtures/payloads/pull_request_reopened.json
1147
+ - test/fixtures/payloads/push_not_master.json
1148
+ - test/fixtures/payloads/pull_request_with_no_repo.json
1149
+ - test/fixtures/payloads/status_master.json
1150
+ - test/fixtures/payloads/pull_request_closed.json
1151
+ - test/fixtures/payloads/pull_request_unlabeled.json
1152
+ - test/fixtures/payloads/pull_request_assigned.json
1153
+ - test/fixtures/payloads/push_master.json
1154
+ - test/fixtures/payloads/pull_request_opened.json
1155
+ - test/fixtures/payloads/pull_request_labeled.json
1156
+ - test/fixtures/payloads/provision_disabled_pull_request.json
1157
+ - test/fixtures/payloads/invalid_pull_request.json
1158
+ - test/fixtures/shipit/pull_request_assignments.yml
1159
+ - test/fixtures/shipit/commit_deployments.yml
1206
1160
  - test/fixtures/shipit/check_runs.yml
1207
- - test/fixtures/shipit/teams.yml
1208
- - test/fixtures/shipit/memberships.yml
1161
+ - test/fixtures/shipit/hooks.yml
1209
1162
  - test/fixtures/shipit/release_statuses.yml
1163
+ - test/fixtures/shipit/teams.yml
1164
+ - test/fixtures/shipit/users.yml
1210
1165
  - test/fixtures/shipit/repositories.yml
1166
+ - test/fixtures/shipit/commit_deployment_statuses.yml
1167
+ - test/fixtures/shipit/stacks.yml
1211
1168
  - test/fixtures/shipit/commits.yml
1212
- - test/fixtures/shipit/pull_request_assignments.yml
1213
- - test/fixtures/shipit/tasks.yml
1214
1169
  - test/fixtures/shipit/pull_requests.yml
1170
+ - test/fixtures/shipit/tasks.yml
1171
+ - test/fixtures/shipit/github_hooks.yml
1172
+ - test/fixtures/shipit/memberships.yml
1173
+ - test/fixtures/shipit/merge_requests.yml
1215
1174
  - test/fixtures/shipit/statuses.yml
1216
1175
  - test/fixtures/shipit/api_clients.yml
1217
- - test/fixtures/shipit/merge_requests.yml
1218
- - test/fixtures/shipit/commit_deployment_statuses.yml
1219
- - test/fixtures/shipit/hooks.yml
1220
- - test/fixtures/shipit/github_hooks.yml
1221
- - test/fixtures/shipit/commit_deployments.yml
1222
- - test/fixtures/payloads/pull_request_with_no_repo.json
1223
- - test/fixtures/payloads/status_master.json
1224
- - test/fixtures/payloads/pull_request_assigned.json
1225
- - test/fixtures/payloads/provision_disabled_pull_request.json
1226
- - test/fixtures/payloads/check_suite_master.json
1227
- - test/fixtures/payloads/pull_request_unlabeled.json
1228
- - test/fixtures/payloads/pull_request_closed.json
1229
- - test/fixtures/payloads/pull_request_reopened.json
1230
- - test/fixtures/payloads/pull_request_opened.json
1231
- - test/fixtures/payloads/push_master.json
1232
- - test/fixtures/payloads/pull_request_labeled.json
1233
- - test/fixtures/payloads/push_not_master.json
1234
- - test/fixtures/payloads/invalid_pull_request.json
1235
- - test/fixtures/timeout
1236
- - test/lib/shipit/deploy_commands_test.rb
1237
- - test/lib/shipit/task_commands_test.rb
1176
+ - test/fixtures/shipit/deliveries.yml
1177
+ - test/models/pull_request_assignment_test.rb
1178
+ - test/models/status_test.rb
1179
+ - test/models/github_hook_test.rb
1180
+ - test/models/commit_deployment_test.rb
1181
+ - test/models/delivery_test.rb
1182
+ - test/models/hook_test.rb
1183
+ - test/models/task_definitions_test.rb
1184
+ - test/models/commits_test.rb
1185
+ - test/models/merge_request_test.rb
1186
+ - test/models/tasks_test.rb
1187
+ - test/models/commit_deployment_status_test.rb
1188
+ - test/models/deploy_stats_test.rb
1189
+ - test/models/deploys_test.rb
1190
+ - test/models/team_test.rb
1191
+ - test/models/deploy_spec_test.rb
1192
+ - test/models/membership_test.rb
1193
+ - test/models/users_test.rb
1194
+ - test/models/rollbacks_test.rb
1195
+ - test/models/release_statuses_test.rb
1196
+ - test/models/commit_checks_test.rb
1197
+ - test/models/status/missing_test.rb
1198
+ - test/models/status/group_test.rb
1199
+ - test/models/shipit/repository_test.rb
1200
+ - test/models/shipit/stacks_test.rb
1201
+ - test/models/shipit/webhooks/handlers/pull_request/label_capturing_handler_test.rb
1202
+ - test/models/shipit/webhooks/handlers/pull_request/labeled_handler_test.rb
1203
+ - test/models/shipit/webhooks/handlers/pull_request/opened_handler_test.rb
1204
+ - test/models/shipit/webhooks/handlers/pull_request/edited_handler_test.rb
1205
+ - test/models/shipit/webhooks/handlers/pull_request/review_stack_adapter_test.rb
1206
+ - test/models/shipit/webhooks/handlers/pull_request/reopened_handler_test.rb
1207
+ - test/models/shipit/webhooks/handlers/pull_request/assigned_handler_test.rb
1208
+ - test/models/shipit/webhooks/handlers/pull_request/closed_handler_test.rb
1209
+ - test/models/shipit/webhooks/handlers/pull_request/unlabeled_handler_test.rb
1210
+ - test/models/shipit/webhooks/handlers_test.rb
1211
+ - test/models/shipit/check_run_test.rb
1212
+ - test/models/shipit/provisioning_handler/unregistered_provisioning_handler_test.rb
1213
+ - test/models/shipit/provisioning_handler/base_test.rb
1214
+ - test/models/shipit/review_stack_test.rb
1215
+ - test/models/shipit/provisioning_handler_test.rb
1216
+ - test/models/shipit/review_stack_provisioning_queue_test.rb
1217
+ - test/models/shipit/pull_request_test.rb
1218
+ - test/models/shipit/review_stack_provision_status_test.rb
1219
+ - test/models/api_client_test.rb
1220
+ - test/models/undeployed_commits_test.rb
1221
+ - test/models/duration_test.rb
1222
+ - test/jobs/process_merge_requests_job_test.rb
1223
+ - test/jobs/unique_job_test.rb
1224
+ - test/jobs/reap_dead_tasks_job_test.rb
1225
+ - test/jobs/github_sync_job_test.rb
1226
+ - test/jobs/refresh_github_user_job_test.rb
1227
+ - test/jobs/chunk_rollup_job_test.rb
1228
+ - test/jobs/fetch_commit_stats_job_test.rb
1229
+ - test/jobs/fetch_deployed_revision_job_test.rb
1230
+ - test/jobs/destroy_repository_job_test.rb
1231
+ - test/jobs/update_github_last_deployed_ref_job_test.rb
1232
+ - test/jobs/deliver_hook_job_test.rb
1233
+ - test/jobs/refresh_status_job_test.rb
1234
+ - test/jobs/perform_task_job_test.rb
1235
+ - test/jobs/emit_event_job_test.rb
1236
+ - test/jobs/mark_deploy_healthy_job_test.rb
1237
+ - test/jobs/purge_old_deliveries_job_test.rb
1238
+ - test/jobs/cache_deploy_spec_job_test.rb
1239
+ - test/jobs/destroy_stack_job_test.rb
1240
+ - test/test_command_integration.rb