Closed dblock closed 10 months ago
Merging #569 (66373f1) into main (dcb79cc) will increase coverage by
0.00%
. Report is 1 commits behind head on main. The diff coverage is75.00%
.
@@ Coverage Diff @@
## main #569 +/- ##
=======================================
Coverage 71.69% 71.69%
=======================================
Files 87 87
Lines 7875 7886 +11
=======================================
+ Hits 5646 5654 +8
- Misses 2229 2232 +3
Files | Coverage Δ | |
---|---|---|
opensearchpy/__init__.py | 100.00% <ø> (ø) |
|
opensearchpy/_async/helpers/document.py | 57.38% <100.00%> (ø) |
|
opensearchpy/_async/helpers/index.py | 60.80% <100.00%> (ø) |
|
opensearchpy/_async/http_aiohttp.py | 83.45% <100.00%> (+0.12%) |
:arrow_up: |
opensearchpy/connection/async_connections.py | 95.91% <100.00%> (+0.17%) |
:arrow_up: |
opensearchpy/connection_pool.py | 89.74% <100.00%> (ø) |
|
opensearchpy/helpers/actions.py | 44.22% <ø> (ø) |
|
opensearchpy/helpers/asyncsigner.py | 95.65% <100.00%> (ø) |
|
opensearchpy/helpers/field.py | 93.37% <100.00%> (ø) |
|
opensearchpy/helpers/index.py | 64.50% <100.00%> (ø) |
|
... and 7 more |
Description
Added Windows CI.
Fixed failing tests:
The constructor
ConnectionError("abandon ship")
had wrong arguments (it takes 3), so as writtenstr(ConnectionError("abandon ship"))
will fail. On *nix it seems to re-raise the object as an exception as is, but on Windows it re-raisesstr(error)
and fails withexception str() failed
.This
DummyConnection
object is being compared to another in a heap. Not sure why it only hitslt
on Windows, but if these objects are to be compared, they should havelt
implemented. Probably a real bug that only shows up on Windows.Looks like the SSL context is being created somewhere else than in
AIOHttpConnection
as a side-effect, causing the number of calls toload_verify_locations
to be different. To fix I used a mock SSL context instead of patching the global method, therefore only counting the calls we makle.Issues Resolved
Closes https://github.com/opensearch-project/opensearch-py/issues/347.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.