Skip to content

Commit

Permalink
refact: Test Environment Property
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Jul 29, 2024
1 parent 0a88427 commit e1207af
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class SecretProcessor : EnvironmentPostProcessor {
const val BEARER_TOKEN_PREFIX = "Bearer"
const val SECRET_MANAGER_URL = "https://app.infisical.com/api/v3"

val SUPPORT_PROFILES = setOf("local", "dev", "prod")
val SUPPORT_PROFILES = setOf("local", "test", "prod")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ import org.springframework.test.context.ContextConfiguration
@AutoConfigureMockMvc
@EnableAutoConfiguration
@ContextConfiguration(classes = [TestConfiguration::class])
@ActiveProfiles("dev")
@ActiveProfiles("test")
annotation class AcceptanceTest
4 changes: 0 additions & 4 deletions piikii-bootstrap/src/test/resources/application-dev.yml

This file was deleted.

3 changes: 2 additions & 1 deletion piikii-bootstrap/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ spring:
- classpath:storage-config/application.yml
- classpath:lemon-config/application.yml
- classpath:avocado-config/application.yml
- classpath:database-config/application-dev.yml
- classpath:database-config/application-test.yml
application:
name: "piikii"
messages:
encoding: UTF-8


secret:
token: ${SECRET_MANAGER_TOKEN}
workspaceId: ${SECRET_MANAGER_WORKSPACE}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class WebConfig : WebMvcConfigurer {
.allowedOrigins("*")
.allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
.allowedHeaders("*")
.allowCredentials(true)
.allowCredentials(false)
.maxAge(3600)
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spring:
config:
activate:
on-profile: dev
on-profile: test

datasource:
driver-class-name: org.postgresql.Driver
Expand Down

0 comments on commit e1207af

Please sign in to comment.