Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[testUtils/esTestCluster] use more standard api style #13197

Merged
merged 1 commit into from
Jul 28, 2017

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Jul 28, 2017

#13099 added the esTestCluster test util, and used a somewhat strange API so that we could track state that wasn't "module level". That goal has already clashed with adding new features, and rather than keep down this road I think we should just track this tiny bit of state that is actually process specific at the module level.

The only impact this pr has on the rest of the code is that rather than calling esTestCluster.use({ name: '...' }) code should call createEsTestCluster({ name: '...' })

@spalger spalger merged commit d36080b into elastic:master Jul 28, 2017
@spalger spalger deleted the refactor/create-es-test-cluster branch July 28, 2017 22:50
spalger added a commit that referenced this pull request Jul 28, 2017
spalger added a commit that referenced this pull request Jul 28, 2017
@spalger
Copy link
Contributor Author

spalger commented Jul 28, 2017

6.0: d0a86ed
6.x/6.1: f3cbc4d

spalger added a commit to spalger/kibana that referenced this pull request Aug 9, 2017
@spalger spalger added the v5.6.0 label Aug 9, 2017
@spalger
Copy link
Contributor Author

spalger commented Aug 9, 2017

Backporting to 5.6 in #13408

spalger added a commit that referenced this pull request Aug 9, 2017
* [partial backport] extract kbnServer test utils from #12554

* Implement esTestCluster test util (#13099)

* [es/tests] remove unused module

* [testUtil/es] add utility for starting es nodes in tests

* [ftr/tests] use esTestCluster util to start es

* [es/tests/routes] use esTestCluster to start own es

* [testUtils/kbnServer] disable uiSettings unless plugins are enabled

* [testUtils/esTestCluster] use standard test es port by default

* [server/http/tests] add esTestCluster to setup

* [test/config] unify es test config into a single module

* [testUtils/esTestCluster] directory is no longer configurable

* [testUtils/esTestCluster] throw when es.start() is called again without es.stop()

* [testUtils/esTestCluster] is* checks should not mutate state

(cherry picked from commit 6748b22)

* [testUtils/esTestCluster] use more standard api style (#13197)

(cherry picked from commit d36080b)

* [scanner] use new esTestConfig service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant