Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

Today we assert that _cat/indices returns a string matching

\d\d\d\d\-\d\d\-\d\dT\d\d:\d\d:\d\d.\d\d\d?Z

in the creation.date.string field. However, if the index was created exactly
on the second then the milliseconds part is omitted from the output. This updates
the test to allow for this case, and also to insist that the separator between the
seconds and the milliseconds fields is . and not an arbitrary character.

Today we assert that _cat/indices returns a string matching

    \d\d\d\d\-\d\d\-\d\dT\d\d:\d\d:\d\d.\d\d\d?Z

in the `creation.date.string` field. However, if the index was created exactly
on the second then the milliseconds part is omitted from the output. This updates
the test to allow for this case, and also to insist that the separator between the
seconds and the milliseconds fields is `.` and not an arbitrary character.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Data Management/CAT APIs Text APIs behind /_cat v7.0.0 v5.6.11 v6.5.0 v6.3.3 v6.4.1 labels Aug 1, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@DaveCTurner
Copy link
Contributor Author

Bah, already fixed by #32510. Sorry for the noise.

@DaveCTurner DaveCTurner closed this Aug 1, 2018
@DaveCTurner DaveCTurner deleted the 2018-08-01-cat-indices-creation-date-accuracy branch July 23, 2022 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/CAT APIs Text APIs behind /_cat >test Issues or PRs that are addressing/adding tests v5.6.11 v6.3.3 v6.4.1 v6.5.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants