Azure / Azure/azure-sdk-for-python
test_change_feed_async test fails locally
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
- **Package Name**: azure-cosmos
- **Package Version**:
- **Operating System**: OSX, Windows
- **Python Version**: Python 3.12
**Describe the bug**
The tests under `test_change_feed_async.py` file fails with the following error message, when it was executed locally. The test passes under CI pipeline, so this wasn't blocking other developers.
`azure.core.exceptions.ServiceRequestError: Cannot connect to host ... ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')]`
**To Reproduce**
Steps to reproduce the behavior:
1. Open the package `azure-sdk-for-python/sdk/cosmos/azure-cosmos` from Pycharm
2. Navigate to the test file located: `test/test_change_feed_async.py`
3. Run any tests under `TestChangeFeedAsync` class, such as `test_get_feed_ranges`
**Expected behavior**
Test should pass without any error or exception
**Screenshots**

**Additional context**
The temporally workaround was to set `DisableSSLVerification` to be true in `setup()` function. This helped developers to add or run more tests under the test class, but this change cannot be pushed, since CI pipeline worked without it.
Contributor guide
Assessment
This issue has not been assessed yet.