Skip to content

Commit 5f79e3b

Browse files
[TBT-381] changed config to use array
1 parent 1a2c602 commit 5f79e3b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/travis/api/app/endpoint/assembla.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def deep_integration_enabled?
5757
end
5858

5959
def valid_asm_cluster?
60-
allowed = Travis.config.assembla_clusters.to_s.split(',')
60+
allowed = Travis.config.assembla_clusters
6161
allowed.include?(request.env[CLUSTER_HEADER])
6262
end
6363
end

lib/travis/config/defaults.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def fallback_logs_api_auth_token
107107
antifraud: { captcha_max_failed_attempts: 3, captcha_block_duration: 24, credit_card_max_failed_attempts: 3, credit_card_block_duration: 24 },
108108
legacy_roles: false,
109109
internal_users: [{id: 0, login: 'cron'}],
110-
assembla_clusters: 'eu, us',
110+
assembla_clusters: ['eu', 'us'],
111111
deep_integration_enabled: false,
112112
assembla_jwt_secret: 'assembla_jwt_secret',
113113
deep_integration_plan_name: 'beta_plan'

spec/unit/endpoint/assembla_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
end
9393

9494
context 'when integration is not enabled' do
95-
9695
before { Travis.config[:deep_integration_enabled] = original_deep_integration_enabled }
96+
9797
after { Travis.config[:deep_integration_enabled] = true }
9898

9999
it 'returns 403' do

0 commit comments

Comments
 (0)