shipit-engine 0.35.1 → 0.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/app/controllers/concerns/shipit/authentication.rb +5 -1
- data/app/controllers/shipit/api/base_controller.rb +13 -1
- data/app/controllers/shipit/api/rollbacks_controller.rb +1 -1
- data/app/controllers/shipit/api/stacks_controller.rb +8 -2
- data/app/controllers/shipit/api/tasks_controller.rb +19 -2
- data/app/helpers/shipit/stacks_helper.rb +11 -0
- data/app/models/concerns/shipit/deferred_touch.rb +3 -3
- data/app/models/shipit/anonymous_user.rb +4 -0
- data/app/models/shipit/commit_checks.rb +3 -3
- data/app/models/shipit/task.rb +3 -3
- data/app/models/shipit/user.rb +23 -9
- data/app/serializers/shipit/stack_serializer.rb +1 -1
- data/app/views/shipit/deploys/_deploy.html.erb +1 -5
- data/app/views/shipit/stacks/_banners.html.erb +1 -1
- data/app/views/shipit/stacks/_settings_form.erb +55 -0
- data/app/views/shipit/stacks/settings.html.erb +1 -55
- data/app/views/shipit/stacks/show.html.erb +1 -1
- data/config/locales/en.yml +1 -1
- data/config/routes.rb +4 -0
- data/db/migrate/20211103154121_increase_github_team_slug_size.rb +5 -0
- data/lib/shipit/engine.rb +13 -5
- data/lib/shipit/stack_commands.rb +1 -1
- data/lib/shipit/version.rb +1 -1
- data/lib/shipit.rb +5 -2
- data/test/controllers/api/hooks_controller_test.rb +1 -1
- data/test/controllers/api/rollback_controller_test.rb +1 -0
- data/test/controllers/api/stacks_controller_test.rb +25 -0
- data/test/controllers/api/tasks_controller_test.rb +56 -0
- data/test/controllers/stacks_controller_test.rb +11 -0
- data/test/dummy/config/application.rb +1 -2
- data/test/dummy/db/schema.rb +2 -2
- data/test/fixtures/shipit/check_runs.yml +3 -3
- data/test/fixtures/shipit/commits.yml +101 -101
- data/test/fixtures/shipit/deliveries.yml +1 -1
- data/test/fixtures/shipit/merge_requests.yml +19 -19
- data/test/fixtures/shipit/stacks.yml +28 -28
- data/test/fixtures/shipit/statuses.yml +16 -16
- data/test/fixtures/shipit/tasks.yml +65 -65
- data/test/fixtures/shipit/users.yml +2 -5
- data/test/models/commits_test.rb +6 -6
- data/test/models/tasks_test.rb +2 -2
- data/test/models/team_test.rb +21 -2
- data/test/models/users_test.rb +29 -9
- data/test/unit/deploy_commands_test.rb +1 -1
- metadata +175 -173
@@ -2,15 +2,13 @@ walrus:
|
|
2
2
|
name: Lando Walrussian
|
3
3
|
email: walrus@shopify.com
|
4
4
|
login: walrus
|
5
|
-
encrypted_github_access_token: "
|
6
|
-
encrypted_github_access_token_iv: "gRSldoTZ+fmrIDoY\n"
|
5
|
+
encrypted_github_access_token: '{"p":"Ak5D+/jUFz3e","h":{"iv":"dwwXJyB7F7fWqviI","at":"NQ4U3zu9ijCrZ/iGmZBQtg=="}}' # ghu_t0k3n
|
7
6
|
|
8
7
|
codertocat:
|
9
8
|
name: Coding Cat
|
10
9
|
email: coding@cat.com
|
11
10
|
login: Codertocat
|
12
|
-
encrypted_github_access_token: "
|
13
|
-
encrypted_github_access_token_iv: "gRSldoTZ+fmrIDoY\n"
|
11
|
+
encrypted_github_access_token: '{"p":"Ak5D+/jUFz3e","h":{"iv":"dwwXJyB7F7fWqviI","at":"NQ4U3zu9ijCrZ/iGmZBQtg=="}}' # ghu_t0k3n
|
14
12
|
|
15
13
|
bob:
|
16
14
|
name: Bob the Builder
|
@@ -33,4 +31,3 @@ legacy:
|
|
33
31
|
email: legacy@shopify.com
|
34
32
|
login: legacy
|
35
33
|
encrypted_github_access_token: FuQv9jpHmMZ8Px64xmqASJtKlefv # t0k3n
|
36
|
-
encrypted_github_access_token_iv: "QNS4smChXEXtOjxb\n"
|
data/test/models/commits_test.rb
CHANGED
@@ -618,7 +618,7 @@ module Shipit
|
|
618
618
|
unless initial_state == 'unknown'
|
619
619
|
attrs = initial_status_attributes.merge(
|
620
620
|
stack_id: commit.stack_id,
|
621
|
-
created_at: 10.days.ago.
|
621
|
+
created_at: 10.days.ago.to_formatted_s(:db),
|
622
622
|
)
|
623
623
|
commit.statuses.create!(attrs)
|
624
624
|
end
|
@@ -626,7 +626,7 @@ module Shipit
|
|
626
626
|
|
627
627
|
expected_status_attributes = { state: new_state, description: initial_state, context: 'ci/travis' }
|
628
628
|
add_status = lambda do
|
629
|
-
attrs = expected_status_attributes.merge(created_at: 1.day.ago.
|
629
|
+
attrs = expected_status_attributes.merge(created_at: 1.day.ago.to_formatted_s(:db))
|
630
630
|
commit.create_status_from_github!(OpenStruct.new(attrs))
|
631
631
|
end
|
632
632
|
expect_hook_emit(commit, :commit_status, expected_status_attributes) do
|
@@ -651,7 +651,7 @@ module Shipit
|
|
651
651
|
state: 'failure',
|
652
652
|
description: 'Sad',
|
653
653
|
context: 'ci/hidden',
|
654
|
-
created_at: 1.day.ago.
|
654
|
+
created_at: 1.day.ago.to_formatted_s(:db),
|
655
655
|
)
|
656
656
|
commit.create_status_from_github!(github_status)
|
657
657
|
end
|
@@ -668,7 +668,7 @@ module Shipit
|
|
668
668
|
state: 'failure',
|
669
669
|
description: 'Sad',
|
670
670
|
context: 'ci/ok_to_fail',
|
671
|
-
created_at: 1.day.ago.
|
671
|
+
created_at: 1.day.ago.to_formatted_s(:db),
|
672
672
|
)
|
673
673
|
commit.create_status_from_github!(github_status)
|
674
674
|
end
|
@@ -683,7 +683,7 @@ module Shipit
|
|
683
683
|
state: 'failure',
|
684
684
|
description: 'Sad',
|
685
685
|
context: 'ci/travis',
|
686
|
-
created_at: 1.day.ago.
|
686
|
+
created_at: 1.day.ago.to_formatted_s(:db),
|
687
687
|
)
|
688
688
|
commit.create_status_from_github!(github_status)
|
689
689
|
end
|
@@ -695,7 +695,7 @@ module Shipit
|
|
695
695
|
state: 'success',
|
696
696
|
description: 'Cool',
|
697
697
|
context: 'metrics/coveralls',
|
698
|
-
created_at: 1.day.ago.
|
698
|
+
created_at: 1.day.ago.to_formatted_s(:db),
|
699
699
|
)
|
700
700
|
|
701
701
|
assert_equal 'failure', commit.state
|
data/test/models/tasks_test.rb
CHANGED
@@ -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.
|
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.
|
107
|
+
created_at: (60 + 1).minutes.ago.to_formatted_s(:db),
|
108
108
|
status: "error",
|
109
109
|
)
|
110
110
|
|
data/test/models/team_test.rb
CHANGED
@@ -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:
|
72
|
+
slug: slug,
|
54
73
|
url: 'https://example.com',
|
55
74
|
description: 'The Best one',
|
56
75
|
organization: 'shopify',
|
data/test/models/users_test.rb
CHANGED
@@ -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: '
|
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 '
|
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
|
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.
|
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:
|
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:
|
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:
|
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
|
@@ -769,6 +770,7 @@ files:
|
|
769
770
|
- db/migrate/20210325194053_remove_stacks_branch_default.rb
|
770
771
|
- db/migrate/20210504200438_add_github_updated_at_to_check_runs.rb
|
771
772
|
- db/migrate/20210823075617_change_check_runs_github_updated_at_default.rb
|
773
|
+
- db/migrate/20211103154121_increase_github_team_slug_size.rb
|
772
774
|
- lib/shipit-engine.rb
|
773
775
|
- lib/shipit.rb
|
774
776
|
- lib/shipit/cast_value.rb
|
@@ -1041,198 +1043,198 @@ signing_key:
|
|
1041
1043
|
specification_version: 4
|
1042
1044
|
summary: Application deployment software
|
1043
1045
|
test_files:
|
1044
|
-
- test/test_helper.rb
|
1045
|
-
- test/models/undeployed_commits_test.rb
|
1046
|
-
- test/models/pull_request_assignment_test.rb
|
1047
|
-
- test/models/commits_test.rb
|
1048
|
-
- test/models/membership_test.rb
|
1049
|
-
- test/models/status/group_test.rb
|
1050
|
-
- test/models/status/missing_test.rb
|
1051
|
-
- test/models/api_client_test.rb
|
1052
|
-
- test/models/deploys_test.rb
|
1053
|
-
- test/models/shipit/stacks_test.rb
|
1054
|
-
- test/models/shipit/review_stack_provision_status_test.rb
|
1055
|
-
- test/models/shipit/review_stack_provisioning_queue_test.rb
|
1056
|
-
- test/models/shipit/provisioning_handler_test.rb
|
1057
|
-
- test/models/shipit/provisioning_handler/base_test.rb
|
1058
|
-
- test/models/shipit/provisioning_handler/unregistered_provisioning_handler_test.rb
|
1059
|
-
- test/models/shipit/review_stack_test.rb
|
1060
|
-
- test/models/shipit/webhooks/handlers_test.rb
|
1061
|
-
- test/models/shipit/webhooks/handlers/pull_request/assigned_handler_test.rb
|
1062
|
-
- test/models/shipit/webhooks/handlers/pull_request/edited_handler_test.rb
|
1063
|
-
- test/models/shipit/webhooks/handlers/pull_request/reopened_handler_test.rb
|
1064
|
-
- test/models/shipit/webhooks/handlers/pull_request/opened_handler_test.rb
|
1065
|
-
- test/models/shipit/webhooks/handlers/pull_request/unlabeled_handler_test.rb
|
1066
|
-
- test/models/shipit/webhooks/handlers/pull_request/closed_handler_test.rb
|
1067
|
-
- test/models/shipit/webhooks/handlers/pull_request/label_capturing_handler_test.rb
|
1068
|
-
- test/models/shipit/webhooks/handlers/pull_request/review_stack_adapter_test.rb
|
1069
|
-
- test/models/shipit/webhooks/handlers/pull_request/labeled_handler_test.rb
|
1070
|
-
- test/models/shipit/check_run_test.rb
|
1071
|
-
- test/models/shipit/pull_request_test.rb
|
1072
|
-
- test/models/shipit/repository_test.rb
|
1073
|
-
- test/models/delivery_test.rb
|
1074
|
-
- test/models/deploy_stats_test.rb
|
1075
|
-
- test/models/release_statuses_test.rb
|
1076
|
-
- test/models/team_test.rb
|
1077
|
-
- test/models/rollbacks_test.rb
|
1078
|
-
- test/models/users_test.rb
|
1079
|
-
- test/models/deploy_spec_test.rb
|
1080
|
-
- test/models/commit_checks_test.rb
|
1081
|
-
- test/models/status_test.rb
|
1082
|
-
- test/models/github_hook_test.rb
|
1083
|
-
- test/models/duration_test.rb
|
1084
|
-
- test/models/task_definitions_test.rb
|
1085
|
-
- test/models/commit_deployment_status_test.rb
|
1086
|
-
- test/models/hook_test.rb
|
1087
|
-
- test/models/merge_request_test.rb
|
1088
|
-
- test/models/commit_deployment_test.rb
|
1089
|
-
- test/models/tasks_test.rb
|
1090
|
-
- test/controllers/ccmenu_controller_test.rb
|
1091
|
-
- test/controllers/api/ccmenu_controller_test.rb
|
1092
|
-
- test/controllers/api/hooks_controller_test.rb
|
1093
|
-
- test/controllers/api/tasks_controller_test.rb
|
1094
|
-
- test/controllers/api/merge_requests_controller_test.rb
|
1095
|
-
- test/controllers/api/outputs_controller_test.rb
|
1096
|
-
- test/controllers/api/base_controller_test.rb
|
1097
|
-
- test/controllers/api/commits_controller_test.rb
|
1098
|
-
- test/controllers/api/release_statuses_controller_test.rb
|
1099
|
-
- test/controllers/api/rollback_controller_test.rb
|
1100
|
-
- test/controllers/api/deploys_controller_test.rb
|
1101
|
-
- test/controllers/api/locks_controller_test.rb
|
1102
|
-
- test/controllers/api/stacks_controller_test.rb
|
1103
|
-
- test/controllers/tasks_controller_test.rb
|
1104
|
-
- test/controllers/merge_requests_controller_test.rb
|
1105
|
-
- test/controllers/rollbacks_controller_test.rb
|
1106
|
-
- test/controllers/commits_controller_test.rb
|
1107
|
-
- test/controllers/release_statuses_controller_test.rb
|
1108
|
-
- test/controllers/webhooks_controller_test.rb
|
1109
|
-
- test/controllers/github_authentication_controller_test.rb
|
1110
|
-
- test/controllers/status_controller_test.rb
|
1111
|
-
- test/controllers/api_clients_controller_test.rb
|
1112
|
-
- test/controllers/commit_checks_controller_test.rb
|
1113
|
-
- test/controllers/repositories_controller_test.rb
|
1114
|
-
- test/controllers/deploys_controller_test.rb
|
1115
|
-
- test/controllers/stacks_controller_test.rb
|
1116
|
-
- test/controllers/merge_status_controller_test.rb
|
1117
|
-
- test/fixtures/timeout
|
1118
|
-
- test/fixtures/shipit/check_runs.yml
|
1119
|
-
- test/fixtures/shipit/teams.yml
|
1120
|
-
- test/fixtures/shipit/repositories.yml
|
1121
|
-
- test/fixtures/shipit/commits.yml
|
1122
|
-
- test/fixtures/shipit/deliveries.yml
|
1123
|
-
- test/fixtures/shipit/memberships.yml
|
1124
|
-
- test/fixtures/shipit/merge_requests.yml
|
1125
|
-
- test/fixtures/shipit/tasks.yml
|
1126
|
-
- test/fixtures/shipit/pull_requests.yml
|
1127
|
-
- test/fixtures/shipit/statuses.yml
|
1128
|
-
- test/fixtures/shipit/release_statuses.yml
|
1129
|
-
- test/fixtures/shipit/users.yml
|
1130
|
-
- test/fixtures/shipit/api_clients.yml
|
1131
|
-
- test/fixtures/shipit/pull_request_assignments.yml
|
1132
|
-
- test/fixtures/shipit/commit_deployments.yml
|
1133
|
-
- test/fixtures/shipit/commit_deployment_statuses.yml
|
1134
|
-
- test/fixtures/shipit/github_hooks.yml
|
1135
|
-
- test/fixtures/shipit/hooks.yml
|
1136
|
-
- test/fixtures/shipit/stacks.yml
|
1137
|
-
- test/fixtures/payloads/check_suite_master.json
|
1138
|
-
- test/fixtures/payloads/pull_request_labeled.json
|
1139
|
-
- test/fixtures/payloads/pull_request_unlabeled.json
|
1140
|
-
- test/fixtures/payloads/pull_request_opened.json
|
1141
|
-
- test/fixtures/payloads/invalid_pull_request.json
|
1142
|
-
- test/fixtures/payloads/pull_request_closed.json
|
1143
|
-
- test/fixtures/payloads/pull_request_assigned.json
|
1144
|
-
- test/fixtures/payloads/status_master.json
|
1145
|
-
- test/fixtures/payloads/push_master.json
|
1146
|
-
- test/fixtures/payloads/provision_disabled_pull_request.json
|
1147
|
-
- test/fixtures/payloads/pull_request_with_no_repo.json
|
1148
|
-
- test/fixtures/payloads/pull_request_reopened.json
|
1149
|
-
- test/fixtures/payloads/push_not_master.json
|
1150
|
-
- test/middleware/same_site_cookie_middleware_test.rb
|
1151
|
-
- test/unit/shipit_task_execution_strategy_test.rb
|
1152
|
-
- test/unit/commands_test.rb
|
1153
|
-
- test/unit/rollback_commands_test.rb
|
1154
1046
|
- test/unit/github_url_helper_test.rb
|
1155
|
-
- test/unit/variable_definition_test.rb
|
1156
|
-
- test/unit/environment_variables_test.rb
|
1157
1047
|
- test/unit/shipit_deployment_checks_test.rb
|
1158
|
-
- test/unit/line_buffer_test.rb
|
1159
|
-
- test/unit/anonymous_user_serializer_test.rb
|
1160
|
-
- test/unit/github_app_test.rb
|
1161
1048
|
- test/unit/user_serializer_test.rb
|
1049
|
+
- test/unit/github_app_test.rb
|
1162
1050
|
- test/unit/deploy_serializer_test.rb
|
1163
|
-
- test/unit/commit_serializer_test.rb
|
1164
|
-
- test/unit/github_apps_test.rb
|
1165
|
-
- test/unit/shipit_test.rb
|
1166
|
-
- test/unit/shipit_helper_test.rb
|
1167
|
-
- test/unit/command_test.rb
|
1168
1051
|
- test/unit/csv_serializer_test.rb
|
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
|
1169
1060
|
- test/unit/deploy_commands_test.rb
|
1170
|
-
- test/
|
1061
|
+
- test/unit/commit_serializer_test.rb
|
1062
|
+
- test/unit/line_buffer_test.rb
|
1063
|
+
- test/unit/shipit_helper_test.rb
|
1064
|
+
- test/unit/rollback_commands_test.rb
|
1065
|
+
- test/middleware/same_site_cookie_middleware_test.rb
|
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
|
1171
1071
|
- test/helpers/api_helper.rb
|
1172
1072
|
- test/helpers/hooks_helper.rb
|
1073
|
+
- test/helpers/links_helper.rb
|
1074
|
+
- test/helpers/fixture_aliases_helper.rb
|
1173
1075
|
- test/helpers/payloads_helper.rb
|
1174
1076
|
- test/helpers/queries_helper.rb
|
1175
|
-
- test/
|
1176
|
-
- test/
|
1177
|
-
- test/
|
1178
|
-
- test/dummy/
|
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
|
1087
|
+
- test/dummy/public/422.html
|
1088
|
+
- test/dummy/public/404.html
|
1089
|
+
- test/dummy/public/500.html
|
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
|
1179
1095
|
- test/dummy/config/database.postgresql.yml
|
1180
|
-
- test/dummy/config/
|
1096
|
+
- test/dummy/config/database.mysql.yml
|
1097
|
+
- test/dummy/config/secrets_double_github_app.yml
|
1181
1098
|
- test/dummy/config/routes.rb
|
1099
|
+
- test/dummy/config/database.yml
|
1182
1100
|
- test/dummy/config/application.rb
|
1183
|
-
- test/dummy/config/environments/development.rb
|
1184
1101
|
- test/dummy/config/environments/test.rb
|
1185
1102
|
- test/dummy/config/environments/production.rb
|
1186
|
-
- test/dummy/config/
|
1187
|
-
- test/dummy/config/
|
1188
|
-
- test/dummy/config/
|
1189
|
-
- test/dummy/config/
|
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
|
1190
1107
|
- test/dummy/config/initializers/0_load_development_secrets.rb
|
1108
|
+
- test/dummy/config/initializers/session_store.rb
|
1191
1109
|
- test/dummy/config/initializers/wrap_parameters.rb
|
1192
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
1193
|
-
- test/dummy/config/initializers/inflections.rb
|
1194
1110
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
1195
|
-
- test/dummy/config/initializers/session_store.rb
|
1196
|
-
- test/dummy/config/initializers/mime_types.rb
|
1197
1111
|
- test/dummy/config/initializers/assets.rb
|
1112
|
+
- test/dummy/config/initializers/inflections.rb
|
1198
1113
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
1199
|
-
- test/dummy/config/
|
1114
|
+
- test/dummy/config/secrets.yml
|
1200
1115
|
- test/dummy/config/environment.rb
|
1201
|
-
- test/dummy/
|
1202
|
-
- test/
|
1203
|
-
- test/
|
1204
|
-
- test/
|
1205
|
-
- test/
|
1206
|
-
- test/
|
1207
|
-
- test/
|
1208
|
-
- test/
|
1209
|
-
- test/
|
1210
|
-
- test/
|
1211
|
-
- test/
|
1212
|
-
- test/
|
1213
|
-
- test/
|
1214
|
-
- test/
|
1215
|
-
- test/
|
1216
|
-
- test/
|
1217
|
-
- test/
|
1218
|
-
- test/
|
1219
|
-
- test/
|
1220
|
-
- test/
|
1221
|
-
- test/
|
1222
|
-
- test/
|
1223
|
-
- test/
|
1224
|
-
- test/
|
1225
|
-
- test/
|
1226
|
-
- test/
|
1227
|
-
- test/
|
1228
|
-
- test/
|
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
|
1120
|
+
- test/controllers/api/tasks_controller_test.rb
|
1121
|
+
- test/controllers/api/deploys_controller_test.rb
|
1122
|
+
- test/controllers/api/locks_controller_test.rb
|
1123
|
+
- test/controllers/api/rollback_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
|
1134
|
+
- test/controllers/commits_controller_test.rb
|
1135
|
+
- test/controllers/api_clients_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
|
1139
|
+
- test/controllers/repositories_controller_test.rb
|
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
|
1160
|
+
- test/fixtures/shipit/check_runs.yml
|
1161
|
+
- test/fixtures/shipit/hooks.yml
|
1162
|
+
- test/fixtures/shipit/release_statuses.yml
|
1163
|
+
- test/fixtures/shipit/teams.yml
|
1164
|
+
- test/fixtures/shipit/users.yml
|
1165
|
+
- test/fixtures/shipit/repositories.yml
|
1166
|
+
- test/fixtures/shipit/commit_deployment_statuses.yml
|
1167
|
+
- test/fixtures/shipit/stacks.yml
|
1168
|
+
- test/fixtures/shipit/commits.yml
|
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
|
1174
|
+
- test/fixtures/shipit/statuses.yml
|
1175
|
+
- test/fixtures/shipit/api_clients.yml
|
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
|
1229
1224
|
- test/jobs/reap_dead_tasks_job_test.rb
|
1230
1225
|
- test/jobs/github_sync_job_test.rb
|
1226
|
+
- test/jobs/refresh_github_user_job_test.rb
|
1231
1227
|
- test/jobs/chunk_rollup_job_test.rb
|
1232
|
-
- test/jobs/unique_job_test.rb
|
1233
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
|
1234
1237
|
- test/jobs/purge_old_deliveries_job_test.rb
|
1235
|
-
- test/jobs/
|
1236
|
-
- test/
|
1237
|
-
- test/
|
1238
|
-
- test/lib/shipit/deploy_commands_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
|