forked from finnishtransportagency/digiroad2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add basic performance test scenario for fetching speed limits by boun…
…ding box
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
.../src/test/scala/fi/liikennevirasto/digiroad2/performance/FetchSpeedLimitsSimulation.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,16 @@ | ||
package fi.liikennevirasto.digiroad2.performance | ||
|
||
import io.gatling.core.Predef._ | ||
import io.gatling.http.Predef._ | ||
|
||
class FetchSpeedLimitsSimulation extends Simulation { | ||
val httpConf = http | ||
.baseURL("http://10.129.47.148:8080/digiroad/api/") | ||
.header("Cookie", "testusername=test2") | ||
|
||
val scn = scenario("Fetch speed limits by bounding box on maximum zoom level") | ||
.exec(http("Fetch road links").get("roadlinks2?bbox=372056,6674877,375624,6680169")) | ||
.exec(http("Fetch speed limits").get("speedlimits?bbox=372056,6674877,375624,6680169")) | ||
|
||
setUp(scn.inject(atOnceUsers(1))).protocols(httpConf) | ||
} |