-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #512 Co-authored-by: Alexander Schwartz <aschwart@redhat.com>
- Loading branch information
Showing
8 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
benchmark/src/main/scala/keycloak/scenario/basic/Get.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package keycloak.scenario.basic | ||
|
||
import keycloak.scenario.{CommonSimulation, KeycloakScenarioBuilder} | ||
import org.keycloak.benchmark.Config | ||
|
||
class Get extends CommonSimulation { | ||
setUp("Get - " + Config.basicUrl, new KeycloakScenarioBuilder() | ||
.basicGet(Config.basicUrl) | ||
.userThinkPause()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
= Scenario Get | ||
:description: Repeatedly call a specific URL and report timing and check the response code. | ||
|
||
{description} | ||
|
||
See xref:scenario-overview.adoc[] for a list of all scenarios. | ||
|
||
== Steps of the scenario | ||
|
||
. Call the URL provided via the xref:configuration.adoc#basic-url[on the CLI] with HTTP GET and check the status code to be `200`. | ||
|
||
See the source code at link:{github-files}/benchmark/src/main/scala/keycloak/scenario/basic/Get.scala[Get.scala] for details. | ||
|
||
== Running an example scenario | ||
|
||
=== Prerequisites | ||
|
||
* Target URL known. | ||
|
||
=== Running the scenario | ||
|
||
The following scenario runs with the default settings for 30 seconds. | ||
|
||
See xref:configuration.adoc[] for additional CLI options. | ||
|
||
[source,bash] | ||
---- | ||
bin/kcb.sh \ | ||
--scenario=keycloak.scenario.basic.Get \ | ||
--basic-url=http://localhost:8080/ \ | ||
--log-http-on-failure | ||
---- | ||
|
||
== Further Reading | ||
|
||
* xref:run/running-benchmark-cli.adoc[] |