File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
x-pack/test/alerting_api_integration/spaces_only/tests/alerting/builtin_alert_types/es_query Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 = / a l e r t ' a l w a y s f i r e ' i s a c t i v e : \n \n - V a l u e : \d + \n - C o n d i t i o n s M e t : n u m b e r o f m a t c h i n g d o c u m e n t s i s g r e a t e r t h a n - 1 o v e r 1 5 s \n - T i m e s t a m p : \d { 4 } - \d { 2 } - \d { 2 } T \d { 2 } : \d { 2 } : \d { 2 } .\d { 3 } Z / ;
89+ const messagePattern = / a l e r t ' a l w a y s f i r e ' i s a c t i v e : \n \n - V a l u e : \d + \n - C o n d i t i o n s M e t : N u m b e r o f m a t c h i n g d o c u m e n t s i s g r e a t e r t h a n - 1 o v e r 1 5 s \n - T i m e s t a m p : \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 = / a l e r t ' f i r e s o n c e ' i s a c t i v e : \n \n - V a l u e : \d + \n - C o n d i t i o n s M e t : n u m b e r o f m a t c h i n g d o c u m e n t s i s g r e a t e r t h a n o r e q u a l t o 0 o v e r 1 5 s \n - T i m e s t a m p : \d { 4 } - \d { 2 } - \d { 2 } T \d { 2 } : \d { 2 } : \d { 2 } .\d { 3 } Z / ;
145+ const messagePattern = / a l e r t ' f i r e s o n c e ' i s a c t i v e : \n \n - V a l u e : \d + \n - C o n d i t i o n s M e t : N u m b e r o f m a t c h i n g d o c u m e n t s i s g r e a t e r t h a n o r e q u a l t o 0 o v e r 1 5 s \n - T i m e s t a m p : \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 ( ) ;
You can’t perform that action at this time.
0 commit comments