Skip to content

Commit

Permalink
release: deployment configs
Browse files Browse the repository at this point in the history
  • Loading branch information
thongdanghoang committed Feb 22, 2025
1 parent 5bf03e6 commit 7ac0cc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ void getEnterpriseBuildings_withValidToken_returns200() {
.contentType(ContentType.JSON)
.body(new SearchCriteriaDTO<Void>(null, null, null))
.when()
.post("/api/buildings/search")
.post("/enterprise/api/buildings/search")
.then()
.statusCode(200);
}
Expand All @@ -28,7 +28,7 @@ void getEnterpriseBuildings_withInvalidToken_returns401() {
.contentType(ContentType.JSON)
.body(new SearchCriteriaDTO<Void>(null, null, null))
.when()
.post("/api/buildings/search")
.post("/enterprise/api/buildings/search")
.then()
.statusCode(401);
}
Expand All @@ -44,7 +44,7 @@ void createBuilding_withValidToken_returns201() {
.contentType(ContentType.JSON)
.body(building)
.when()
.post("/api/buildings")
.post("/enterprise/api/buildings")
.then()
.statusCode(201);
}
Expand All @@ -56,7 +56,7 @@ void createBuilding_withMissingFields_returns400() {
.contentType(ContentType.JSON)
.body(BuildingDTO.builder().build())
.when()
.post("/api/buildings")
.post("/enterprise/api/buildings")
.then()
.statusCode(400);
}
Expand All @@ -68,7 +68,7 @@ void createBuilding_withInvalidToken_returns401() {
.contentType(ContentType.JSON)
.body(BuildingDTO.builder().build())
.when()
.post("/api/buildings")
.post("/enterprise/api/buildings")
.then()
.statusCode(401);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void saveBusinessErrorThrowsDemoException() {
.auth().oauth2(getToken("system.admin@greenbuildings.com", "system.admin"))
.body(body)
.when()
.post("/dev/save-business-error")
.post("/enterprise/dev/save-business-error")
.then()
.log().all()
.statusCode(HttpStatus.EXPECTATION_FAILED.value())
Expand All @@ -34,7 +34,7 @@ void saveTechnicalErrorThrowsTechnicalException() {
.auth().oauth2(getToken("system.admin@greenbuildings.com", "system.admin"))
.body(body)
.when()
.post("/dev/save-technical-error")
.post("/enterprise/dev/save-technical-error")
.then()
.log().all()
.statusCode(500)
Expand Down

0 comments on commit 7ac0cc2

Please sign in to comment.