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

Test Failure - TestDataLakeProse.test_3

    • Type: Icon: Build Failure Build Failure
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Python Drivers

      TestDataLakeProse.test_3 started failing on Feb 7 likely caused by PYTHON-3467:

       [2024/02/07 09:43:50.457] =================================== FAILURES ===================================
       [2024/02/07 09:43:50.457] ___________________________ TestDataLakeProse.test_3 ___________________________
       [2024/02/07 09:43:50.457] self = <test.test_data_lake.TestDataLakeProse testMethod=test_3>
       [2024/02/07 09:43:50.457]     def test_3(self):
       [2024/02/07 09:43:50.457]         for mechanism in ["SCRAM-SHA-1", "SCRAM-SHA-256"]:
       [2024/02/07 09:43:50.457] >           client = rs_or_single_client(authMechanism=mechanism)
       [2024/02/07 09:43:50.457] test/test_data_lake.py:94:
       [2024/02/07 09:43:50.457] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2024/02/07 09:43:50.458] test/utils.py:609: in rs_or_single_client
       [2024/02/07 09:43:50.458]     return _mongo_client(h, p, **kwargs)
       [2024/02/07 09:43:50.458] test/utils.py:573: in _mongo_client
       [2024/02/07 09:43:50.458]     return MongoClient(uri, port, **client_options)
       [2024/02/07 09:43:50.458] pymongo/mongo_client.py:823: in __init__
       [2024/02/07 09:43:50.458]     self.__options = options = ClientOptions(username, password, dbase, opts)
       [2024/02/07 09:43:50.458] pymongo/client_options.py:204: in __init__
       [2024/02/07 09:43:50.458]     self.__pool_options = _parse_pool_options(username, password, database, options)
       [2024/02/07 09:43:50.458] pymongo/client_options.py:145: in _parse_pool_options
       [2024/02/07 09:43:50.458]     credentials = _parse_credentials(username, password, database, options)
       [2024/02/07 09:43:50.458] pymongo/client_options.py:51: in _parse_credentials
       [2024/02/07 09:43:50.458]     return _build_credentials_tuple(mechanism, source, username, password, options, database)
       [2024/02/07 09:43:50.458] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2024/02/07 09:43:50.458] mech = 'SCRAM-SHA-1', source = None, user = None, passwd = None
       [2024/02/07 09:43:50.458] extra = {'authMechanism': 'SCRAM-SHA-1', 'document_class': <class 'dict'>, 'tz_aware': False, 'connect': True}
       [2024/02/07 09:43:50.458] database = None
       [2024/02/07 09:43:50.458]     def _build_credentials_tuple(
       [2024/02/07 09:43:50.458]         mech: str,
       [2024/02/07 09:43:50.458]         source: Optional[str],
       [2024/02/07 09:43:50.458]         user: str,
       [2024/02/07 09:43:50.458]         passwd: str,
       [2024/02/07 09:43:50.458]         extra: Mapping[str, Any],
       [2024/02/07 09:43:50.458]         database: Optional[str],
       [2024/02/07 09:43:50.458]     ) -> MongoCredential:
       [2024/02/07 09:43:50.458]         """Build and return a mechanism specific credentials tuple."""
       [2024/02/07 09:43:50.458]         if mech not in ("MONGODB-X509", "MONGODB-AWS", "MONGODB-OIDC") and user is None:
       [2024/02/07 09:43:50.458] >           raise ConfigurationError(f"{mech} requires a username.")
       [2024/02/07 09:43:50.458] E           pymongo.errors.ConfigurationError: SCRAM-SHA-1 requires a username.
       [2024/02/07 09:43:50.458] pymongo/auth.py:134: ConfigurationError
      

      https://spruce.mongodb.com/task/mongo_python_driver_data_lake_spec_tests__platform~ubuntu_22.04_auth~auth_python_version~3.10_c_extensions~with_c_extensions_atlas_data_lake_tests_4bc2a482d9b2c1530d9a9cd954142c02a0b08bb5_24_02_02_15_53_48/tests?execution=0&sortBy=STATUS&sortDir=ASC

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

              Created:
              Updated:
              Resolved: