Skip to content

Commit

Permalink
Update API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Jun 8, 2021
1 parent 52e421d commit 8e74555
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions x-pack/test/apm_api_integration/tests/alerts/rule_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import expect from '@kbn/expect';
import { merge, omit } from 'lodash';
import { format } from 'url';
import { EVENT_KIND } from '../../../../../packages/kbn-rule-data-utils/src/technical_field_names';
import { FtrProviderContext } from '../../common/ftr_provider_context';
import { registry } from '../../common/registry';

Expand Down Expand Up @@ -259,7 +260,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
index: ALERTS_INDEX_TARGET,
body: {
query: {
match_all: {},
term: {
[EVENT_KIND]: 'signal',
},
},
size: 1,
sort: {
Expand All @@ -286,7 +289,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
index: ALERTS_INDEX_TARGET,
body: {
query: {
match_all: {},
term: {
[EVENT_KIND]: 'signal',
},
},
size: 1,
sort: {
Expand All @@ -313,7 +318,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
index: ALERTS_INDEX_TARGET,
body: {
query: {
match_all: {},
term: {
[EVENT_KIND]: 'signal',
},
},
size: 1,
sort: {
Expand Down Expand Up @@ -346,7 +353,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
"open",
],
"event.kind": Array [
"state",
"signal",
],
"kibana.rac.alert.duration.us": Array [
0,
Expand Down Expand Up @@ -416,7 +423,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
"open",
],
"event.kind": Array [
"state",
"signal",
],
"kibana.rac.alert.duration.us": Array [
0,
Expand Down Expand Up @@ -486,7 +493,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
index: ALERTS_INDEX_TARGET,
body: {
query: {
match_all: {},
term: {
[EVENT_KIND]: 'signal',
},
},
size: 1,
sort: {
Expand Down Expand Up @@ -521,7 +530,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
"close",
],
"event.kind": Array [
"state",
"signal",
],
"kibana.rac.alert.evaluation.threshold": Array [
30,
Expand Down

0 comments on commit 8e74555

Please sign in to comment.