diff options
Diffstat (limited to 'e2e-tests/src/test/scala/com/google/gerrit/scenarios/GerritSimulation.scala')
-rw-r--r-- | e2e-tests/src/test/scala/com/google/gerrit/scenarios/GerritSimulation.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2e-tests/src/test/scala/com/google/gerrit/scenarios/GerritSimulation.scala b/e2e-tests/src/test/scala/com/google/gerrit/scenarios/GerritSimulation.scala index 3e1607bfcf..b628bc7924 100644 --- a/e2e-tests/src/test/scala/com/google/gerrit/scenarios/GerritSimulation.scala +++ b/e2e-tests/src/test/scala/com/google/gerrit/scenarios/GerritSimulation.scala @@ -16,7 +16,6 @@ package com.google.gerrit.scenarios import com.github.barbasa.gatling.git.GatlingGitConfiguration import io.gatling.core.Predef._ -import io.gatling.core.feeder.FileBasedFeederBuilder import io.gatling.http.Predef.http import io.gatling.http.protocol.HttpProtocolBuilder import io.gatling.http.request.builder.HttpRequestBuilder @@ -24,8 +23,9 @@ import io.gatling.http.request.builder.HttpRequestBuilder class GerritSimulation extends Simulation { implicit val conf: GatlingGitConfiguration = GatlingGitConfiguration() + private val path: String = this.getClass.getPackage.getName.replaceAllLiterally(".", "/") protected val name: String = this.getClass.getSimpleName - protected val data: FileBasedFeederBuilder[Any]#F = jsonFile(s"data/$name.json").circular + protected val resource: String = s"data/$path/$name.json" protected val httpRequest: HttpRequestBuilder = http(name).post("${url}") protected val httpProtocol: HttpProtocolBuilder = http.basicAuth( |