Skip to content

Commit

Permalink
fix: 테스트 수행되지 않는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 committed Dec 13, 2024
1 parent 72d5375 commit f1d62bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions api/src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@ thread-pool:
await-termination-seconds: 60

security:
jwt:
token:
validtime:
access: 31557600000
refresh: 31557600000
secretkey: jwtsecretKeyhastolonghowlongidontknow
encryption:
algorithm: AES
secretKey: encryptionsecret
Expand All @@ -92,6 +86,12 @@ web:
exposed-headers: "Set-Cookie, Authorization, Content-Type, X-Requested-With, Accept, Origin, Access-Control-Request-Method, Access-Control-Request-Headers, Access-Control-Allow-Origin, Access-Control-Allow-Credentials"
allow-credentials: true
max-age: 1800
jwt:
token:
validtime:
access: 31557600000
refresh: 31557600000
secretkey: jwtsecretKeyhastolonghowlongidontknow
client:
timeout:
connect: 5000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ class WebSecurityConfig {
return SecurityTokenResolver(secretKey)
}

@Profile("!test")
@Bean(name = [TOKEN_USER_DETAILS_SERVICE])
fun tokenUserDetailsService(tokenResolver: TokenResolver): UserDetailsService {
return TokenUserDetailsService(tokenResolver)
Expand Down

0 comments on commit f1d62bd

Please sign in to comment.