Skip to content

Commit

Permalink
fix : junits failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli committed Apr 1, 2024
1 parent d5232a6 commit 6bab7a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void testEmptyQuery() {
.body("instance", is("/api/ai/chat"))
.body("title", is("Constraint Violation"))
.body("violations", hasSize(1))
.body("violations[0].field", is("ragService.question"))
.body("violations[0].field", is("question"))
.body("violations[0].message", containsString("Query cannot be empty"));
}

Expand All @@ -69,7 +69,7 @@ void testLongQueryString() {
.body("instance", is("/api/ai/chat"))
.body("title", is("Constraint Violation"))
.body("violations", hasSize(1))
.body("violations[0].field", is("ragService.question"))
.body("violations[0].field", is("question"))
.body("violations[0].message", containsString("Query exceeds maximum length"));
}

Expand All @@ -86,7 +86,7 @@ void testSpecialCharactersInQuery() {
.body("instance", is("/api/ai/chat"))
.body("title", is("Constraint Violation"))
.body("violations", hasSize(1))
.body("violations[0].field", is("ragService.question"))
.body("violations[0].field", is("question"))
.body("violations[0].message", containsString("Invalid characters in query"))
.log();
}
Expand Down

0 comments on commit 6bab7a0

Please sign in to comment.