generated from pricelees/issue-pr-template
test: AuthApiTest에서의 일부 오타 수정
This commit is contained in:
parent
638df9f110
commit
58f7297c48
@ -45,8 +45,8 @@ class AuthApiTest(
|
||||
account = admin.account,
|
||||
password = admin.password,
|
||||
type = PrincipalType.ADMIN,
|
||||
) {
|
||||
val token: String = it.extract().path("data.accessToken")
|
||||
) { response ->
|
||||
val token: String = response.extract().path("data.accessToken")
|
||||
jwtUtils.extractSubject(token) shouldBe admin.id.toString()
|
||||
jwtUtils.extractClaim(token, CLAIM_STORE_ID_KEY) shouldBe admin.storeId?.toString()
|
||||
jwtUtils.extractClaim(token, CLAIM_ADMIN_TYPE_KEY) shouldBe admin.type.name
|
||||
@ -89,8 +89,8 @@ class AuthApiTest(
|
||||
}
|
||||
).also {
|
||||
assertSoftly(loginHistoryRepository.findByPrincipalId(admin.id)[0]) {
|
||||
it.success shouldBe false
|
||||
it.principalType shouldBe PrincipalType.ADMIN
|
||||
this.success shouldBe false
|
||||
this.principalType shouldBe PrincipalType.ADMIN
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -116,8 +116,8 @@ class AuthApiTest(
|
||||
}
|
||||
).also {
|
||||
assertSoftly(loginHistoryRepository.findByPrincipalId(admin.id)[0]) {
|
||||
it.success shouldBe false
|
||||
it.principalType shouldBe PrincipalType.ADMIN
|
||||
this.success shouldBe false
|
||||
this.principalType shouldBe PrincipalType.ADMIN
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user