Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
alerting
/
unified
/
__snapshots__
/
File Content:
NotificationPolicies.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`findRoutesMatchingFilters should not match non-existing 1`] = ` { "filtersApplied": true, "matchedRoutesWithPath": Map {}, } `; exports[`findRoutesMatchingFilters should work with all filters 1`] = ` { "filtersApplied": true, "matchedRoutesWithPath": Map { { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], } => [ { "id": "0", "receiver": "default-receiver", "routes": [ { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, ], }, { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, ], }, } `; exports[`findRoutesMatchingFilters should work with non-intersecting filters 1`] = ` { "filtersApplied": true, "matchedRoutesWithPath": Map {}, } `; exports[`findRoutesMatchingFilters should work with only contact point and inheritance 1`] = ` { "filtersApplied": true, "matchedRoutesWithPath": Map { { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], } => [ { "id": "0", "receiver": "default-receiver", "routes": [ { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, ], }, { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, ], { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, } => [ { "id": "0", "receiver": "default-receiver", "routes": [ { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, ], }, { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, } `; exports[`findRoutesMatchingFilters should work with only label matchers 1`] = ` { "filtersApplied": true, "matchedRoutesWithPath": Map { { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], } => [ { "id": "0", "receiver": "default-receiver", "routes": [ { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, ], }, { "id": "1", "matchers": [ "hello=world", "foo!=bar", ], "receiver": "simple-receiver", "routes": [ { "id": "2", "matchers": [ "bar=baz", ], "receiver": "simple-receiver", "routes": undefined, }, ], }, ], }, } `;
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
NotificationPolicies.test.tsx.snap
5890 bytes
0644
PanelAlertTabContent.test.tsx.snap
2446 bytes
0644
N4ST4R_ID | Naxtarrr