Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion test_elasticsearch/test_server/test_rest_api_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"cluster/voting_config_exclusions",
"entsearch/10_basic",
"indices/clone",
"indices/data_stream_mappings[0]",
"indices/resolve_cluster",
"indices/settings",
"indices/split",
Expand Down Expand Up @@ -501,7 +502,13 @@ def remove_implicit_resolver(cls, tag_to_remove):
)

# Download the zip and start reading YAML from the files in memory
package_zip = zipfile.ZipFile(io.BytesIO(http.request("GET", yaml_tests_url).data))
package_zip = zipfile.ZipFile(
io.BytesIO(
http.request(
"GET", yaml_tests_url, retries=urllib3.Retry(3, redirect=10)
).data
)
)

for yaml_file in package_zip.namelist():
if not re.match(r"^.*\/tests\/.*\.ya?ml$", yaml_file):
Expand Down
2 changes: 1 addition & 1 deletion test_elasticsearch/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def wipe_data_streams(client):
def wipe_indices(client):
indices = client.cat.indices().strip().splitlines()
if len(indices) > 0:
index_names = [i.split(" ")[2] for i in indices]
index_names = [i.split()[2] for i in indices]
client.options(ignore_status=404).indices.delete(
index=",".join(index_names),
expand_wildcards="all",
Expand Down