// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`SilenceFormStore.data toAlertmanagerPayload creates payload that matches snapshot 1`] = `
{
  "comment": "toAlertmanagerPayload test",
  "createdBy": "me@example.com",
  "endsAt": "2000-02-01T01:00:00.000Z",
  "matchers": [
    {
      "isEqual": true,
      "isRegex": false,
      "name": "alertname",
      "value": "FakeAlert",
    },
    {
      "isEqual": true,
      "isRegex": false,
      "name": "job",
      "value": "mock",
    },
    {
      "isEqual": true,
      "isRegex": true,
      "name": "instance",
      "value": "(dev1|prod1|prod2)",
    },
    {
      "isEqual": true,
      "isRegex": true,
      "name": "cluster",
      "value": "(dev|prod)",
    },
    {
      "isEqual": true,
      "isRegex": false,
      "name": "",
      "value": "",
    },
  ],
  "startsAt": "2000-02-01T00:00:00.000Z",
}
`;

exports[`SilenceFormStore.data toAlertmanagerPayload creates payload that matches snapshot with regex values 1`] = `
{
  "comment": "toAlertmanagerPayload test",
  "createdBy": "me@example.com",
  "endsAt": "2000-02-01T01:00:00.000Z",
  "matchers": [
    {
      "isEqual": false,
      "isRegex": true,
      "name": "notEqualRegexAuto",
      "value": "\\^\\(\\.\\+\\)\\$",
    },
    {
      "isEqual": true,
      "isRegex": true,
      "name": "equalRegexAuto",
      "value": "\\^\\(\\.\\+\\)\\$",
    },
    {
      "isEqual": true,
      "isRegex": false,
      "name": "equalNotRegexAuto",
      "value": "^(.+)$",
    },
    {
      "isEqual": false,
      "isRegex": false,
      "name": "notEqualnotRegexAuto",
      "value": "^(.+)$",
    },
    {
      "isEqual": false,
      "isRegex": true,
      "name": "notEqualRegexCreated",
      "value": "^(.+)$",
    },
    {
      "isEqual": true,
      "isRegex": true,
      "name": "equalRegexCreated",
      "value": "^(.+)$",
    },
    {
      "isEqual": true,
      "isRegex": false,
      "name": "equalNotRegexCreated",
      "value": "^(.+)$",
    },
    {
      "isEqual": false,
      "isRegex": false,
      "name": "notEqualnotRegexAuto",
      "value": "^(.+)$",
    },
    {
      "isEqual": false,
      "isRegex": true,
      "name": "notEqualRegexCreatedMulti",
      "value": "(^(.+)$|\\)",
    },
    {
      "isEqual": true,
      "isRegex": true,
      "name": "equalRegexCreatedMulti",
      "value": "(^(.+)$|\\)",
    },
    {
      "isEqual": false,
      "isRegex": true,
      "name": "notEqualRegexAuto",
      "value": "(\\^\\(\\.\\+\\)\\$|\\)",
    },
    {
      "isEqual": true,
      "isRegex": true,
      "name": "equalRegexAuto",
      "value": "(\\^\\(\\.\\+\\)\\$|\\)",
    },
  ],
  "startsAt": "2000-02-01T00:00:00.000Z",
}
`;
