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

[Build Failure] test_encryption.TestKmsRetryProse.test_kms_retry

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Name of Failure:

      test.asynchronous.test_encryption.TestKmsRetryProse.test_kms_retry

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_encryption_pyopenssl_rhel8_python3.12_test_latest_standalone_noauth_nossl_sync_async_ff2f95987f945fed483dcf802082ac3a173eb905_24_12_04_00_16_47/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      PYTHON-2560

      Stack trace:

       [2024/12/03 18:42:41.683] FAILURE: NotImplementedError: Cannot make file object of OpenSSL.SSL.Connection ()
       [2024/12/03 18:42:41.683] self = <test.asynchronous.test_encryption.TestKmsRetryProse testMethod=test_kms_retry>
       [2024/12/03 18:42:41.683]     async def test_kms_retry(self):
       [2024/12/03 18:42:41.683] >       await self._test("aws", {"region": "foo", "key": "bar", "endpoint": "127.0.0.1:9003"})
       [2024/12/03 18:42:41.683] test/asynchronous/test_encryption.py:2924: 
       [2024/12/03 18:42:41.683] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2024/12/03 18:42:41.683] test/asynchronous/test_encryption.py:2901: in _test
       [2024/12/03 18:42:41.683]     await self.http_post("/reset")
       [2024/12/03 18:42:41.683] test/asynchronous/test_encryption.py:2895: in http_post
       [2024/12/03 18:42:41.683]     res = conn.getresponse()
       [2024/12/03 18:42:41.683] /opt/python/3.12/lib/python3.12/http/client.py:1424: in getresponse
       [2024/12/03 18:42:41.683]     response = self.response_class(self.sock, method=self._method)
       [2024/12/03 18:42:41.683] /opt/python/3.12/lib/python3.12/http/client.py:269: in __init__
       [2024/12/03 18:42:41.683]     self.fp = sock.makefile("rb")
       [2024/12/03 18:42:41.683] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2024/12/03 18:42:41.683] self = <pymongo.pyopenssl_context._sslConn object at 0x7fb88487b680>
       [2024/12/03 18:42:41.683] args = ('rb',), kwargs = {}
       [2024/12/03 18:42:41.683]     def makefile(self, *args: Any, **kwargs: Any) -> typing.NoReturn:
       [2024/12/03 18:42:41.683]         """
       [2024/12/03 18:42:41.683]         The makefile() method is not implemented, since there is no dup
       [2024/12/03 18:42:41.683]         semantics for SSL connections
       [2024/12/03 18:42:41.683]     
       [2024/12/03 18:42:41.683]         :raise: NotImplementedError
       [2024/12/03 18:42:41.683]         """
       [2024/12/03 18:42:41.683] >       raise NotImplementedError(
       [2024/12/03 18:42:41.683]             "Cannot make file object of OpenSSL.SSL.Connection"
       [2024/12/03 18:42:41.683]         )
       [2024/12/03 18:42:41.683] E       NotImplementedError: Cannot make file object of OpenSSL.SSL.Connection
       [2024/12/03 18:42:41.683] .hatch/data/env/virtual/test/lib/python3.12/site-packages/OpenSSL/SSL.py:2560: NotImplementedError
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: