Added "& to &" rewrite for login form URI in the perf tests.
This commit is contained in:
parent
375e01a074
commit
9bd5d31c1f
2 changed files with 3 additions and 3 deletions
|
@ -81,7 +81,7 @@ class DefaultSimulation extends Simulation {
|
||||||
.queryParam("client_id", "${clientId}")
|
.queryParam("client_id", "${clientId}")
|
||||||
.queryParam("state", "${state}")
|
.queryParam("state", "${state}")
|
||||||
.queryParam("redirect_uri", "${appUrl}")
|
.queryParam("redirect_uri", "${appUrl}")
|
||||||
.check(status.is(200), regex("action=\"([^\"]*)\"").saveAs("login-form-uri")))
|
.check(status.is(200), regex("action=\"([^\"]*)\"").find.transform(_.replaceAll("&", "&")).saveAs("login-form-uri")))
|
||||||
.exitHereIfFailed
|
.exitHereIfFailed
|
||||||
.pause(TestConfig.userThinkTime, Normal(TestConfig.userThinkTime * 0.2))
|
.pause(TestConfig.userThinkTime, Normal(TestConfig.userThinkTime * 0.2))
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ class DefaultSimulation extends Simulation {
|
||||||
.formParam("username", "${username}")
|
.formParam("username", "${username}")
|
||||||
.formParam("password", _ => Util.randomString(10))
|
.formParam("password", _ => Util.randomString(10))
|
||||||
.formParam("login", "Log in")
|
.formParam("login", "Log in")
|
||||||
.check(status.is(200), regex("action=\"([^\"]*)\"").saveAs("login-form-uri")))
|
.check(status.is(200), regex("action=\"([^\"]*)\"").find.transform(_.replaceAll("&", "&")).saveAs("login-form-uri")))
|
||||||
.exitHereIfFailed
|
.exitHereIfFailed
|
||||||
.pause(TestConfig.userThinkTime, Normal(TestConfig.userThinkTime * 0.2))
|
.pause(TestConfig.userThinkTime, Normal(TestConfig.userThinkTime * 0.2))
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ object SimulationsHelper {
|
||||||
.exec(http("JS Adapter Auth - Login Form Redirect")
|
.exec(http("JS Adapter Auth - Login Form Redirect")
|
||||||
.get("/auth/realms/master/protocol/openid-connect/auth?client_id=security-admin-console&redirect_uri=${keycloakServerUrlEncoded}%2Fadmin%2Fmaster%2Fconsole%2F&state=${state}&nonce=${nonce}&response_mode=fragment&response_type=code&scope=openid")
|
.get("/auth/realms/master/protocol/openid-connect/auth?client_id=security-admin-console&redirect_uri=${keycloakServerUrlEncoded}%2Fadmin%2Fmaster%2Fconsole%2F&state=${state}&nonce=${nonce}&response_mode=fragment&response_type=code&scope=openid")
|
||||||
.headers(UI_HEADERS)
|
.headers(UI_HEADERS)
|
||||||
.check(status.is(200), regex("action=\"([^\"]*)\"").saveAs("login-form-uri")))
|
.check(status.is(200), regex("action=\"([^\"]*)\"").find.transform(_.replaceAll("&", "&")).saveAs("login-form-uri")))
|
||||||
.exitHereIfFailed
|
.exitHereIfFailed
|
||||||
.thinkPause()
|
.thinkPause()
|
||||||
// Successful login
|
// Successful login
|
||||||
|
|
Loading…
Reference in a new issue