Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] feat: AppleOpenId 로직 리팩터링(#975) #976

Merged
merged 4 commits into from
May 22, 2024
Merged

[BE] feat: AppleOpenId 로직 리팩터링(#975) #976

merged 4 commits into from
May 22, 2024

Conversation

BGuga
Copy link
Member

@BGuga BGuga commented May 16, 2024

📌 관련 이슈

✨ PR 세부 내용

해당 PR 리뷰 적용하였습니다

@BGuga BGuga added BE 백엔드에 관련된 작업 ⚙️ 리팩터링 리팩터링에 관련된 작업 labels May 16, 2024
@BGuga BGuga self-assigned this May 16, 2024
@BGuga BGuga linked an issue May 16, 2024 that may be closed by this pull request
Copy link

github-actions bot commented May 16, 2024

Test Results

241 files  241 suites   28s ⏱️
793 tests 793 ✅ 0 💤 0 ❌
812 runs  812 ✅ 0 💤 0 ❌

Results for commit ecb8c2a.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@seokjin8678 seokjin8678 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다!
빈 스코프를 prototype으로 사용해서, 락 경합이 분리되어 더욱 최적화가 되었네요!
AppleOpenIdPublicKeyLocatorTest에 대해 리뷰 남겼으니, 확인 부탁합니다!

Comment on lines 11 to 30
@DisplayNameGeneration(ReplaceUnderscores.class)
@SuppressWarnings("NonAsciiCharacters")
class AppleOpenIdPublicKeyLocatorTest extends ApplicationIntegrationTest {

@Autowired
AppleOpenIdPublicKeyLocator appleOpenIdPublicKeyLocator;

@Autowired
KakaoOpenIdPublicKeyLocator kakaoOpenIdPublicKeyLocator;

@Test
void 소셜별_Locator_들은_캐싱을_공유하지_않는다() {

// given & when & then
assertThat(appleOpenIdPublicKeyLocator)
.usingRecursiveComparison()
.comparingOnlyFields("cachedOpenIdKeyProvider")
.isNotEqualTo(kakaoOpenIdPublicKeyLocator);
}
}
Copy link
Collaborator

@seokjin8678 seokjin8678 May 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

비즈니스 로직의 검증이 아닌, 스프링 프레임워크의 동작에 대한 검증 테스트 같네요!
해당 테스트가 필요하다고 생각하신 이유가 있을까요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사실 필요없지만 prototype을 직접 사용한건 처음이라 한번 검증차에서 구현해본 것을 남겼습니다!!
검증 됬으니 지우겠습니다!

@BGuga BGuga merged commit 21629ab into dev May 22, 2024
3 checks passed
@BGuga BGuga deleted the feat/#975 branch May 22, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드에 관련된 작업 ⚙️ 리팩터링 리팩터링에 관련된 작업
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BE] AppleOpenId 로직 리팩터링
2 participants