diff --git a/Jenkinsfile_CNP b/Jenkinsfile_CNP index bddb91558a..1cc699c97e 100644 --- a/Jenkinsfile_CNP +++ b/Jenkinsfile_CNP @@ -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'), diff --git a/charts/civil-ccd/Chart.yaml b/charts/civil-ccd/Chart.yaml index ee97b5b051..d238a1bfaa 100644 --- a/charts/civil-ccd/Chart.yaml +++ b/charts/civil-ccd/Chart.yaml @@ -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 @@ -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 diff --git a/charts/civil-ccd/values.aat.template.yaml b/charts/civil-ccd/values.aat.template.yaml index f4a79459be..d212adfc9f 100644 --- a/charts/civil-ccd/values.aat.template.yaml +++ b/charts/civil-ccd/values.aat.template.yaml @@ -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: diff --git a/charts/civil-ccd/values.preview.template.yaml b/charts/civil-ccd/values.preview.template.yaml index 8bc6652964..c5a998a1dc 100644 --- a/charts/civil-ccd/values.preview.template.yaml +++ b/charts/civil-ccd/values.preview.template.yaml @@ -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: diff --git a/e2e/api/dataHelper.js b/e2e/api/dataHelper.js index 17968067af..fc796f0d5d 100644 --- a/e2e/api/dataHelper.js +++ b/e2e/api/dataHelper.js @@ -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` }; },