From cdb9ea43ff1e63a997be261a57f38cc61ee1b250 Mon Sep 17 00:00:00 2001 From: ekgns33 Date: Wed, 9 Jul 2025 22:07:58 +0900 Subject: [PATCH 1/2] :bug: fix : add egg-id to response --- .../runimo/runimo/auth/service/dto/SignupUserResponse.java | 6 ++++-- .../runimo/runimo/auth/controller/AuthAcceptanceTest.java | 3 ++- .../runimo/runimo/auth/controller/AuthControllerTest.java | 6 ++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/runimo/runimo/auth/service/dto/SignupUserResponse.java b/src/main/java/org/runimo/runimo/auth/service/dto/SignupUserResponse.java index c85d4d5..10746a5 100644 --- a/src/main/java/org/runimo/runimo/auth/service/dto/SignupUserResponse.java +++ b/src/main/java/org/runimo/runimo/auth/service/dto/SignupUserResponse.java @@ -11,7 +11,8 @@ public record SignupUserResponse( String greetingEggName, String greetingEggType, String greetingEggImgUrl, - String eggCode + String eggCode, + Long eggId ) { public SignupUserResponse(final User user, final TokenPair tokenPair, final Egg greetingEgg, @@ -23,7 +24,8 @@ public SignupUserResponse(final User user, final TokenPair tokenPair, final Egg greetingEgg.getName(), greetingEgg.getEggType().getName(), greetingEgg.getImgUrl(), - eggCode + eggCode, + greetingEgg.getId() ); } } diff --git a/src/test/java/org/runimo/runimo/auth/controller/AuthAcceptanceTest.java b/src/test/java/org/runimo/runimo/auth/controller/AuthAcceptanceTest.java index cef14ba..950f2df 100644 --- a/src/test/java/org/runimo/runimo/auth/controller/AuthAcceptanceTest.java +++ b/src/test/java/org/runimo/runimo/auth/controller/AuthAcceptanceTest.java @@ -95,7 +95,8 @@ void tearDown() { .log().all() .body("payload.nickname", equalTo("username")) .body("payload.token_pair.access_token", notNullValue()) - .body("payload.token_pair.refresh_token", notNullValue()); + .body("payload.token_pair.refresh_token", notNullValue()) + .body("payload.egg_id", notNullValue()); } @Test diff --git a/src/test/java/org/runimo/runimo/auth/controller/AuthControllerTest.java b/src/test/java/org/runimo/runimo/auth/controller/AuthControllerTest.java index 18bb3a3..24f59e3 100644 --- a/src/test/java/org/runimo/runimo/auth/controller/AuthControllerTest.java +++ b/src/test/java/org/runimo/runimo/auth/controller/AuthControllerTest.java @@ -157,7 +157,8 @@ class AuthControllerTest { "exmaple_egg_name", "example_egg_type", "example_egg_url", - "ECODE" + "ECODE", + 1L ) ); @@ -196,7 +197,8 @@ class AuthControllerTest { "exmaple_egg_name", "example_egg_type", "example_egg_url", - "ECODE" + "ECODE", + 1L ) ); From 88bbe15b63094def9758b7b4a86f45a9be8b634e Mon Sep 17 00:00:00 2001 From: ekgns33 Date: Wed, 9 Jul 2025 22:12:51 +0900 Subject: [PATCH 2/2] :bug: test : fix test-code --- .../org/runimo/runimo/user/api/UserItemAcceptanceTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java b/src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java index d0567f9..17cc4b8 100644 --- a/src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java +++ b/src/test/java/org/runimo/runimo/user/api/UserItemAcceptanceTest.java @@ -149,7 +149,8 @@ void tearDown() { "마당알", "MADANG", "test.url", - "ECODE" + "ECODE", + 1L )); AuthSignupRequest request = new AuthSignupRequest(