[#41] 예약 스키마 재정의 #42

Merged
pricelees merged 41 commits from refactor/#41 into main 2025-09-09 00:43:39 +00:00
3 changed files with 12 additions and 12 deletions
Showing only changes of commit fc3c6e42b0 - Show all commits

View File

@ -50,7 +50,7 @@ class ScheduleApiTest(
runTest(
token = token,
on = {
get("/schedules/1")
get("/schedules/$INVALID_PK")
},
expect = commonAssertion
)
@ -63,7 +63,7 @@ class ScheduleApiTest(
body(createRequest)
},
on = {
get("/schedules/1")
get("/schedules/$INVALID_PK")
},
expect = commonAssertion
)
@ -263,7 +263,7 @@ class ScheduleApiTest(
runTest(
token = loginUtil.loginAsAdmin(),
on = {
get("/schedules/1")
get("/schedules/$INVALID_PK")
},
expect = {
statusCode(HttpStatus.NOT_FOUND.value())
@ -402,7 +402,7 @@ class ScheduleApiTest(
runTest(
token = loginUtil.loginAsUser(),
on = {
patch("/schedules/1/hold")
patch("/schedules/$INVALID_PK/hold")
},
expect = {
statusCode(HttpStatus.NOT_FOUND.value())
@ -515,7 +515,7 @@ class ScheduleApiTest(
body(updateRequest)
},
on = {
patch("/schedules/1")
patch("/schedules/$INVALID_PK")
},
expect = {
statusCode(HttpStatus.NOT_FOUND.value())

View File

@ -33,7 +33,6 @@ class ThemeApiTest(
private val themeRepository: ThemeRepository
) : FunSpecSpringbootTest() {
init {
context("관리자가 아니면 접근할 수 없다.") {
lateinit var token: String
@ -74,7 +73,7 @@ class ThemeApiTest(
runTest(
token = token,
on = {
get("/admin/themes/1")
get("/admin/themes/$INVALID_PK")
},
expect = commonAssertion
)
@ -87,7 +86,7 @@ class ThemeApiTest(
body(createRequest)
},
on = {
patch("/admin/themes/1")
patch("/admin/themes/$INVALID_PK")
},
expect = commonAssertion
)
@ -97,7 +96,7 @@ class ThemeApiTest(
runTest(
token = token,
on = {
delete("/admin/themes/1")
delete("/admin/themes/$INVALID_PK")
},
expect = commonAssertion
)
@ -402,7 +401,7 @@ class ThemeApiTest(
runTest(
token = loginUtil.loginAsAdmin(),
on = {
get("/admin/themes/1")
get("/admin/themes/$INVALID_PK")
},
expect = {
statusCode(HttpStatus.NOT_FOUND.value())
@ -433,7 +432,7 @@ class ThemeApiTest(
runTest(
token = loginUtil.loginAsAdmin(),
on = {
delete("/admin/themes/1")
delete("/admin/themes/$INVALID_PK")
},
expect = {
statusCode(HttpStatus.NOT_FOUND.value())
@ -507,7 +506,7 @@ class ThemeApiTest(
body(updateRequest)
},
on = {
patch("/admin/themes/1")
patch("/admin/themes/$INVALID_PK")
},
expect = {
statusCode(HttpStatus.NOT_FOUND.value())

View File

@ -9,6 +9,7 @@ import roomescape.theme.web.ThemeCreateRequest
import java.time.LocalDate
import java.time.LocalTime
const val INVALID_PK: Long = 9999L
val tsidFactory = TsidFactory(0)
object MemberFixture {