Commit 828f50f
committed
test(auth): Assert IOException on custom universe domain with delegation
This commit adds a test case to ServiceAccountCredentialsTest to verify that configuring a custom Universe Domain along with Domain-Wide Delegation safely throws the expected IOException. Domain-wide delegation is not supported outside of the default Google universe.
This brings the Java library's test suite into alignment with the expected auth specification. Other Google Cloud client libraries like Go, Node.js, and Python natively assert that this configuration combination throws a validation error during credential initialization or token generation.1 parent 051aea7 commit 828f50f
1 file changed
Lines changed: 10 additions & 0 deletions
File tree
- google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1762 | 1762 | | |
1763 | 1763 | | |
1764 | 1764 | | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
1765 | 1775 | | |
1766 | 1776 | | |
1767 | 1777 | | |
| |||
0 commit comments