Skip to content

google-auth: Clean up test coverage and outdated docstrings for mTLS and Identity Pool #17758

Description

@nbayati

There are a few minor gaps in test coverage and test documentation that should be cleaned up in the google-auth library:

  • In tests/transport/test_aio_mtls_helper.py, the docstring and comments for test_get_client_cert_and_key_callback_sync reference a TypeError fallback that is no longer used (the code now uses inspect.isawaitable()).
  • The MdsMtlsAdapter.close() method in google/auth/compute_engine/_mtls.py lacks test coverage.
  • There are several RefreshError exception paths in google/auth/identity_pool.py (specifically around leaf certificate retrieval and parsing) that are currently missing test coverage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    autheffort: lowpriority: p3Desirable enhancement or fix. May not be included in next release.testingtype: cleanupAn internal cleanup or hygiene concern.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions