Skip to content

Commit

Permalink
Test coverage for Issue 52004: Session associated with APIKey can use…
Browse files Browse the repository at this point in the history
…d even after APIKey is deleted.
  • Loading branch information
labkey-sweta committed Jan 17, 2025
1 parent 14d72e5 commit 182dcbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/labkey/test/tests/ApiKeyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,11 @@ public void testSessionInvalidatesAfterAPIKeyChange() throws IOException
log("Deleting the apikey");
deleteAPIKeys(_generatedApiKeys);

/*
Regression coverage for Issue 52004: Session associated with APIKey can used even after APIKey is deleted.
*/
log("Verifying the session associated with deleted apikey is invalid");
// verifyInvalidAPIKey(cn, false);
verifyInvalidAPIKey(cn, false);

log("Verifying that new connection cannot be created after apikey is deleted");
verifyInvalidAPIKey(createApiKeyConnection(apiKey1, false), false);
Expand Down

0 comments on commit 182dcbd

Please sign in to comment.