Sync: code local unifié
Synchronisation du code source local (fait foi). Signed-off-by: lions dev Team
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package dev.lions.unionflow.server.resource;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.Matchers.*;
|
||||
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.restassured.http.ContentType;
|
||||
import org.junit.jupiter.api.DisplayName;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
@QuarkusTest
|
||||
class HealthResourceTest {
|
||||
|
||||
@Test
|
||||
@DisplayName("GET /api/status retourne 200 avec status UP")
|
||||
void getStatus_returns200AndUp() {
|
||||
given()
|
||||
.when()
|
||||
.get("/api/status")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.contentType(ContentType.JSON)
|
||||
.body("status", equalTo("UP"))
|
||||
.body("service", equalTo("UnionFlow Server"))
|
||||
.body("version", equalTo("1.0.0"))
|
||||
.body("timestamp", notNullValue())
|
||||
.body("message", equalTo("Serveur opérationnel"));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user