Skip to content

Commit

Permalink
Disable integration tests temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Sep 24, 2024
1 parent cf05034 commit 531fab2
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@
import static io.gatling.javaapi.http.HttpDsl.*;

import io.gatling.javaapi.core.*;
import io.gatling.javaapi.http.*;

public class GatlingSimulation extends Simulation {

String baseUrl = "http://localhost:18080";

ChainBuilder appointmentsCrud = exec(
private ChainBuilder appointmentsCrud = exec(
http("Create").post("/appointments").check(status().is(201)),
pause(1),
http("Read").get("/appointments").check(status().is(200)),
Expand All @@ -19,10 +16,11 @@ public class GatlingSimulation extends Simulation {
pause(1)
);

HttpProtocolBuilder httpProtocol = http.baseUrl(baseUrl);
ScenarioBuilder users = scenario("Appointments").exec(appointmentsCrud);

{
var baseUrl = "http://localhost:18080";
var httpProtocol = http.baseUrl(baseUrl);
var users = scenario("Appointments").exec(appointmentsCrud);

setUp(users.injectOpen(rampUsers(10).during(10))).protocols(httpProtocol);
}
}

0 comments on commit 531fab2

Please sign in to comment.