Wraps timestamp values in quotes in runtime fields YAML tests. (#62155)

This commit is contained in:
Fernando Briano 2020-09-15 15:24:57 +01:00 committed by GitHub
parent 0ca9829867
commit 7dd073c243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -118,9 +118,9 @@ setup:
sort: timestamp
docvalue_fields: [tomorrow, tomorrow_from_source, the_past, all_week, formatted_tomorrow]
- match: {hits.total.value: 6}
- match: {hits.hits.0.fields.tomorrow: [2018-01-19T17:41:34.000Z] }
- match: {hits.hits.0.fields.tomorrow_from_source: [2018-01-19T17:41:34.000Z] }
- match: {hits.hits.0.fields.the_past: [2018-01-18T17:41:33.000Z] }
- match: {hits.hits.0.fields.tomorrow: ["2018-01-19T17:41:34.000Z"] }
- match: {hits.hits.0.fields.tomorrow_from_source: ["2018-01-19T17:41:34.000Z"] }
- match: {hits.hits.0.fields.the_past: ["2018-01-18T17:41:33.000Z"] }
- match:
hits.hits.0.fields.all_week:
- 2018-01-18T17:41:34.000Z
@ -144,9 +144,9 @@ setup:
field: tomorrow
format: strict_date_optional_time
- match: {hits.total.value: 6}
- match: {aggregations.v10.buckets.0.key_as_string: 2018-01-19T17:41:34.000Z}
- match: {aggregations.v10.buckets.0.key_as_string: "2018-01-19T17:41:34.000Z"}
- match: {aggregations.v10.buckets.0.doc_count: 1}
- match: {aggregations.v10.buckets.1.key_as_string: 2018-01-20T17:41:34.000Z}
- match: {aggregations.v10.buckets.1.key_as_string: "2018-01-20T17:41:34.000Z"}
- match: {aggregations.v10.buckets.1.doc_count: 1}
---

View File

@ -139,6 +139,6 @@ setup:
term:
ip: 252.0.0.0
- match: {hits.total.value: 1}
- match: {hits.hits.0._source.timestamp: 1998-04-30T14:31:27-05:00}
- match: {hits.hits.0._source.timestamp: "1998-04-30T14:31:27-05:00"}
# TODO tests for using the ip in a script. there is almost certainly whitelist "fun" here.