diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /spec/frontend/alerts_settings/util.js | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) | |
download | gitlab-ce-13.6.0-rc42.tar.gz |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'spec/frontend/alerts_settings/util.js')
-rw-r--r-- | spec/frontend/alerts_settings/util.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/spec/frontend/alerts_settings/util.js b/spec/frontend/alerts_settings/util.js new file mode 100644 index 00000000000..f9f9b69791e --- /dev/null +++ b/spec/frontend/alerts_settings/util.js @@ -0,0 +1,30 @@ +const PROMETHEUS_URL = '/prometheus/alerts/notify.json'; +const GENERIC_URL = '/alerts/notify.json'; +const KEY = 'abcedfg123'; +const INVALID_URL = 'http://invalid'; +const ACTIVE = false; + +export const defaultAlertSettingsConfig = { + generic: { + authorizationKey: KEY, + formPath: INVALID_URL, + url: GENERIC_URL, + alertsSetupUrl: INVALID_URL, + alertsUsageUrl: INVALID_URL, + active: ACTIVE, + }, + prometheus: { + authorizationKey: KEY, + prometheusFormPath: INVALID_URL, + url: PROMETHEUS_URL, + active: ACTIVE, + }, + opsgenie: { + opsgenieMvcIsAvailable: true, + formPath: INVALID_URL, + active: ACTIVE, + opsgenieMvcTargetUrl: GENERIC_URL, + }, + projectPath: '', + multiIntegrations: true, +}; |