e2e-tests: Create/delete ReplayRecordsFromFeeder project
Automate the creation and deletion of the test project used by the ReplayRecordsFromFeeder scenario. Do the same as what was done for CloneUsingBothProtocols, which is to reuse the CreateProject and DeleteProject scenarios for that aggregating composition purpose. Change-Id: Ib18d169c1c8fbf8546d75ee3619faab928b0bd6c
This commit is contained in:
@@ -34,13 +34,24 @@ class ReplayRecordsFromFeeder extends GitSimulation {
|
||||
.exec(gitRequest)
|
||||
}
|
||||
|
||||
private val createProject = new CreateProject(default)
|
||||
private val deleteProject = new DeleteProject(default)
|
||||
|
||||
setUp(
|
||||
createProject.test.inject(
|
||||
atOnceUsers(1)
|
||||
),
|
||||
test.inject(
|
||||
nothingFor(4 seconds),
|
||||
atOnceUsers(10),
|
||||
rampUsers(10) during (5 seconds),
|
||||
constantUsersPerSec(20) during (15 seconds),
|
||||
constantUsersPerSec(20) during (15 seconds) randomized
|
||||
)).protocols(gitProtocol)
|
||||
.maxDuration(60 seconds)
|
||||
),
|
||||
deleteProject.test.inject(
|
||||
nothingFor(59 seconds),
|
||||
atOnceUsers(1)
|
||||
),
|
||||
).protocols(gitProtocol, httpProtocol)
|
||||
.maxDuration(61 seconds)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user