|
|
@ -2,16 +2,17 @@ import { check } from 'k6'; |
|
|
import { pickRealm, pickClient, pickUser, getTestConfig, wrapWithErrorCounting, Keycloak } from "./lib/keycloak.js"; |
|
|
import { pickRealm, pickClient, pickUser, getTestConfig, wrapWithErrorCounting, Keycloak } from "./lib/keycloak.js"; |
|
|
import { randomSeed } from 'k6'; |
|
|
import { randomSeed } from 'k6'; |
|
|
|
|
|
|
|
|
|
|
|
const config = getTestConfig(); |
|
|
|
|
|
|
|
|
export let options = { |
|
|
export let options = { |
|
|
stages: [ |
|
|
stages: [ |
|
|
{ duration: "20s", target: 5 }, |
|
|
{ duration: config.rampupDuration, target: config.vuCount }, |
|
|
{ duration: "2m", target: 300 } |
|
|
{ duration: config.testDuration, target: config.vuCount }, |
|
|
|
|
|
{ duration: config.rampupDuration, target: 0 }, |
|
|
], |
|
|
], |
|
|
noVUConnectionReuse: true, |
|
|
noVUConnectionReuse: true, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const config = getTestConfig(); |
|
|
|
|
|
|
|
|
|
|
|
randomSeed(__VU); |
|
|
randomSeed(__VU); |
|
|
const realm = pickRealm(config.realmCount); |
|
|
const realm = pickRealm(config.realmCount); |
|
|
let keycloak = new Keycloak(config.keycloakURL, { offlineTokens: config.offlineTokens }); |
|
|
let keycloak = new Keycloak(config.keycloakURL, { offlineTokens: config.offlineTokens }); |
|
|
|