fjtirado commented on code in PR #3828:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3828#discussion_r1930276517
##########
quarkus/integration-tests/integration-tests-quarkus-processes-persistence/integration-tests-processes-persistence-common/src/test/java/org/kie/kogito/it/PersistenceTest.java:
##########
@@ -73,58 +73,68 @@ public void testStartApprovalAuthorized() {
.then()
.statusCode(201)
.body("id", notNullValue()).extract().path("id");
- // get all active approvals
- given()
- .accept(ContentType.JSON)
- .when()
- .get("/AddedTask")
- .then()
- .statusCode(200)
- .body("size()", is(1), "[0].id", is(id));
- // get just started approval
- given()
- .accept(ContentType.JSON)
- .when()
- .get("/AddedTask/" + id)
- .then()
- .statusCode(200)
- .body("id", is(id));
-
- // tasks assigned in just started approval
-
- String userTaskId = given()
- .basePath(USER_TASK_BASE_PATH)
- .queryParam("user", "mary")
- .queryParam("group", "managers")
- .contentType(ContentType.JSON)
- .when()
- .get()
- .then()
- .statusCode(200)
- .extract()
- .body()
- .path("[0].id");
-
- given()
- .contentType(ContentType.JSON)
- .basePath(USER_TASK_BASE_PATH)
- .queryParam("user", "mary")
- .queryParam("group", "managers")
- .body(new TransitionInfo("complete"))
- .when()
- .post("/{userTaskId}/transition", userTaskId)
- .then()
- .statusCode(200);
-
- // get all active approvals
- given()
- .accept(ContentType.JSON)
- .when()
- .get("/AddedTask")
- .then()
- .statusCode(200)
- .body("size()", is(1));
+ try {
Review Comment:
I guess this is not stricly related with the description of the issue, but
good fix anyway
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]