Hithomelabs/HomeLabDocker#33 making ci and integration tests initialize Embedded H2 database, fixing integration test #99
@ -14,7 +14,7 @@ java {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test {
|
test {
|
||||||
systemProperty 'spring.profiles.active', 'test'
|
systemProperty 'spring.profiles.active', 'ci'
|
||||||
useJUnitPlatform {
|
useJUnitPlatform {
|
||||||
excludeTags 'integration'
|
excludeTags 'integration'
|
||||||
}
|
}
|
||||||
|
|||||||
7
src/main/resources/application-ci.properties
Normal file
7
src/main/resources/application-ci.properties
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
api.baseUrl=https://testcf.hithomelabs.com
|
||||||
|
|
||||||
|
spring.datasource.url=jdbc:h2:mem:testdb
|
||||||
|
spring.datasource.driver-class-name=org.h2.Driver
|
||||||
|
spring.datasource.username=sa
|
||||||
|
spring.datasource.password=
|
||||||
|
spring.jpa.hibernate.ddl-auto=none
|
||||||
@ -1,3 +1,9 @@
|
|||||||
cloudflare.accountId=${CLOUDFLARE_ACCOUNT_ID}
|
cloudflare.accountId=${CLOUDFLARE_ACCOUNT_ID}
|
||||||
cloudflare.apiKey=${CLOUDFLARE_API_KEY}
|
cloudflare.apiKey=${CLOUDFLARE_API_KEY}
|
||||||
cloudflare.email=${CLOUDFLARE_EMAIL}
|
cloudflare.email=${CLOUDFLARE_EMAIL}
|
||||||
|
|
||||||
|
spring.datasource.url=jdbc:h2:mem:testdb
|
||||||
|
spring.datasource.driver-class-name=org.h2.Driver
|
||||||
|
spring.datasource.username=sa
|
||||||
|
spring.datasource.password=
|
||||||
|
spring.jpa.hibernate.ddl-auto=none
|
||||||
Loading…
Reference in New Issue
Block a user