Skip to content

Commit 3fad2dd

Browse files
committed
Fixing functional test
1 parent 33a9307 commit 3fad2dd

File tree

1 file changed

+2
-2
lines changed
  • x-pack/test/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/es_query

1 file changed

+2
-2
lines changed

x-pack/test/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/es_query/alert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function alertTests({ getService }: FtrProviderContext) {
8686

8787
expect(name).to.be('always fire');
8888
expect(title).to.be(`alert 'always fire' matched query`);
89-
const messagePattern = /alert 'always fire' is active:\n\n- Value: \d+\n- Conditions Met: number of matching documents is greater than -1 over 15s\n- Timestamp: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
89+
const messagePattern = /alert 'always fire' is active:\n\n- Value: \d+\n- Conditions Met: Number of matching documents is greater than -1 over 15s\n- Timestamp: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
9090
expect(message).to.match(messagePattern);
9191
expect(hits).not.to.be.empty();
9292

@@ -142,7 +142,7 @@ export default function alertTests({ getService }: FtrProviderContext) {
142142

143143
expect(name).to.be('fires once');
144144
expect(title).to.be(`alert 'fires once' matched query`);
145-
const messagePattern = /alert 'fires once' is active:\n\n- Value: \d+\n- Conditions Met: number of matching documents is greater than or equal to 0 over 15s\n- Timestamp: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
145+
const messagePattern = /alert 'fires once' is active:\n\n- Value: \d+\n- Conditions Met: Number of matching documents is greater than or equal to 0 over 15s\n- Timestamp: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;
146146
expect(message).to.match(messagePattern);
147147
expect(hits).not.to.be.empty();
148148
expect(previousTimestamp).to.be.empty();

0 commit comments

Comments
 (0)