From 07c5b67ccbc5406138fcaaf00be7feee2cceea1c Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Mon, 4 Nov 2024 13:34:05 -0500 Subject: [PATCH 1/2] chore: fix string format in mock. --- .../com/google/auth/oauth2/MockMetadataServerTransport.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java b/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java index 5a854480c..16eb80e50 100644 --- a/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java +++ b/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java @@ -336,7 +336,6 @@ protected boolean isIdentityDocumentUrl(String url) { protected boolean isMtlsConfigRequestUrl(String url) { return url.equals( - String.format( - ComputeEngineCredentials.getMetadataServerUrl() + S2A.S2A_CONFIG_ENDPOINT_POSTFIX)); + ComputeEngineCredentials.getMetadataServerUrl() + S2A.S2A_CONFIG_ENDPOINT_POSTFIX); } } From 7daa54bdaf5c2ca3c8746a2330da71ee87f34518 Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Mon, 4 Nov 2024 14:00:59 -0500 Subject: [PATCH 2/2] lint. --- .../com/google/auth/oauth2/MockMetadataServerTransport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java b/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java index 16eb80e50..62727b149 100644 --- a/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java +++ b/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java @@ -336,6 +336,6 @@ protected boolean isIdentityDocumentUrl(String url) { protected boolean isMtlsConfigRequestUrl(String url) { return url.equals( - ComputeEngineCredentials.getMetadataServerUrl() + S2A.S2A_CONFIG_ENDPOINT_POSTFIX); + ComputeEngineCredentials.getMetadataServerUrl() + S2A.S2A_CONFIG_ENDPOINT_POSTFIX); } }