forked from code-dot-org/code-dot-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.yml.erb
56 lines (46 loc) · 2.12 KB
/
test.yml.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
github_webhook_secret: !Secret
slack_set_last_dtt_green_token: !Secret
slack_start_build_token: !Secret
azure_content_moderation_key: !Secret
saucelabs_authkey: !Secret
saucelabs_username: !Secret
# Configurations for making calls to the Immersive Reader API on Azure
imm_reader_client_id: '92ef2120-f523-41fe-a995-f9720bf70b81'
# Disable Secrets for CI, unit-test runs,
# and other non-chef_managed environments (e.g., preloading Spring for Rails tests).
<% if ci_test || !chef_managed -%>
<%= clear_secrets %>
dashboard_honeybadger_api_key: '00000000'
pegasus_honeybadger_api_key: '00000000'
google_safe_browsing_key: fake_api_key
pusher_app_id: fake_app_id
pusher_application_key: fake_application_key
pusher_application_secret: fake_application_secret
poste_secret: not a real secret
channels_api_secret: not a real secret
dashboard_devise_pepper: not a pepper!
dashboard_secret_key_base: not a secret
google_maps_api_key: boguskey
db_writer: 'mysql://root@localhost/'
firebase_shared_secret: fake_firebase_shared_secret
<% end -%>
netsim_enable_metrics: true
stub_school_data: true
daemon: true
use_pusher: <%=!ci_test%>
# Install i18n dependencies for i18n tests
build_i18n: true
# Since channel ids are derived from user id and other sequential integer ids
# use a new S3 sources directory for each Test Build to prevent a UI test
# from inadvertently using a channel id from a previous Test Build.
# CircleCI environments already override the sources_s3_directory setting to suffix it with the Circle Build number:
# https://github.com/code-dot-org/code-dot-org/blob/fb53af48ec0598692ed19f340f26d2ed0bd9547b/.circleci/config.yml#L153
# Detect Circle environment just to be safe.
sources_s3_directory: sources_test<%=ENV['CIRCLECI'] ? '' : "/#{GitUtils.git_revision_short(root_dir)}"%>
# Disable this for test by default, it won't make much sense if we keep wiping
# the DB.
disable_s3_image_uploads: true
# provide a unique path for firebase channels data for ci, to avoid conflicts in channel ids.
firebase_channel_id_suffix: '<%=ci ? "-#{circle_run_identifier}" : ''%>'
ai_proxy_origin:
openai_evaluate_rubric_api_key: 'stub-api-key'