Skip to content

Commit edf26ef

Browse files
committed
fix(test_properties): add application test properties and refacto template
1 parent 4f2b620 commit edf26ef

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ build/
3131

3232
### Environment variables ###
3333
.env
34-
src/test/resources/application-test.properties
3534
src/main/resources/application-local.properties
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
spring.datasource.url=${H2_URL};MODE=PostgreSQL;DATABASE_TO_UPPER=false;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
2+
spring.datasource.driver-class-name=org.h2.Driver
3+
spring.datasource.username=${H2_USERNAME}
4+
spring.datasource.password=${H2_PASSWORD}
5+
spring.sql.init.mode=never
6+
spring.docker.compose.enabled=false
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
POSTGRES_USER=your_postgres_user
2-
POSTGRES_PASSWORD=your_postgres_password
3-
POSTGRES_DB=your_postgres_db
4-
POSTGRES_PORT=your_postgres_port
5-
6-
1+
spring.datasource.url=jdbc:h2:mem:mydb;MODE=PostgreSQL;DATABASE_TO_UPPER=false;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
2+
spring.datasource.driver-class-name=org.h2.Driver
3+
spring.datasource.username=myusername
4+
spring.datasource.password=mypassword
5+
spring.sql.init.mode=never
6+
spring.docker.compose.enabled=false

0 commit comments

Comments
 (0)