OpenSearch/x-pack/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
..
core-rest-tests-with-security Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
evil-tests Convert most awaitBusy calls to assertBusy (#45794) (#47112) 2019-09-29 12:21:46 +01:00
full-cluster-restart Partly revert globalInfo.ready check (#45960) 2019-08-27 13:01:56 +03:00
kerberos-tests Testfixtures allow a single service only (#46780) 2019-09-23 14:13:49 +03:00
multi-cluster-search-security Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
multi-node Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
oidc-op-tests Testfixtures allow a single service only (#46780) 2019-09-23 14:13:49 +03:00
openldap-tests Testfixtures allow a single service only (#46780) 2019-09-23 14:13:49 +03:00
reindex-tests-with-security Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
rolling-upgrade Convert most awaitBusy calls to assertBusy (#45794) (#47112) 2019-09-29 12:21:46 +01:00
rolling-upgrade-basic Provide names for all artifact repositories (#41857) 2019-05-07 06:35:28 -04:00
rolling-upgrade-multi-cluster Unmute testBiDirectionalIndexFollowing (#45641) (#45792) 2019-08-21 20:53:14 +02:00
saml-idp-tests Mute failing SamlAuthenticationIT tests (#46369) 2019-09-05 12:25:43 +03:00
security-client-tests Convert most awaitBusy calls to assertBusy (#45794) (#47112) 2019-09-29 12:21:46 +01:00
security-example-spi-extension Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
security-migrate-tests [Backport] Remove dependency substitutions 7.x (#42866) 2019-06-04 13:50:23 -07:00
security-setup-password-tests Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
security-tools-tests CLI tools: write errors to stderr instead of stdout (#45586) 2019-08-21 14:46:07 -04:00
smoke-test-monitoring-with-watcher Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
smoke-test-plugins Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
smoke-test-plugins-ssl Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
smoke-test-security-with-mustache Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
smoke-test-watcher watcher tests - increase stop timeout to 60s (#45679) (#45934) 2019-08-26 08:34:54 -05:00
smoke-test-watcher-with-security watcher tests - increase stop timeout to 60s (#45679) (#45934) 2019-08-26 08:34:54 -05:00
src/main/java/org/elasticsearch/xpack/test Convert most awaitBusy calls to assertBusy (#45794) (#47112) 2019-09-29 12:21:46 +01:00
third-party Testfixtures allow a single service only (#46780) 2019-09-23 14:13:49 +03:00
transport-client-tests [Backport] Remove dependency substitutions 7.x (#42866) 2019-06-04 13:50:23 -07:00
build.gradle Remove xpack dependencies from qa rest modules (#41134) (7.x backport) (#41202) 2019-04-15 19:14:43 +02:00