Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
DTSRD-1466.Updating schema parameter with hibernate (#763)
Browse files Browse the repository at this point in the history
* DTSRD-1173

* DTSRD-1466.Updating schema parameter with hibernate

* DTSRD-1466.Updating schema parameter with hibernate

* DTSRD-1466.Updating schema parameter with hibernate

* DTSRD-1466.Updating schema parameter with hibernate

* DTSRD-1466.Updating schema parameter with hibernate

* DTSRD-1466.Updating schema parameter with hibernate

* DTSRD-1466.Updating schema parameter with hibernate

* DTSRD-1466.Updating schema parameter with hibernate

* DTSRD-1466.Updating schema parameter with hibernate
  • Loading branch information
SabinaHMCTS authored Nov 14, 2023
1 parent 6c43489 commit d00377b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
4 changes: 1 addition & 3 deletions audit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"10049_Storable and Cacheable Content_http://rd-profile-sync-aat.service.core-compute-aat.internal/v2/api-docs_GET": "ignore",
"10112_Session Management Response Identified_http://rd-profile-sync-aat.service.core-compute-aat.internal/v2/api-docs_GET": "ignore",
{"10049_Storable and Cacheable Content_http://rd-profile-sync-aat.service.core-compute-aat.internal/v2/api-docs_GET": "ignore",
"100000_A Client Error response code was returned by the server_http://rd-profile-sync-aat.service.core-compute-aat.internal/v2/api-docs_GET": "ignore",
"10010_Cookie No HttpOnly Flag_http://rd-profile-sync-aat.service.core-compute-aat.internal/v2/api-docs_GET": "ignore",
"90033_Loosely Scoped Cookie_http://rd-profile-sync-aat.service.core-compute-aat.internal/v2/api-docs_GET": "ignore",
Expand Down
10 changes: 7 additions & 3 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ spring:
main:
allow-bean-definition-overriding: true
jackson.date-format: yyyy-MM-dd
flyway.enabled: true
flyway:
enabled: true

### database configuration
datasource:
Expand All @@ -28,6 +29,8 @@ spring:
password: ${POSTGRES_PASSWORD:dbsyncdata}
properties:
charSet: UTF-8
hikari:
maximumPoolSize: ${HIKARI_MAX_POOL_SIZE:50}
tomcat:
max-active: 10
max-idle: 10
Expand All @@ -45,11 +48,14 @@ spring:
log-abandoned: true
abandon-when-percentage-full: 0
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
show-sql: false
properties:
hibernate:
jdbc:
lob:
non_contextual_creation: true
default_schema: dbsyncdata
config:
import: "optional:configtree:/mnt/secrets/rd/"

Expand Down Expand Up @@ -94,8 +100,6 @@ caseworker:
api:
url: ${CASEWORKER_REF_URL:http://rd-caseworker-ref-api-aat.service.core-compute-aat.internal}



loggingComponentName: RD_Profile_Sync

recordsPerPage: 2000
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit4.SpringRunner;
import uk.gov.hmcts.reform.profilesync.domain.ProfileSyncAudit;
import uk.gov.hmcts.reform.profilesync.domain.ProfileSyncAuditDetails;
import uk.gov.hmcts.reform.profilesync.domain.ProfileSyncAuditDetailsId;
Expand All @@ -15,8 +15,8 @@

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringRunner.class)
@DataJpaTest
@ExtendWith(SpringExtension.class)
class ProfileSyncAuditDetailsRepositoryTest {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit4.SpringRunner;
import uk.gov.hmcts.reform.profilesync.domain.ProfileSyncAudit;

import java.time.LocalDateTime;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringRunner.class)
@DataJpaTest
@ExtendWith(SpringExtension.class)
class ProfileSyncAuditRepositoryTest {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit4.SpringRunner;
import uk.gov.hmcts.reform.profilesync.domain.SyncJobConfig;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringRunner.class)
@DataJpaTest
@ExtendWith(SpringExtension.class)
class ProfileSyncConfigRepositoryTest {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import org.springframework.test.context.junit4.SpringRunner;
import uk.gov.hmcts.reform.profilesync.domain.SyncJobConfig;

import static org.assertj.core.api.Assertions.assertThat;

@RunWith(SpringRunner.class)
@DataJpaTest
@ExtendWith(SpringExtension.class)
class SyncConfigRepositoryTest {

@Autowired
Expand Down

0 comments on commit d00377b

Please sign in to comment.