Skip to content

Commit 7864133

Browse files
HDPI-7083: Explicitly enable testing support in required envs only (#1966)
1 parent 75e8680 commit 7864133

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

Jenkinsfile_CNP

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,14 @@ withPipeline(type, product, component) {
166166
def setPreviewEnvVars() {
167167
env.MANAGE_CASE_BASE_URL = "https://xui-pcs-api-pr-${CHANGE_ID}.preview.platform.hmcts.net"
168168
env.ENVIRONMENT= "preview"
169+
env.ENABLE_TESTING_SUPPORT = "true"
169170
env.E2E_SUITE= "pr"
170171
}
171172

172173
def setAatEnvVars() {
173174
env.MANAGE_CASE_BASE_URL = "https://manage-case.aat.platform.hmcts.net"
174175
env.ENVIRONMENT= "aat"
176+
env.ENABLE_TESTING_SUPPORT = "true"
175177
env.E2E_SUITE= "regression"
176178
}
177179

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ project.tasks.named("generateCCDConfig") {
515515
environment 'PCS_DB_USER_NAME', 'postgres'
516516
environment 'PCS_DB_PASSWORD', 'postgres'
517517
environment 'DB_PORT', '6432'
518+
environment 'ENABLE_TESTING_SUPPORT', 'false'
519+
environment 'DB_SCHEDULER_EXECUTOR_ENABLED', 'false'
518520
}
519521

520522
// Gradle 7.x issue, workaround from: https://github.com/gradle/gradle/issues/17236#issuecomment-894768083
@@ -550,6 +552,7 @@ tasks.withType(CftlibExec).configureEach {
550552
environment 'CCD_DECENTRALISED_CASE-TYPE-SERVICE-URLS_PCS', 'http://localhost:3206'
551553
environment 'SPRING_FLYWAY_ENABLED', 'true'
552554
environment 'SPRING_PROFILES_ACTIVE', 'dev'
555+
environment 'ENABLE_TESTING_SUPPORT', 'true'
553556
environment 'IDAM_CLIENT_SECRET', 'dummy-secret-for-local'
554557
environment 'XUI_JURISDICTIONS', 'PCS'
555558
environment 'XUI_DOCUMENTS_API_V2', 'http://ccd-case-document-am-api-aat.service.core-compute-aat.internal'

0 commit comments

Comments
 (0)