Skip to content

Commit

Permalink
Refactor/adjust config based on data store migration (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmendrak authored Aug 12, 2021
1 parent ec1356d commit e78ec9c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
6 changes: 5 additions & 1 deletion Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ def secrets = [
],
'ccd-${env}': [
secret('ccd-api-gateway-oauth2-client-secret', 'CCD_API_GATEWAY_IDAM_CLIENT_SECRET'),
secret('postcode-info-address-lookup-token', 'ADDRESS_LOOKUP_TOKEN')
secret('postcode-info-address-lookup-token', 'ADDRESS_LOOKUP_TOKEN'),
secret('ccd-admin-web-oauth2-client-secret', 'ADMIN_WEB_IDAM_SECRET'),
secret('idam-data-store-client-secret','IDAM_OAUTH2_DATA_STORE_CLIENT_SECRET'),
secret('idam-data-store-system-user-username','IDAM_DATA_STORE_SYSTEM_USER_USERNAME'),
secret('idam-data-store-system-user-password','IDAM_DATA_STORE_SYSTEM_USER_PASSWORD')
],
'civil-${env}': [
secret('microservicekey-civil-service', 'S2S_SECRET'),
Expand Down
4 changes: 2 additions & 2 deletions charts/civil-ccd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
description: A Helm chart for civil-ccd App
name: civil-ccd
home: https://github.com/hmcts/civil-ccd-definition
version: 0.0.6
version: 0.0.7
maintainers:
- name: HMCTS Civil team

Expand All @@ -11,7 +11,7 @@ dependencies:
version: 3.6.0
repository: '@hmctspublic'
- name: ccd
version: 5.0.2
version: 5.0.6
repository: '@hmctspublic'
tags:
- civil-ccd-stack
Expand Down
9 changes: 7 additions & 2 deletions charts/civil-ccd/values.aat.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,18 @@ ccd:
java:
imagePullPolicy: Always
environment:
CASE_DOCUMENT_AM_API_ATTACH_DOCUMENT_ENABLED: false
DATA_STORE_DB_HOST: ${SERVICE_NAME}-postgresql
DATA_STORE_IDAM_KEY: ${CCD_DATA_STORE_S2S_SECRET}
DATA_STORE_S2S_AUTHORISED_SERVICES: ccd_data,ccd_gw,ccd_ps,bulk_scan_orchestrator,ccpay_bubble,ctsc_work_allocation,em_ccd_orchestrator,xui_webapp,civil_service
IDAM_API_BASE_URL: https://idam-web-public.aat.platform.hmcts.net
DATA_STORE_S2S_AUTHORISED_SERVICES: ccd_data,ccd_gw,ccd_ps,bulk_scan_orchestrator,ccpay_bubble,ctsc_work_allocation,em_ccd_orchestrator,xui_webapp,civil_service,ccd_case_document_am_api
IDAM_API_BASE_URL: https://idam-api.aat.platform.hmcts.net
IDAM_OIDC_URL: https://idam-web-public.aat.platform.hmcts.net
OIDC_ISSUER: https://forgerock-am.service.core-compute-idam-aat2.internal:8443/openam/oauth2/realms/root/realms/hmcts
CCD_S2S_AUTHORISED_SERVICES_CASE_USER_ROLES: civil_service
CASE_DOCUMENT_AM_URL: http://ccd-case-document-am-api-aat.service.core-compute-aat.internal
IDAM_OAUTH2_DATA_STORE_CLIENT_SECRET: ${IDAM_OAUTH2_DATA_STORE_CLIENT_SECRET}
IDAM_DATA_STORE_SYSTEM_USER_USERNAME: ${IDAM_DATA_STORE_SYSTEM_USER_USERNAME}
IDAM_DATA_STORE_SYSTEM_USER_PASSWORD: ${IDAM_DATA_STORE_SYSTEM_USER_PASSWORD}
keyVaults: []
ingressHost: civil-ccd-data-store-staging-aat.service.core-compute-aat.internal
ccd-definition-store-api:
Expand Down
11 changes: 8 additions & 3 deletions charts/civil-ccd/values.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,18 @@ ccd:
java:
imagePullPolicy: Always
environment:
CASE_DOCUMENT_AM_API_ATTACH_DOCUMENT_ENABLED: false
DATA_STORE_DB_HOST: ${SERVICE_NAME}-postgresql
DATA_STORE_IDAM_KEY: ${CCD_DATA_STORE_S2S_SECRET}
DATA_STORE_S2S_AUTHORISED_SERVICES: ccd_data,ccd_gw,ccd_ps,bulk_scan_orchestrator,ccpay_bubble,ctsc_work_allocation,em_ccd_orchestrator,xui_webapp,civil_service
IDAM_API_BASE_URL: https://idam-web-public.aat.platform.hmcts.net
IDAM_OIDC_URL: https://idam-web-public.aat.platform.hmcts.net
DATA_STORE_S2S_AUTHORISED_SERVICES: ccd_data,ccd_gw,ccd_ps,bulk_scan_orchestrator,ccpay_bubble,ctsc_work_allocation,em_ccd_orchestrator,xui_webapp,civil_service,ccd_case_document_am_api
IDAM_API_BASE_URL: https://idam-api.aat.platform.hmcts.net
IDAM_OIDC_URL: https://idam-web-public.aat.platform.hmcts.net
OIDC_ISSUER: https://forgerock-am.service.core-compute-idam-{{ .Values.global.environment }}.internal:8443/openam/oauth2/hmcts
CCD_S2S_AUTHORISED_SERVICES_CASE_USER_ROLES: civil_service,aac_manage_case_assignment
CASE_DOCUMENT_AM_URL: http://ccd-case-document-am-api-aat.service.core-compute-aat.internal
IDAM_OAUTH2_DATA_STORE_CLIENT_SECRET: ${IDAM_OAUTH2_DATA_STORE_CLIENT_SECRET}
IDAM_DATA_STORE_SYSTEM_USER_USERNAME: ${IDAM_DATA_STORE_SYSTEM_USER_USERNAME}
IDAM_DATA_STORE_SYSTEM_USER_PASSWORD: ${IDAM_DATA_STORE_SYSTEM_USER_PASSWORD}
keyVaults: []
ingressHost: ccd-data-store-api-${SERVICE_FQDN}
ccd-definition-store-api:
Expand Down
5 changes: 3 additions & 2 deletions e2e/api/dataHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ module.exports = {
},

document: filename => {
const documentId = uuid.v1();
return {
document_url: `${config.url.dmStore}/documents/fakeUrl`,
document_url: `${config.url.dmStore}/documents/${documentId}`,
document_filename: filename,
document_binary_url: `${config.url.dmStore}/documents/fakeUrl/binary`
document_binary_url: `${config.url.dmStore}/documents/${documentId}/binary`
};
},

Expand Down

0 comments on commit e78ec9c

Please sign in to comment.