Skip to content

Commit c9d715b

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public void testAuthApiKey() throws IOException, IllegalStateException {
7070
Key apiKey = null;
7171
try {
7272
apiKey = AuthTestUtils.createTestApiKey(projectId, keyDisplayName, service, method);
73+
assertNotNull(apiKey)
7374
System.out.println("created key " + apiKey.getKeyString());
7475
String output = ApiKeyAuthExample.authenticateUsingApiKey(apiKey.getKeyString());
7576

0 commit comments

Comments
 (0)