You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is 2 issue :
It looks like we can't connect pytest-elasticsearch with an elastic client above 8.0.0 on a server that already exist with the following line es_client = factories.elasticsearch("elasticsearch_nooproc")
Elastic client changed their way to connect with the elastic-transport-python API and since there is the following error.
The second issue is smaller but when you use a toml file for configuration there is wrong type raised by elastic-transport-python that raise this error.
`TypeError: '<' not supported between instances of 'str' and 'int'`~/.local/lib/python3.10/site-packages/elastic_transport/_models.py:305: TypeError
I've found a small (disgracious) work around in the factories.py file
yieldNoopElasticsearch(host=es_host, port=es_port) # master yieldNoopElasticsearch(host=es_host, port=int(es_port)) # work around
What action do you want to perform
There is 2 issue :
It looks like we can't connect pytest-elasticsearch with an elastic client above 8.0.0 on a server that already exist with the following line
es_client = factories.elasticsearch("elasticsearch_nooproc")
Elastic client changed their way to connect with the elastic-transport-python API and since there is the following error.
The second issue is smaller but when you use a toml file for configuration there is wrong type raised by elastic-transport-python that raise this error.
I've found a small (disgracious) work around in the factories.py file
The toml file I used
maybe i've missed some breaking change with elasticsearch-py
BTW my requiriement.txt
The text was updated successfully, but these errors were encountered: