OpenSearch/qa
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
..
ccs-unavailable-clusters Testclusters: Convert additional projects (#43625) 2019-06-28 16:44:42 +03:00
die-with-dignity Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
evil-tests Add a system property to ignore awareness attributes (#46375) 2019-09-06 09:29:27 +02:00
full-cluster-restart Force flush in FullClusterRestartIT#testRecovery (#46956) 2019-09-22 19:04:01 -04:00
logging-config Deprecation messages with the same key but different x-opaque-id are allowed backport(#44587) #44682 2019-07-22 11:38:11 +02:00
mixed-cluster [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
multi-cluster-search Add support for aliases in queries on _index. (#46944) 2019-09-23 13:21:37 -07:00
no-bootstrap-tests Spawn controller processes from a different directory on macOS (#47013) 2019-09-27 14:02:40 +01:00
os Exclude the demo folder form the JDK (#47161) 2019-09-27 10:35:34 +03:00
rolling-upgrade Strengthen testUpdate in rolling upgrade 2019-09-03 18:40:57 -04:00
smoke-test-client Testing conventions: add support for checking base classes (#36650) 2019-01-08 13:39:03 +02:00
smoke-test-http Convert most awaitBusy calls to assertBusy (#45794) (#47112) 2019-09-29 12:21:46 +01:00
smoke-test-ingest-disabled Testclusters: convert left-overs from checkPart1 (#43370) 2019-06-25 19:14:45 +03:00
smoke-test-ingest-with-all-dependencies Testclusters: Convert additional projects (#43625) 2019-06-28 16:44:42 +03:00
smoke-test-multinode Testclusters: convert left-overs from checkPart1 (#43370) 2019-06-25 19:14:45 +03:00
smoke-test-plugins Testclusters: convert left-overs from checkPart1 (#43370) 2019-06-25 19:14:45 +03:00
unconfigured-node-name Pass COMPUTERNAME env var to elasticsearch.bat (#45763) 2019-08-26 11:44:31 -04:00
verify-version-constants [Backport] Replace usages RandomizedTestingTask with built-in Gradle Test (#40978) (#40993) 2019-04-09 11:52:50 -07:00
wildfly Restrict which tasks can use testclusters (#45198) 2019-08-09 13:38:01 +03:00
build.gradle Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00