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

[Build Failure] test_data_lake.TestDataLakeProse.test_3

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers

      Name of Failure:

      test.test_data_lake.TestDataLakeProse.test_3

      Link to task:

      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_698599c737925ccac5c27cc58bb48b2692c74e30_24_02_05_23_53_44/tests?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      Started failing on 7 Feb on an unrelated change. Perhaps related to a change in the ADL docker image.

      Stack trace:

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

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

              Created:
              Updated:
              Resolved: