diff options
Diffstat (limited to 'e2e-tests/src/test/scala/com/google/gerrit/scenarios/GitSimulation.scala')
-rw-r--r-- | e2e-tests/src/test/scala/com/google/gerrit/scenarios/GitSimulation.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/e2e-tests/src/test/scala/com/google/gerrit/scenarios/GitSimulation.scala b/e2e-tests/src/test/scala/com/google/gerrit/scenarios/GitSimulation.scala index e2f13a422e..5d5f5d50a9 100644 --- a/e2e-tests/src/test/scala/com/google/gerrit/scenarios/GitSimulation.scala +++ b/e2e-tests/src/test/scala/com/google/gerrit/scenarios/GitSimulation.scala @@ -15,6 +15,7 @@ package com.google.gerrit.scenarios import java.io.{File, IOException} +import java.net.URLEncoder import com.github.barbasa.gatling.git.GitRequestSession import com.github.barbasa.gatling.git.protocol.GitProtocol @@ -29,6 +30,11 @@ class GitSimulation extends GerritSimulation { protected val gitRequest = new GitRequestBuilder(GitRequestSession("${cmd}", "${url}")) protected val gitProtocol: GitProtocol = GitProtocol() + override def replaceOverride(in: String): String = { + var next = replaceKeyWith("_project", URLEncoder.encode(getFullProjectName(projectName), "UTF-8"), in) + super.replaceOverride(next) + } + after { Thread.sleep(5000) val path = conf.tmpBasePath |