OpenSearch/x-pack/plugin
Ioannis Kakavas 24a794fd6b Fix testTokenExpiry flaky test (#42585)
Test was using ClockMock#rewind passing the amount of nanoseconds
in order to "strip" nanos from the time value. This was intentional
as the expiration time of the UserToken doesn't have nanosecond
precision.
However, ClockMock#rewind doesn't support nanos either, so when it's
called with a TimeValue, it rewinds the clock by the TimeValue's
millis instead. This was causing the clock to go enough millis
before token expiration time and the test was passing. Once every
few hundred times though, the TimeValue by which we attempted to
rewind the clock only had nanos and no millis, so rewind moved the
clock back just a few millis, but still after expiration time.

This change moves the clock explicitly to the same instant as expiration,
using clock.setTime and disregarding nanos.
2019-05-30 07:53:56 +03:00
..
ccr Remove PRE_60_NODE_CHECKPOINT (#42531) 2019-05-28 12:25:53 +01:00
core [ML-DataFrame] rewrite start and stop to answer with acknowledged (#42589) 2019-05-29 11:14:32 +02:00
data-frame [ML Data Frame] Set DF task state when stopping (#42516) 2019-05-29 16:39:44 +01:00
deprecation Deprecate support for chained multi-fields. (#42330) 2019-05-24 15:55:06 -07:00
graph Switch run task to use real distro (#41590) 2019-05-06 12:34:07 -07:00
ilm Switch run task to use real distro (#41590) 2019-05-06 12:34:07 -07:00
logstash Switch run task to use real distro (#41590) 2019-05-06 12:34:07 -07:00
ml [ML] Use map and filter instead of flatMap in find_file_structure (#42534) 2019-05-24 20:12:06 +01:00
monitoring Update ciphers for TLSv1.3 and JDK11 if available (#42082) 2019-05-20 09:45:36 -04:00
rollup Fix unchecked warning in RollupIndexerIndexingTests#testSimpleDateHistoWithOverlappingDelay 2019-05-21 12:28:57 +02:00
security Fix testTokenExpiry flaky test (#42585) 2019-05-30 07:53:56 +03:00
sql Geo: Refactor libs/geo parsers (#42549) 2019-05-29 20:07:27 -04:00
src/test [ML Data Frame] Set DF task state when stopping (#42516) 2019-05-29 16:39:44 +01:00
watcher Split document and metadata fields in GetResult (#38373) (#42456) 2019-05-23 14:01:07 -07:00
build.gradle Add support for API keys to access Elasticsearch (#38291) 2019-02-05 14:21:57 +11:00