-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Python Drivers
Name of Failure:
test.test_data_lake.TestDataLakeProse.test_3
Link to task:
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
- is caused by
-
PYTHON-3467 OIDC: Automatic token acquisition for Azure Identity Provider
- Closed
- is duplicated by
-
PYTHON-4211 Test Failure - TestDataLakeProse.test_3
- Closed