From a9c644464609a58fd7566c1de249b2cd20cc6d0c Mon Sep 17 00:00:00 2001 From: Yasser Elsayed Date: Tue, 30 Jul 2019 11:16:22 -0700 Subject: [PATCH 1/3] Typo fix --- .../java/com/google/auth/oauth2/ComputeEngineCredentials.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java b/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java index f3219f230..ff3924056 100644 --- a/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java +++ b/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java @@ -269,7 +269,7 @@ public String getAccount() { try { serviceAccountEmail = getDefaultServiceAccount(); } catch (IOException ex) { - throw new RuntimeException("Failed to to get service account", ex); + throw new RuntimeException("Failed to get service account", ex); } } return serviceAccountEmail; From 5ebdd54263c4f23a9311b132fcb79bd9981e039d Mon Sep 17 00:00:00 2001 From: Yasser Elsayed Date: Wed, 31 Jul 2019 00:00:18 -0700 Subject: [PATCH 2/3] Update ComputeEngineCredentialsTest.java --- .../com/google/auth/oauth2/ComputeEngineCredentialsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java b/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java index c00056f51..8050da2f5 100644 --- a/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java +++ b/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java @@ -235,7 +235,7 @@ public LowLevelHttpResponse execute() throws IOException { credentials.getAccount(); fail("Fetching default service account should have failed"); } catch (RuntimeException e) { - assertEquals("Failed to to get service account", e.getMessage()); + assertEquals("Failed to get service account", e.getMessage()); assertNotNull(e.getCause()); assertTrue(e.getCause().getMessage().contains("404")); } From 3d6f11989cf43770eae303db12f9a828b38fbc0f Mon Sep 17 00:00:00 2001 From: Yasser Elsayed Date: Wed, 31 Jul 2019 14:48:34 -0700 Subject: [PATCH 3/3] Update ComputeEngineCredentialsTest.java --- .../com/google/auth/oauth2/ComputeEngineCredentialsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java b/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java index 8050da2f5..91d138918 100644 --- a/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java +++ b/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java @@ -271,7 +271,7 @@ public LowLevelHttpResponse execute() throws IOException { credentials.getAccount(); fail("Fetching default service account should have failed"); } catch (RuntimeException e) { - assertEquals("Failed to to get service account", e.getMessage()); + assertEquals("Failed to get service account", e.getMessage()); assertNotNull(e.getCause()); assertTrue(e.getCause().getMessage().contains("Empty content")); }