Skip to content

test : 로그인 인증 테스트 코드 작성 #160

@hyeok3767

Description

@hyeok3767

다음의 케이스들에 대한 테스트 코드를 작성하였습니다.

  1. Header에 유효한 토큰이 존재할 때
  2. Cookie에 유효한 토큰이 존재할 때
  3. 토큰이 존재하지 않을 때
  4. 토큰 값이 위조되었거나 형식 외의 토큰이 존재할 때
  5. 기간이 만료된 토큰일 때

또한 상태 코드를 200 / 401로 고정하기 위해 Exception 내뱉기 이전에 JwtExceptionFilter.java라는 단계를 SecurityConfig에 추가하였습니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions