elastic / elasticsearch-py

Official Python client for Elasticsearch
https://ela.st/es-python
Apache License 2.0
4.17k stars 1.17k forks source link

Fix tests without destructive_requires_names=false #2573

Closed pquentin closed 1 month ago

pquentin commented 1 month ago

In CI, we launch Elasticsearch with --env action.destructive_requires_name=false, which allows to delete all indices in one call. However, when I run tests locally, I'm not likely to have such an option enabled. And since it's only useful in one function, I thought I would change wipe_indices to not require this setting.

github-actions[bot] commented 1 month ago

A documentation preview will be available soon.

Request a new doc build by commenting * Rebuild this PR: `run docs-build` * Rebuild this PR and all Elastic docs: `run docs-build rebuild` `run docs-build` is much faster than `run docs-build rebuild`. A `rebuild` should only be needed in rare situations. If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status [here](https://buildkite.com/elastic/docs-build).