@@ -53,12 +53,10 @@ export default function ({ getService }) {
5353 } ) ;
5454
5555 it ( 'should pull local stats and validate data types' , async ( ) => {
56- const timestamp = '2018-07-23T22:13:00Z' ;
57-
5856 const { body } = await supertest
5957 . post ( '/api/telemetry/v2/clusters/_stats' )
6058 . set ( 'kbn-xsrf' , 'xxx' )
61- . send ( { timestamp , unencrypted : true } )
59+ . send ( { unencrypted : true } )
6260 . expect ( 200 ) ;
6361
6462 expect ( body . length ) . to . be ( 1 ) ;
@@ -95,12 +93,10 @@ export default function ({ getService }) {
9593 } ) ;
9694
9795 it ( 'should pull local stats and validate fields' , async ( ) => {
98- const timestamp = '2018-07-23T22:13:00Z' ;
99-
10096 const { body } = await supertest
10197 . post ( '/api/telemetry/v2/clusters/_stats' )
10298 . set ( 'kbn-xsrf' , 'xxx' )
103- . send ( { timestamp , unencrypted : true } )
99+ . send ( { unencrypted : true } )
104100 . expect ( 200 ) ;
105101
106102 const stats = body [ 0 ] ;
@@ -150,8 +146,6 @@ export default function ({ getService }) {
150146 } ) ;
151147
152148 describe ( 'application usage limits' , ( ) => {
153- const timestamp = '2018-07-23T22:13:00Z' ;
154-
155149 function createSavedObject ( ) {
156150 return supertest
157151 . post ( '/api/saved_objects/application_usage_transactional' )
@@ -182,7 +176,7 @@ export default function ({ getService }) {
182176 const { body } = await supertest
183177 . post ( '/api/telemetry/v2/clusters/_stats' )
184178 . set ( 'kbn-xsrf' , 'xxx' )
185- . send ( { timestamp , unencrypted : true } )
179+ . send ( { unencrypted : true } )
186180 . expect ( 200 ) ;
187181
188182 expect ( body . length ) . to . be ( 1 ) ;
@@ -233,7 +227,7 @@ export default function ({ getService }) {
233227 const { body } = await supertest
234228 . post ( '/api/telemetry/v2/clusters/_stats' )
235229 . set ( 'kbn-xsrf' , 'xxx' )
236- . send ( { timestamp , unencrypted : true } )
230+ . send ( { unencrypted : true } )
237231 . expect ( 200 ) ;
238232
239233 expect ( body . length ) . to . be ( 1 ) ;
0 commit comments