Tests which rely on the "server" hostname are always skipped

XMLWordPrintableJSON

    • Type: Build Failure
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      Tests which rely on the "server" hostname are always skipped, for example:

       [2025/06/11 16:39:43.755] test/asynchronous/test_ssl.py::TestSSL::test_validation_with_system_ca_certs SKIPPED [ 87%]
      

      https://spruce.mongodb.com/task/mongo_python_driver_mongodb_v4.0_test_server_version_python3.9_async_auth_ssl_sharded_cluster_cov_54846cd11029d6c3302fc55c2ead10041148f6a8_25_06_11_23_24_59/logs?execution=0

      Way back in PYTHON-1075 we introduced TLS tests for hostname verification. To do so, we added "server" to /etc/hosts as an alias for "localhost" and assert that attempting to connect to "mongodb://server/?tls=true" fails because the certificate is only valid for "localhost", 127.0.0.1, and ::1.

      The culprit appears to be DRIVERS-3119.

              Assignee:
              Noah Stapp
              Reporter:
              Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: