fix: add shift features (#51)
Release package / release (push) Successful in 26m36s

Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com>
Reviewed-on: #51
This commit was merged in pull request #51.
This commit is contained in:
2026-05-12 02:14:21 +00:00
parent 29bba8b9f8
commit 345d4c056c
14 changed files with 598 additions and 33 deletions
@@ -43,6 +43,7 @@ public class StaffService extends BaseService<StaffEntity> {
return Response.status(Response.Status.CREATED)
.header(InternalValue.userId, staff.id.toString())
.header(InternalValue.managerId, manager.id.toString())
.header(InternalValue.role, Role.Staff)
.build();
}
@@ -64,6 +65,7 @@ public class StaffService extends BaseService<StaffEntity> {
return Response.accepted()
.header(InternalValue.userId, staff.id.toString())
.header(InternalValue.managerId, staff.serve.id.toString())
.header(InternalValue.role, Role.Staff)
.entity(staff)
.build();
@@ -10,12 +10,8 @@ import io.quarkus.test.common.QuarkusTestResource;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.kafka.*;
import io.restassured.http.ContentType;
import io.smallrye.reactive.messaging.kafka.companion.ConsumerTask;
import io.smallrye.reactive.messaging.kafka.companion.KafkaCompanion;
import jakarta.ws.rs.core.Response;
import java.time.Duration;
import net.datafaker.Faker;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;