Skip to content

Commit

Permalink
pågående initiell utvikling
Browse files Browse the repository at this point in the history
  • Loading branch information
jankroken-nav committed Jan 15, 2025
1 parent ab5db14 commit 082fc7f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Profile

@Configuration
@Profile("dev-gcp", "prod-gcp")
// @Configuration
// @Profile("dev-gcp", "prod-gcp")
class DatasourceConfig {

@Bean
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ no.nav.security.jwt:
discoveryurl: ${AZURE_APP_WELL_KNOWN_URL}
accepted_audience: ${AZURE_APP_CLIENT_ID}

spring.datasource:
url: ${DATABASE_JDBC_URL}

POPP_URL: http://localhost:9991/popp/api
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.zaxxer.hikari.HikariDataSource
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

@Configuration
// @Configuration
class DatasourceConfig {

@Bean
Expand Down
6 changes: 6 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
POPP_URL: http://localhost:9991/api
UNLEASH_SERVER_API_URL: http://localhost:9991/api
UNLEASH_SERVER_API_TOKEN: "bogus"

spring.datasource:
driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver
url: jdbc:tc:postgresql:17:///test
username: test
password: test

0 comments on commit 082fc7f

Please sign in to comment.