Azure / Azure/azure-sdk-for-python

test_change_feed_async test fails locally

Open
#38,345 0 comments 0 reactions 0 assignees View on GitHub
Client Cosmos
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**
![Image](https://github.com/user-attachments/assets/2216f98e-16a8-4e45-a194-ad6861218255)

**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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.