diff --git a/build.gradle b/build.gradle index 5606bbb..2fe3242 100644 --- a/build.gradle +++ b/build.gradle @@ -30,6 +30,7 @@ dependencies { testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.security:spring-security-test' testRuntimeOnly 'org.junit.platform:junit-platform-launcher' + testRuntimeOnly 'com.h2database:h2' } tasks.named('test') { diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml new file mode 100644 index 0000000..905a301 --- /dev/null +++ b/src/test/resources/application.yml @@ -0,0 +1,21 @@ +spring: + datasource: + url: jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;MODE=PostgreSQL;NON_KEYWORDS=VALUE + username: sa + password: + driver-class-name: org.h2.Driver + jpa: + hibernate: + ddl-auto: create-drop + database-platform: org.hibernate.dialect.H2Dialect + flyway: + enabled: false + security: + oauth2: + resourceserver: + jwt: + jwk-set-uri: http://localhost:9999/realms/test/protocol/openid-connect/certs + +app: + cors: + allowed-origins: "http://localhost:4200"