Skip to content

Commit aab90fb

Browse files
Remove deprecated transport module (#2841) (#2886)
(cherry picked from commit e3e9f9f) Co-authored-by: Quentin Pradet <[email protected]>
1 parent 5d5b339 commit aab90fb

File tree

2 files changed

+0
-75
lines changed

2 files changed

+0
-75
lines changed

elasticsearch/transport.py

-57
This file was deleted.

test_elasticsearch/test_transport.py

-18
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
ElasticsearchWarning,
3939
UnsupportedProductError,
4040
)
41-
from elasticsearch.transport import get_host_info
4241

4342

4443
class DummyNode(BaseNode):
@@ -167,23 +166,6 @@ def mark_live(self, connection):
167166
}"""
168167

169168

170-
class TestHostsInfoCallback:
171-
def test_master_only_nodes_are_ignored(self):
172-
nodes = [
173-
{"roles": ["master"]},
174-
{"roles": ["master", "data", "ingest"]},
175-
{"roles": ["data", "ingest"]},
176-
{"roles": []},
177-
{},
178-
]
179-
chosen = [
180-
i
181-
for i, node_info in enumerate(nodes)
182-
if get_host_info(node_info, i) is not None
183-
]
184-
assert [1, 2, 3, 4] == chosen
185-
186-
187169
class TestTransport:
188170
def test_request_timeout_extracted_from_params_and_passed(self):
189171
client = Elasticsearch(

0 commit comments

Comments
 (0)