update for common plugin v0.2.0
- rename keys folder to cert - update build.gradle.kts to use certificate plugin - update catalog version
This commit is contained in:
@@ -11,7 +11,7 @@ spring:
|
||||
version: "%APP_BUILD_OS_VERSION%"
|
||||
|
||||
jwt:
|
||||
private-key: keys/private_key.pem
|
||||
private-key: cert/private_key.pem
|
||||
|
||||
---
|
||||
###############################
|
||||
|
||||
@@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test
|
||||
|
||||
class JwtServiceTest {
|
||||
|
||||
val property: JwtProperty = JwtProperty("keys/valid-private-key.pem")
|
||||
val property: JwtProperty = JwtProperty("cert/valid-private-key.pem")
|
||||
lateinit var service: JwtService
|
||||
|
||||
@BeforeEach
|
||||
|
||||
@@ -11,7 +11,7 @@ class PrivateKeyProviderTest {
|
||||
@Test
|
||||
fun `load private key - success`() {
|
||||
// given
|
||||
val pemFilePath = "keys/valid-private-key.pem"
|
||||
val pemFilePath = "cert/valid-private-key.pem"
|
||||
|
||||
// when
|
||||
val privateKey: RSAPrivateKey = PrivateKeyProvider.load(pemFilePath)
|
||||
@@ -24,7 +24,7 @@ class PrivateKeyProviderTest {
|
||||
@Test
|
||||
fun `load private key - file does not exist`() {
|
||||
// given
|
||||
val nonExistentPemFilePath = "keys/non-existent.pem"
|
||||
val nonExistentPemFilePath = "cert/non-existent.pem"
|
||||
|
||||
// when exception
|
||||
val exception = assertThrows<KeyProviderException> {
|
||||
@@ -38,7 +38,7 @@ class PrivateKeyProviderTest {
|
||||
@Test
|
||||
fun `load private key - file is invalid`() {
|
||||
// given
|
||||
val invalidPemFilePath = "keys/invalid-private-key.pem"
|
||||
val invalidPemFilePath = "cert/invalid-private-key.pem"
|
||||
|
||||
// when exception
|
||||
val exception = assertThrows<IllegalArgumentException> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
jwt:
|
||||
private-key: keys/valid-private-key.pem
|
||||
private-key: cert/valid-private-key.pem
|
||||
|
||||
spring:
|
||||
r2dbc:
|
||||
|
||||
Reference in New Issue
Block a user