e2e-tests: Make http request name unique
Also support unique scenario names, by allowing scenarios to reuse 'unique' instead of 'name', in turn. Such unique names make each http request (and optionally scenario) differentiable in test execution report logs. Change-Id: I53fc12c3672a81254630106fea105adaa0c4776a
This commit is contained in:
@@ -27,8 +27,9 @@ class GerritSimulation extends Simulation {
|
||||
private val path: String = pack.replaceAllLiterally(".", "/")
|
||||
protected val name: String = this.getClass.getSimpleName
|
||||
protected val resource: String = s"data/$path/$name.json"
|
||||
protected val unique: String = name + "-" + this.hashCode()
|
||||
|
||||
protected val httpRequest: HttpRequestBuilder = http(name).post("${url}")
|
||||
protected val httpRequest: HttpRequestBuilder = http(unique).post("${url}")
|
||||
protected val httpProtocol: HttpProtocolBuilder = http.basicAuth(
|
||||
conf.httpConfiguration.userName,
|
||||
conf.httpConfiguration.password)
|
||||
|
||||
Reference in New Issue
Block a user