2020-07-28 23:09:34 +05:30
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`Alert integration settings form default state should match the default snapshot 1`] = `
|
|
|
|
<div>
|
|
|
|
<p>
|
|
|
|
<gl-sprintf-stub
|
|
|
|
message="Action to take when receiving an alert. %{docsLink}"
|
|
|
|
/>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<form>
|
|
|
|
<gl-form-group-stub
|
|
|
|
class="gl-pl-0"
|
|
|
|
>
|
|
|
|
<gl-form-checkbox-stub
|
|
|
|
checked="true"
|
|
|
|
data-qa-selector="create_issue_checkbox"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Create an issue. Issues are created for each alert triggered.
|
|
|
|
</span>
|
|
|
|
</gl-form-checkbox-stub>
|
|
|
|
</gl-form-group-stub>
|
|
|
|
|
|
|
|
<gl-form-group-stub
|
|
|
|
class="col-8 col-md-9 gl-px-6"
|
|
|
|
label-for="alert-integration-settings-issue-template"
|
|
|
|
label-size="sm"
|
|
|
|
>
|
|
|
|
<label
|
|
|
|
class="gl-display-inline-flex"
|
|
|
|
for="alert-integration-settings-issue-template"
|
|
|
|
>
|
|
|
|
|
|
|
|
Issue template (optional)
|
|
|
|
|
|
|
|
<gl-link-stub
|
|
|
|
href="/help/user/project/description_templates#creating-issue-templates"
|
|
|
|
target="_blank"
|
|
|
|
>
|
|
|
|
<gl-icon-stub
|
|
|
|
name="question"
|
|
|
|
size="12"
|
|
|
|
/>
|
|
|
|
</gl-link-stub>
|
|
|
|
</label>
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
<gl-dropdown-stub
|
2020-07-28 23:09:34 +05:30
|
|
|
block="true"
|
|
|
|
category="tertiary"
|
|
|
|
data-qa-selector="incident_templates_dropdown"
|
|
|
|
headertext=""
|
|
|
|
id="alert-integration-settings-issue-template"
|
|
|
|
size="medium"
|
|
|
|
text="selecte_tmpl"
|
|
|
|
variant="default"
|
|
|
|
>
|
2020-11-24 15:15:51 +05:30
|
|
|
<gl-dropdown-item-stub
|
2020-07-28 23:09:34 +05:30
|
|
|
avatarurl=""
|
|
|
|
data-qa-selector="incident_templates_item"
|
|
|
|
iconcolor=""
|
|
|
|
iconname=""
|
|
|
|
iconrightname=""
|
|
|
|
ischeckitem="true"
|
|
|
|
secondarytext=""
|
|
|
|
>
|
|
|
|
|
|
|
|
No template selected
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
</gl-dropdown-item-stub>
|
|
|
|
</gl-dropdown-stub>
|
2020-07-28 23:09:34 +05:30
|
|
|
</gl-form-group-stub>
|
|
|
|
|
|
|
|
<gl-form-group-stub
|
|
|
|
class="gl-pl-0 gl-mb-5"
|
|
|
|
>
|
|
|
|
<gl-form-checkbox-stub>
|
|
|
|
<span>
|
|
|
|
Send a separate email notification to Developers.
|
|
|
|
</span>
|
|
|
|
</gl-form-checkbox-stub>
|
|
|
|
</gl-form-group-stub>
|
|
|
|
|
2020-11-24 15:15:51 +05:30
|
|
|
<gl-form-group-stub
|
|
|
|
class="gl-pl-0 gl-mb-5"
|
|
|
|
>
|
|
|
|
<gl-form-checkbox-stub
|
|
|
|
checked="true"
|
|
|
|
>
|
|
|
|
<span>
|
|
|
|
Automatically close incident issues when the associated Prometheus alert resolves.
|
|
|
|
</span>
|
|
|
|
</gl-form-checkbox-stub>
|
|
|
|
</gl-form-group-stub>
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
<gl-button-stub
|
|
|
|
buttontextclasses=""
|
|
|
|
category="primary"
|
|
|
|
class="js-no-auto-disable"
|
|
|
|
data-qa-selector="save_changes_button"
|
|
|
|
icon=""
|
|
|
|
size="medium"
|
|
|
|
type="submit"
|
|
|
|
variant="success"
|
2020-07-28 23:09:34 +05:30
|
|
|
>
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
Save changes
|
|
|
|
|
|
|
|
</gl-button-stub>
|
2020-07-28 23:09:34 +05:30
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
`;
|