Skip to content

Commit

Permalink
test: update gatling configs to run performance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukinhasssss committed Apr 10, 2024
1 parent 99e1874 commit 7d78eec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class AdminDoCatalogoPerformanceTest : Simulation() {
init {
setUp(
scenario.injectClosed(
constantConcurrentUsers(100).during(360)
constantConcurrentUsers(100).during(300)
).protocols(httpProtocol)
)
}
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/src/gatling/kotlin/CategoryPerformanceTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import io.gatling.javaapi.core.CoreDsl.scenario
import io.gatling.javaapi.core.Simulation
import io.gatling.javaapi.http.HttpDsl.http
import io.gatling.javaapi.http.HttpDsl.status
import java.time.Duration

class CategoryPerformanceTest : Simulation() {

Expand Down Expand Up @@ -72,8 +73,7 @@ class CategoryPerformanceTest : Simulation() {
init {
setUp(
scenario.injectClosed(
constantConcurrentUsers(100).during(360)
// rampConcurrentUsers(10).to(20).during(10)
constantConcurrentUsers(100).during(Duration.ofMinutes(5))
).protocols(httpProtocol)
)

Expand Down
4 changes: 2 additions & 2 deletions infrastructure/src/gatling/kotlin/Configuration.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object Configuration {
const val TOKEN_URL = "http://localhost:18080/realms/codeflix/protocol/openid-connect/token"
const val TOKEN_URL = "http://keycloak.internal:8443/realms/codeflix/protocol/openid-connect/token"
const val CLIENT_ID = "admin-do-catalogo"
const val CLIENT_SECRET = "aougNuf62ULKc1QSA8yeXDCy6VdJ6Bu3"
const val CLIENT_SECRET = "Td5scdSINqzhib0ket0UFUnvEPP6KAal"
const val USERNAME = "lukinhasssss"
const val PASSWORD = "123456"
const val GRANT_TYPE = "password"
Expand Down

0 comments on commit 7d78eec

Please sign in to comment.