From 7ac0cc2ee61f2f58ccd51928054d58f793198c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=E1=BB=91ng?= Date: Sat, 22 Feb 2025 22:46:54 +0700 Subject: [PATCH] release: deployment configs --- .../java/enterprise/rest/BuildingControllerTest.java | 10 +++++----- .../test/java/enterprise/rest/DevControllerTest.java | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sep490-enterprise/src/test/java/enterprise/rest/BuildingControllerTest.java b/sep490-enterprise/src/test/java/enterprise/rest/BuildingControllerTest.java index 7d6d36d0..cb2e2c1f 100644 --- a/sep490-enterprise/src/test/java/enterprise/rest/BuildingControllerTest.java +++ b/sep490-enterprise/src/test/java/enterprise/rest/BuildingControllerTest.java @@ -16,7 +16,7 @@ void getEnterpriseBuildings_withValidToken_returns200() { .contentType(ContentType.JSON) .body(new SearchCriteriaDTO(null, null, null)) .when() - .post("/api/buildings/search") + .post("/enterprise/api/buildings/search") .then() .statusCode(200); } @@ -28,7 +28,7 @@ void getEnterpriseBuildings_withInvalidToken_returns401() { .contentType(ContentType.JSON) .body(new SearchCriteriaDTO(null, null, null)) .when() - .post("/api/buildings/search") + .post("/enterprise/api/buildings/search") .then() .statusCode(401); } @@ -44,7 +44,7 @@ void createBuilding_withValidToken_returns201() { .contentType(ContentType.JSON) .body(building) .when() - .post("/api/buildings") + .post("/enterprise/api/buildings") .then() .statusCode(201); } @@ -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); } @@ -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); } diff --git a/sep490-enterprise/src/test/java/enterprise/rest/DevControllerTest.java b/sep490-enterprise/src/test/java/enterprise/rest/DevControllerTest.java index 097265e9..ef8b9980 100644 --- a/sep490-enterprise/src/test/java/enterprise/rest/DevControllerTest.java +++ b/sep490-enterprise/src/test/java/enterprise/rest/DevControllerTest.java @@ -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()) @@ -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)