kibana/x-pack/test/functional
Frank Hassanabad e5944a3646
[Security Solutions][Detection Engine] Fixes timestamp bugs within source indexes when the formats are not ISO8601 format (#101349)
## Summary

We have a few bugs where when the source index for detections is not `"strict_date_optional_time"` it is possible that we will misinterpret the format to be epoch milliseconds when it could be epoch seconds or another ambiguous format or blow up when trying to write out the signals index. This fixes it to where we query for the source index format as an ISO8601 and when we copy the date time format we copy it back out as ISO8601 and insert it into the signal index as ISO8601.

See this [gist](https://gist.github.com/FrankHassanabad/f614ec9762d59cd1129b3269f5bae41c) for more details of how this was accidentally introduced when we added support for runtime fields and the general idea of the fix.

* Removes `docvalue_field` and we now only use `fields` in detection engine search requests
* Splits out the timestamp e2e tests into their own file for `timestamps` file
* Adds more tests to ensure we copy what we expect and we are converting to ISO8601 in the signals
* Removes `ts-expect-error` in a lot of areas including tests and then I fix the types and issues once it is removed. 

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-06-04 16:19:59 -06:00
..
apps [Lens] Heatmap / Swim lane integration (#97978) 2021-06-04 15:28:43 -04:00
es_archives [Security Solutions][Detection Engine] Fixes timestamp bugs within source indexes when the formats are not ISO8601 format (#101349) 2021-06-04 16:19:59 -06:00
page_objects [fix] import from the root of @kbn/expect (#101321) 2021-06-03 18:13:11 -04:00
screenshots/baseline
services [fix] import from the root of @kbn/expect (#101321) 2021-06-03 18:13:11 -04:00
config.coverage.js
config.edge.js
config.firefox.js
config.js Automated package testing (#88900) 2021-05-27 13:37:43 -05:00
config_security_basic.ts [kbn/test] move types/ftr into src (#99555) 2021-05-17 09:51:53 -07:00
ftr_provider_context.ts [ftr] implement FtrService classes and migrate common services (#99546) 2021-05-25 09:25:09 -07:00
README.md

Kibana Functional Testing

See our Functional Testing Guide