Skip to content

Commit

Permalink
adding in-memory h2 db (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
navreddy23 authored Aug 31, 2021
1 parent 9775e71 commit f8aa3b9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
Expand Down Expand Up @@ -141,6 +140,11 @@
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
Expand Down
22 changes: 22 additions & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
spring:
profiles: default
datasource:
#local in-memory database for testing
url: "jdbc:h2:mem:testdb;;MODE=PostgreSQL;DB_CLOSE_DELAY=-1"
username: sa
password: sa

jackson:
property-naming-strategy: SNAKE_CASE
serialization:
indent_output: true

server:
port: 8082

management:
server:
address: 127.0.0.1
port: 9090
security:
enabled: true

0 comments on commit f8aa3b9

Please sign in to comment.