From dd14c9fe622e733a260029d94cbac5a72929413d Mon Sep 17 00:00:00 2001 From: Anthony Britton Date: Thu, 19 Oct 2023 11:12:43 +0100 Subject: [PATCH] deactivate handler until ready for use --- .../uk/gov/justice/digital/hmpps/service/CvlHandler.kt | 2 ++ .../src/main/resources/application.yml | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/projects/create-and-vary-a-licence-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/CvlHandler.kt b/projects/create-and-vary-a-licence-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/CvlHandler.kt index 476d27d459..ef92253ae2 100644 --- a/projects/create-and-vary-a-licence-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/CvlHandler.kt +++ b/projects/create-and-vary-a-licence-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/CvlHandler.kt @@ -1,5 +1,6 @@ package uk.gov.justice.digital.hmpps.service +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty import org.springframework.stereotype.Component import uk.gov.justice.digital.hmpps.converter.NotificationConverter import uk.gov.justice.digital.hmpps.flags.FeatureFlags @@ -9,6 +10,7 @@ import uk.gov.justice.digital.hmpps.messaging.NotificationHandler import uk.gov.justice.digital.hmpps.telemetry.TelemetryService @Component +@ConditionalOnProperty("cvl.handler.active") class CvlHandler( override val converter: NotificationConverter, private val telemetryService: TelemetryService, diff --git a/projects/create-and-vary-a-licence-and-delius/src/main/resources/application.yml b/projects/create-and-vary-a-licence-and-delius/src/main/resources/application.yml index 6c211617b5..880f7ad57c 100644 --- a/projects/create-and-vary-a-licence-and-delius/src/main/resources/application.yml +++ b/projects/create-and-vary-a-licence-and-delius/src/main/resources/application.yml @@ -60,8 +60,6 @@ seed.database: true wiremock.enabled: true context.initializer.classes: uk.gov.justice.digital.hmpps.wiremock.WireMockInitialiser -messaging.consumer.queue: message-queue - oauth2: client-id: create-and-vary-a-licence-and-delius client-secret: create-and-vary-a-licence-and-delius @@ -75,6 +73,10 @@ logging.level: spring.config.activate.on-profile: integration-test spring.datasource.url: jdbc:h2:mem:./test;MODE=Oracle;DEFAULT_NULL_ORDERING=HIGH +messaging.consumer.queue: message-queue + +cvl.handler.active: true + --- spring.config.activate.on-profile: oracle spring.datasource.url: 'jdbc:tc:oracle:slim-faststart:///XEPDB1'