OpenSearch/modules
Rory Hunter 53a4d2176f
Convert most awaitBusy calls to assertBusy (#45794) (#47112)
Backport of #45794 to 7.x. Convert most `awaitBusy` calls to
`assertBusy`, and use asserts where possible. Follows on from #28548 by
@liketic.

There were a small number of places where it didn't make sense to me to
call `assertBusy`, so I kept the existing calls but renamed the method to
`waitUntil`. This was partly to better reflect its usage, and partly so
that anyone trying to add a new call to awaitBusy wouldn't be able to find
it.

I also didn't change the usage in `TransportStopRollupAction` as the
comments state that the local awaitBusy method is a temporary
copy-and-paste.

Other changes:

  * Rework `waitForDocs` to scale its timeout. Instead of calling
    `assertBusy` in a loop, work out a reasonable overall timeout and await
    just once.
  * Some tests failed after switching to `assertBusy` and had to be fixed.
  * Correct the expect templates in AbstractUpgradeTestCase.  The ES
    Security team confirmed that they don't use templates any more, so
    remove this from the expected templates. Also rewrite how the setup
    code checks for templates, in order to give more information.
  * Remove an expected ML template from XPackRestTestConstants The ML team
    advised that the ML tests shouldn't be waiting for any
    `.ml-notifications*` templates, since such checks should happen in the
    production code instead.
  * Also rework the template checking code in `XPackRestTestHelper` to give
    more helpful failure messages.
  * Fix issue in `DataFrameSurvivesUpgradeIT` when upgrading from < 7.4
2019-09-29 12:21:46 +01:00
..
aggs-matrix-stats Replace the SearchContext with QueryShardContext when building aggregator factories (#46527) 2019-09-11 16:43:30 +02:00
analysis-common Enable reloading of synonym_graph filters (#45135) 2019-08-02 15:33:42 +02:00
ingest-common Allow ingest processors to execute in a non blocking manner. (#47122) 2019-09-26 08:55:28 +02:00
ingest-geoip Fix GeoIpProcessorFactoryTests on windows (#45668) 2019-08-28 18:02:25 -04:00
ingest-user-agent Expose cache setting in UserAgentPlugin (#46533) 2019-09-16 11:30:38 +02:00
lang-expression Upgrade to Lucene 8.2.0 release (#44859) (#44892) 2019-07-26 08:14:59 +02:00
lang-mustache Update mustache dependency to 0.9.6 (#46243) 2019-09-09 13:42:03 +02:00
lang-painless Add ClassWriter to Painless writing pass (#47140) 2019-09-27 11:04:15 -07:00
mapper-extras Replace SearchContext with QueryShardContext in query builder tests (#46978) 2019-09-23 20:24:02 +02:00
parent-join Replace SearchContext with QueryShardContext in query builder tests (#46978) 2019-09-23 20:24:02 +02:00
percolator Replace SearchContext with QueryShardContext in query builder tests (#46978) 2019-09-23 20:24:02 +02:00
rank-eval Replace SearchContextException with SearchException (#47046) 2019-09-26 14:21:23 +02:00
reindex Convert most awaitBusy calls to assertBusy (#45794) (#47112) 2019-09-29 12:21:46 +01:00
repository-url Repository plugin test cacheability fixes (#46572) 2019-09-11 08:24:55 -07:00
systemd Mark fields in SystemdPluginTests as final 2019-07-24 17:16:50 +09:00
transport-netty4 Set netty system properties in BuildPlugin (#45881) 2019-09-24 10:49:36 -06:00
build.gradle convert modules to use testclusters (#40804) 2019-04-04 11:45:40 +03:00