2014-06-24 21:44:34 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<parent>
|
|
|
|
<artifactId>keycloak-testsuite-pom</artifactId>
|
|
|
|
<groupId>org.keycloak</groupId>
|
2014-09-01 08:17:00 +00:00
|
|
|
<version>1.0-final-SNAPSHOT</version>
|
2014-06-24 21:44:34 +00:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<artifactId>keycloak-testsuite-performance-web</artifactId>
|
|
|
|
<name>Keycloak TestSuite for Web Performance</name>
|
2014-08-06 21:50:01 +00:00
|
|
|
<description/>
|
2014-06-24 21:44:34 +00:00
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-testsuite-integration</artifactId>
|
|
|
|
<version>${project.version}</version>
|
2014-06-25 12:29:38 +00:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.jboss.spec.javax.servlet</groupId>
|
|
|
|
<artifactId>jboss-servlet-api_3.0_spec</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2014-06-24 21:44:34 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-testsuite-tools</artifactId>
|
|
|
|
<version>${project.version}</version>
|
2014-06-26 16:02:53 +00:00
|
|
|
<classifier>classes</classifier>
|
2014-06-25 12:29:38 +00:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Needed by undertow -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.spec.javax.servlet</groupId>
|
|
|
|
<artifactId>jboss-servlet-api_3.1_spec</artifactId>
|
|
|
|
<version>1.0.0.Final</version>
|
2014-06-24 21:44:34 +00:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Resteasy deps specified here as we want latest version of them -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>jaxrs-api</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-jaxrs</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-simple</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-client</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-crypto</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-multipart-provider</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-jackson-provider</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-undertow</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
2014-06-27 16:14:42 +00:00
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.jmeter</groupId>
|
|
|
|
<artifactId>ApacheJMeter_java</artifactId>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcprov-jdk15on</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcmail-jdk15on</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcmail-jdk15</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.apache.tika</groupId>
|
|
|
|
<artifactId>tika-parsers</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
|
2014-06-24 21:44:34 +00:00
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<source>${maven.compiler.source}</source>
|
|
|
|
<target>${maven.compiler.target}</target>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<workingDirectory>${project.basedir}</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
2014-06-27 16:14:42 +00:00
|
|
|
<profiles>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>keycloak-perf-server</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<mainClass>org.keycloak.testsuite.performance.web.KeycloakPerfServer</mainClass>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>performance-test</id>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<host>localhost</host>
|
|
|
|
<port>8081</port>
|
|
|
|
<userPrefix>user</userPrefix>
|
|
|
|
<concurrentUsers>50</concurrentUsers>
|
|
|
|
<iterationsPerUser>50</iterationsPerUser>
|
|
|
|
<refreshTokenRequestsPerIteration>2</refreshTokenRequestsPerIteration>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.lazerycode.jmeter</groupId>
|
|
|
|
<artifactId>jmeter-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<suppressJMeterOutput>false</suppressJMeterOutput>
|
|
|
|
<propertiesSystem>
|
|
|
|
<host>${host}</host>
|
|
|
|
<port>${port}</port>
|
|
|
|
<userPrefix>${userPrefix}</userPrefix>
|
|
|
|
<concurrentUsers>${concurrentUsers}</concurrentUsers>
|
|
|
|
<iterationsPerUser>${iterationsPerUser}</iterationsPerUser>
|
|
|
|
<refreshTokenRequestsPerIteration>${refreshTokenRequestsPerIteration}</refreshTokenRequestsPerIteration>
|
|
|
|
</propertiesSystem>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>jmeter-tests</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>jmeter</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<dependencies>
|
|
|
|
</dependencies>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.lazerycode.jmeter</groupId>
|
|
|
|
<artifactId>jmeter-analysis-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>jmeter-tests-analyze</id>
|
|
|
|
<phase>verify</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>analyze</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<source>${project.build.directory}/jmeter/results/*.jtl</source>
|
|
|
|
<targetDirectory>${project.build.directory}/jmeter/results</targetDirectory>
|
|
|
|
<preserveDirectories>false</preserveDirectories>
|
|
|
|
|
|
|
|
<requestGroups>
|
2014-07-02 20:25:41 +00:00
|
|
|
<requestGroup implementation="com.lazerycode.jmeter.analyzer.config.RequestGroup">
|
2014-06-27 16:14:42 +00:00
|
|
|
<name>aggregatedRequests</name>
|
|
|
|
<pattern>* request</pattern>
|
|
|
|
</requestGroup>
|
2014-07-02 20:25:41 +00:00
|
|
|
<requestGroup implementation="com.lazerycode.jmeter.analyzer.config.RequestGroup">
|
2014-06-27 16:14:42 +00:00
|
|
|
<name>codes</name>
|
|
|
|
<pattern>**/perf-app/perf-servlet?code=*</pattern>
|
|
|
|
</requestGroup>
|
|
|
|
</requestGroups>
|
|
|
|
|
|
|
|
<writers>
|
|
|
|
<com.lazerycode.jmeter.analyzer.writer.SummaryTextToStdOutWriter/>
|
|
|
|
<!--<com.lazerycode.jmeter.analyzer.writer.SummaryTextToFileWriter/>-->
|
|
|
|
<com.lazerycode.jmeter.analyzer.writer.HtmlWriter/>
|
|
|
|
<!--<com.lazerycode.jmeter.analyzer.writer.DetailsToCsvWriter/>-->
|
|
|
|
<com.lazerycode.jmeter.analyzer.writer.DetailsToHtmlWriter/>
|
|
|
|
<com.lazerycode.jmeter.analyzer.writer.ChartWriter/>
|
|
|
|
</writers>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
</profiles>
|
|
|
|
|
2014-06-24 21:44:34 +00:00
|
|
|
</project>
|