keycloak-benchmark icon indicating copy to clipboard operation
keycloak-benchmark copied to clipboard

Add possibility to run keycloak functional testsuite against a cluster

Open martin-kanis opened this issue 2 years ago • 2 comments

It could be beneficial to have ability to run Keycloak testsuite (probably just a subgroup of tests) against a cluster to verify the deployment. For example whether expiration (lifespan, max-idle) works in crossdc setup, or whether any change in deployment's configuration didn't introduce a security issue, etc.

martin-kanis avatar Aug 11 '23 13:08 martin-kanis

@martin-kanis I understand the value in running Keycloak testsuite against a crossdc setup, however that would be a case to be made in Keycloak and testsuite is probably the right place to host such mechanism. WDYT ? We did explore in the past to see if https://github.com/kami619/KeycloakWithTestKube something like this is possible, but it didn't get much of traction.

kami619 avatar Aug 24 '23 18:08 kami619

Ideas for tests: We need to test and (automate? document?) the following steps for sessions and users:

  • Touch data in primary DC so it is in the cache
  • Switch to secondary DC, bring primary offline (killing router?)
  • Update the data in the secondary DC
  • Switch to primary DC, bring it online (starting router)
  • Touch data in primary DC to see that it has the old data

The purpose of this exercise is to create a test/way to find out whether our DC recovery strategy works correctly.

ahus1 avatar Sep 26 '23 14:09 ahus1