From 2be6dec23897a73fa5d3fd7f1ee40fc4f863bb8b Mon Sep 17 00:00:00 2001 From: Tomas Kyjovsky Date: Tue, 3 Apr 2018 10:46:06 +0200 Subject: [PATCH] KEYCLOAK-7064 Ability to run performance testsuite with different server versions --- testsuite/performance/README.md | 2 ++ testsuite/performance/README.provisioning-parameters.md | 1 + testsuite/performance/tests/pom.xml | 5 +++++ 3 files changed, 8 insertions(+) diff --git a/testsuite/performance/README.md b/testsuite/performance/README.md index dd97d7abdd..4bc86758c2 100644 --- a/testsuite/performance/README.md +++ b/testsuite/performance/README.md @@ -129,6 +129,8 @@ Individual properties can be overriden from command line via `-D` params. To use a custom properties file specify `-Ddataset.properties.file=ABSOLUTE_PATH_TO_FILE` instead of `-Ddataset`. +To generate data using a different version of Keycloak Admin Client set property `-Dserver.version=SERVER_VERSION` to match the version of the provisioned server. + #### Dataset Parameters | Property | Description | Value in the Default Dataset | diff --git a/testsuite/performance/README.provisioning-parameters.md b/testsuite/performance/README.provisioning-parameters.md index c09fb3eaae..b282ff4f8c 100644 --- a/testsuite/performance/README.provisioning-parameters.md +++ b/testsuite/performance/README.provisioning-parameters.md @@ -23,6 +23,7 @@ | Category | Setting | Property | Default Value | |-------------|-------------------------------|------------------------------------|--------------------------------------------------------------------| +| Keycloak | Server version | `server.version` | `${project.version}` from the project `pom.xml` file. | | Scaling[1] | Scale for cluster | `keycloak.scale` | Maximum size[2] of cluster. | | | Scale for DC1 | `keycloak.dc1.scale` | Maximum size of DC1. | | | Scale for DC2 | `keycloak.dc2.scale` | Maximum size of DC2. | diff --git a/testsuite/performance/tests/pom.xml b/testsuite/performance/tests/pom.xml index b3e78607fb..77af264e5e 100644 --- a/testsuite/performance/tests/pom.xml +++ b/testsuite/performance/tests/pom.xml @@ -65,18 +65,22 @@ org.keycloak keycloak-adapter-core + ${server.version} org.keycloak keycloak-adapter-spi + ${server.version} org.keycloak keycloak-core + ${server.version} org.keycloak keycloak-common + ${server.version} com.fasterxml.jackson.core @@ -89,6 +93,7 @@ org.keycloak keycloak-admin-client + ${server.version} org.jboss.spec.javax.ws.rs