Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@AllArgsConstructor
public class RouletteServiceImpl implements RouletteService {

private static final long SPECIAL_ROULETTE_MINIMUM_PAYMENT = 3500L;
private static final long SPECIAL_ROULETTE_MINIMUM_PAYMENT = 3000L;

private final RouletteHistoryRepository rouletteHistoryRepository;
private final RouletteRewardRepository rouletteRewardRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,15 @@ void shouldRejectDuplicatedSpecialRouletteParticipation() {
}

@Test
@DisplayName("오늘 누적 결제액이 3500원 미만이면 예외가 발생하고 추첨하지 않는다")
@DisplayName("오늘 누적 결제액이 3000원 미만이면 예외가 발생하고 추첨하지 않는다")
void shouldRejectSpecialRouletteWhenPaymentIsBelowMinimum() {
given(rouletteHistoryRepository
.existsByMemberIdAndRouletteTypeAndParticipationDate(
eq(MEMBER.memberId()), eq(RouletteType.SPECIAL),
any(LocalDate.class))).willReturn(false);
given(orderRepository.sumApprovedPriceByMemberIdAndDecidedAtBetween(
eq(MEMBER.memberId()), any(LocalDateTime.class), any(LocalDateTime.class)))
.willReturn(3499L);
.willReturn(2999L);

assertThatThrownBy(() -> rouletteService.spinRoulette(MEMBER, RouletteType.SPECIAL))
.isInstanceOf(BusinessException.class)
Expand Down
3 changes: 3 additions & 0 deletions user-service/src/main/resources/application-aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ server:
client:
url: ${CLIENT_URL:https://comatching.site}

item-service:
url: http://item-service:9006

auth:
cookie:
secure: ${AUTH_COOKIE_SECURE:true}
Expand Down
Loading