Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3191

Test Failure - Versioned API requireApiVersion1

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.1
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

      The Versioned API requireApiVersion1 test suite is failing after PYTHON-3186:

       [2022/03/31 07:41:10.282] ERROR [13.513s]: test_sigstop_sigcont (test_client.TestClient)
       [2022/03/31 07:41:10.282] ----------------------------------------------------------------------
       [2022/03/31 07:41:10.282] Traceback (most recent call last):
       [2022/03/31 07:41:10.282]   File "/data/mci/6fd0b696e5e4ea6d50c34212900fa4c6/src/test/test_client.py", line 1716, in test_sigstop_sigcont
       [2022/03/31 07:41:10.282]     outs, _ = p.communicate(input=b"q\n", timeout=10)
       [2022/03/31 07:41:10.282]   File "/opt/python/3.10/lib/python3.10/subprocess.py", line 1149, in communicate
       [2022/03/31 07:41:10.282]     stdout, stderr = self._communicate(input, endtime, timeout)
       [2022/03/31 07:41:10.282]   File "/opt/python/3.10/lib/python3.10/subprocess.py", line 2001, in _communicate
       [2022/03/31 07:41:10.282]     self._check_timeout(endtime, orig_timeout, stdout, stderr)
       [2022/03/31 07:41:10.282]   File "/opt/python/3.10/lib/python3.10/subprocess.py", line 1193, in _check_timeout
       [2022/03/31 07:41:10.282]     raise TimeoutExpired(
       [2022/03/31 07:41:10.282] subprocess.TimeoutExpired: Command '['/opt/python/3.10/bin/python3', '/data/mci/6fd0b696e5e4ea6d50c34212900fa4c6/src/test/sigstop_sigcont.py', 'mongodb://bob:pwd123@localhost:27017/?server_api=%3Cpymongo.server_api.ServerApi+object+at+0x7f96f19e4f10%3E']' timed out after 10 seconds
      

      https://evergreen.mongodb.com/task/mongo_python_driver_stable_api_tests__platform~ubuntu_18.04_auth~auth_python_version~3.10_versionedApi~requireApiVersion1_test_latest_standalone_484058e18d95793a95d3d7ad5a4e7f7e3f6161d9_22_03_31_04_50_22

      The problem is that server_api is a kwarg only parameter and can't be set from the URI.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: