Skip to content

Commit

Permalink
deactivate handler until ready for use
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj committed Oct 19, 2023
1 parent 0e00e55 commit dd14c9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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<HmppsDomainEvent>,
private val telemetryService: TelemetryService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit dd14c9f

Please sign in to comment.