fix(content-ranking): 랭킹 커버 이미지를 CDN URL로 변환한다

This commit is contained in:
2026-06-25 16:02:58 +09:00
parent 65804261f7
commit 4f3f8d1fa7
2 changed files with 10 additions and 1 deletions
@@ -54,6 +54,10 @@ class AudioRankingQueryServiceTest {
assertEquals(listOf(1, 2, 3), result.items.map { it.rank })
assertEquals(listOf(1, -1, null), result.items.map { it.rankChange })
assertEquals(listOf(false, false, true), result.items.map { it.isNew })
assertEquals(
listOf("https://cdn.test/cover-2.png", "https://cdn.test/cover-1.png", "https://cdn.test/cover-3.png"),
result.items.map { it.coverImageUrl }
)
assertEquals(LocalDateTime.of(2026, 6, 8, 0, 0), snapshotPort.nowUtc)
assertEquals(LocalDateTime.of(2026, 5, 31, 15, 0), snapshotPort.currentAggregationStartAtUtc)
}
@@ -230,6 +234,7 @@ class AudioRankingQueryServiceTest {
memberContentPreferenceService = memberContentPreferenceService,
blockPort = blockPort,
jobService = jobService,
cloudFrontHost = "https://cdn.test",
nowProvider = { ZonedDateTime.of(2026, 6, 8, 9, 0, 0, 0, ZoneId.of("Asia/Seoul")) }
)
}