Skip to content

Commit 291564e

Browse files
committed
validate which key is being used/deleted
1 parent cd6f473 commit 291564e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

auth/src/test/java/com/google/cloud/auth/samples/AuthExampleIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ public void testAuthApiKey() throws IOException, IllegalStateException {
7070
Key apiKey = null;
7171
try {
7272
apiKey = AuthTestUtils.createTestApiKey(projectId, keyDisplayName, service, method);
73-
73+
System.out.println("created key " + apiKey.getKeyString());
7474
String output = ApiKeyAuthExample.authenticateUsingApiKey(apiKey.getKeyString());
7575

7676
assertTrue(output.contains("magnitude:"));
7777
} finally {
7878
if (apiKey != null) {
79+
System.out.println("deleting key " + apiKey.getKeyString());
7980
AuthTestUtils.deleteTestApiKey(apiKey.getName());
8081
}
8182
}

0 commit comments

Comments
 (0)