Skip to content

Comments

Fix environment-dependent test failures and modernize auth exception …#1135

Open
ajs424 wants to merge 1 commit intomainfrom
mock-tests-refactor
Open

Fix environment-dependent test failures and modernize auth exception …#1135
ajs424 wants to merge 1 commit intomainfrom
mock-tests-refactor

Conversation

@ajs424
Copy link
Contributor

@ajs424 ajs424 commented Feb 11, 2026

…handling

Change-Id: I18e1727e360c01f635720cf9d5cf77dc24c21e22

To resolve these long-standing failures, I shifted the library’s test suite from an environment-dependent state to a self-bootstrapping. I modified the ConfigurationLoaderTestProvider to automatically detect and generate missing mock directories and .ini files, ensuring the suite is testable immediately upon a fresh clone. To eliminate test interference, I refactored OAuth2TokenBuilderTest to utilize unique, temporary system directories for its operations. This sandboxing prevents the destructive deletion of shared files, allowing the versioned tests to run deterministically without requiring elevated permissions.

Finally, I removed stale references to CredentialsLoaderException, which had been deprecated in newer versions of the google/auth package. These changes collectively result in a 100% pass rate, making the library more resilient and portable for all users.

…handling

Change-Id: I18e1727e360c01f635720cf9d5cf77dc24c21e22
@ajs424 ajs424 requested a review from Raibaz February 11, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant