Skip to content

Commit

Permalink
Disable tests for External Infinispan feature (#885)
Browse files Browse the repository at this point in the history
Disable tests that manually manipulate data in the external Infinispan. Keycloak is unable to find the data and does not act properly.

Those tests are useful with Persistent Sessions only

Signed-off-by: Pedro Ruivo <[email protected]>
  • Loading branch information
pruivo authored Jul 4, 2024
1 parent 18d84ab commit 5329608
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ public void testRemoteStoreDiscrepancyMissingSessionInPrimaryRemoteISPN() throws

@Test
public void testRemoteStoreDiscrepancyMissingSessionInBackupRemoteISPN() throws URISyntaxException, IOException, InterruptedException {
// Test removes the session of one of the sites. If the logout reaches that site, it won't find the session
// and do nothing.
Assumptions.assumeFalse(SKIP_EMBEDDED_CACHES, "Test is invalid with external infinispan.");

// Create a new user session
Map<String, Object> tokensMap = LOAD_BALANCER_KEYCLOAK.passwordGrant(REALM_NAME, CLIENTID, USERNAME, MAIN_PASSWORD);

Expand Down Expand Up @@ -125,6 +129,8 @@ public void testRemoteStoreDiscrepancyMissingSessionInBackupRemoteISPN() throws

@Test
public void testRemoteStoreDiscrepancyMissingSessionInAllRemoteISPN() throws URISyntaxException, IOException, InterruptedException {
// Test removes the user session manually from both sites. Nothing to test.
Assumptions.assumeFalse(SKIP_EMBEDDED_CACHES, "Test is invalid with external infinispan.");
// Create a new user session
Map<String, Object> tokensMap = LOAD_BALANCER_KEYCLOAK.passwordGrant(REALM_NAME, CLIENTID, USERNAME, MAIN_PASSWORD);
LOG.info("processing session " + tokensMap.get("session_state"));
Expand Down

0 comments on commit 5329608

Please sign in to comment.