Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CIV-15726 test allocated case roles #5448

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
13 changes: 13 additions & 0 deletions bin/add-org-roles-to-users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,26 @@ echo "Setting up Users with role assignments..."
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "hmcts-judiciary" '{"jurisdiction":"CIVIL","primaryLocation":"739514"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "judge" '{"jurisdiction":"CIVIL","primaryLocation":"739514","workTypes":"hearing_work,decision_making_work,applications"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "hearing-viewer" '{"jurisdiction":"CIVIL","primaryLocation":"739514"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "case-allocator" '{"jurisdiction":"CIVIL","primaryLocation":"739514"}' "JUDICIAL"

./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "hmcts-judiciary" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "circuit-judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications,multi_track_decision_making_work,intermediate_track_decision_making_work"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "task-supervisor" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "leadership-judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"access_requests,multi_track_decision_making_work,intermediate_track_decision_making_work"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "case-allocator" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "task-supervisor" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "circuit-judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,decision_making_work,applications,multi_track_decision_making_work,intermediate_track_decision_making_work"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "leadership-judge" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"access_requests,multi_track_decision_making_work,intermediate_track_decision_making_work"}' "JUDICIAL"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${JUDGE_PASSWORD}" "PUBLIC" "hearing-viewer" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "JUDICIAL"

./bin/utils/organisational-role-assignment.sh "[email protected]" "${CITIZEN_PASSWORD}" "PUBLIC" "hmcts-admin" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "ADMIN"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${CITIZEN_PASSWORD}" "PUBLIC" "task-supervisor" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"routine_work,hearing_work,access_requests"}' "ADMIN"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${CITIZEN_PASSWORD}" "PUBLIC" "hmcts-viewer" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "ADMIN"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${CITIZEN_PASSWORD}" "PUBLIC" "hearing-manager" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "ADMIN"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${CITIZEN_PASSWORD}" "PUBLIC" "hearing-centre-team-leader" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,access_requests,routine_work"}' "ADMIN"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${CITIZEN_PASSWORD}" "PUBLIC" "hearing-centre-admin" '{"jurisdiction":"CIVIL","primaryLocation":"20262","workTypes":"hearing_work,routine_work,multi_Track_hearing_work,intermediate_Track_hearing_work"}' "ADMIN"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${DEFAULT_PASSWORD}" "PUBLIC" "case-allocator" '{"jurisdiction":"CIVIL","primaryLocation":"20262"}' "ADMIN"

./bin/utils/organisational-role-assignment.sh "[email protected]" "${CITIZEN_PASSWORD}" "PUBLIC" "hmcts-ctsc" '{"jurisdiction":"CIVIL","primaryLocation":"366774"}' "CTSC"
./bin/utils/organisational-role-assignment.sh "[email protected]" "${CITIZEN_PASSWORD}" "PUBLIC" "hearing-viewer" '{"jurisdiction":"CIVIL","primaryLocation":"366774"}' "CTSC"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ ccd:

am-role-assignment-service:
java:
devmemoryRequests: 2048Mi
devcpuRequests: 2000m
devmemoryLimits: 4096Mi
devcpuLimits: 4000m
releaseNameOverride: ${SERVICE_NAME}-am-role-assignment-service
imagePullPolicy: Always
image: hmctspublic.azurecr.io/am/role-assignment-service:latest
Expand All @@ -30,12 +34,22 @@ ccd:
RELEASE_REVISION: "{{ .Release.Revision }}"
ROLE_ASSIGNMENT_DB_PASSWORD: ${POSTGRES_PASSWORD}
ROLE_ASSIGNMENT_DB_OPTIONS: "?stringtype=unspecified"
CCD_DATA_STORE_URL: http://${SERVICE_NAME}-ccd-data-store-api
ROLE_ASSIGNMENT_S2S_AUTHORISED_SERVICES: ccd_gw,am_role_assignment_service,am_org_role_mapping_service,wa_task_management_api,wa_task_configuration_api,xui_webapp,aac_manage_case_assignment,ccd_data,wa_workflow_api,wa_task_monitor,wa_case_event_handler,iac,hmc_cft_hearing_service,ccd_case_disposer,sscs,fis_hmc_api,et_cos,civil_service,civil_general_applications
RUN_LD_ON_STARTUP: false
keyVaults:
am:
secrets:
- name: am-role-assignment-service-s2s-secret
alias: AM_ROLE_ASSIGNMENT_SERVICE_SECRET
- name: app-insights-connection-string
alias: app-insights-connection-string
- name: role-assignment-service-IDAM-CLIENT-SECRET
alias: ROLE_ASSIGNMENT_IDAM_CLIENT_SECRET
- name: role-assignment-service-IDAM-ADMIN-SECRET
alias: ROLE_ASSIGNMENT_IDAM_ADMIN_PASSWORD
- name: role-assignment-service-LD-SDK-KEY
alias: LD_SDK_KEY

ccd-definition-store-api:
java:
releaseNameOverride: ${SERVICE_NAME}-ccd-definition-store-api
Expand Down Expand Up @@ -107,7 +121,7 @@ civil-service:
java:
applicationPort: 4000
releaseNameOverride: ${SERVICE_NAME}-civil-service
image: 'hmctspublic.azurecr.io/civil/service:latest'
image: 'hmctspublic.azurecr.io/civil/service:pr-6041'
imagePullPolicy: Always
ingressHost: ${SERVICE_NAME}-civil-service.preview.platform.hmcts.net
devcpuRequests: 1000m
Expand Down Expand Up @@ -204,9 +218,10 @@ civil-service:
STITCHING_API_ENABLED: false
SERVICE_REQUEST_UPDATE: https://${SERVICE_NAME}-civil-service.preview.platform.hmcts.net/service-request-update
SERVICE_REQUEST_UPDATE_CLAIM_ISSUED: https://${SERVICE_NAME}-civil-service.preview.platform.hmcts.net/service-request-update-claim-issued
CIVIL_S2S_AUTHORISED_SERVICES: payment_app,ccd_data,civil_service,civil-citizen-ui
CIVIL_S2S_AUTHORISED_SERVICES: payment_app,ccd_data,civil_service,civil-citizen-ui,civil_general_applications
ACA_SERVICE_API_BASEURL: http://${SERVICE_NAME}-aac-manage-case-assignment
ROLE_ASSIGNMENT_URL: http://${SERVICE_NAME}-am-role-assignment-service
ASSIGN_ROLES_ON_STARTUP: true
postgresql:
enabled: true
releaseNameOverride: ${SERVICE_NAME}-postgresql
Expand Down
100 changes: 97 additions & 3 deletions charts/civil-citizen-ui/values.enableWA.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ wa:
CCD_URL: http://{{ .Release.Name }}-ccd-data-store-api
CAMUNDA_URL: http://{{ .Release.Name }}-camunda/engine-rest
CCD_SEARCH_URL: http://{{ .Release.Name }}-ccd-data-store-api
ROLE_ASSIGNMENT_URL: http://am-role-assignment-service-aat.service.core-compute-aat.internal
ROLE_ASSIGNMENT_URL: http://${SERVICE_NAME}-am-role-assignment-service
WA_WORKFLOW_API_URL: "http://{{ .Release.Name }}-wa-workflow-api"
WA_TASK_MANAGEMENT_API_URL: "http://{{ .Release.Name }}-wa-task-management-api"
AZURE_SERVICE_BUS_TOPIC_NAME: ${SERVICE_NAME}-asb-ccd-case-events
Expand All @@ -59,11 +59,11 @@ wa:
ingressHost: wa-task-monitor-${SERVICE_FQDN}
environment:
WA_TASK_MANAGEMENT_API_URL: http://{{ .Release.Name }}-wa-task-management-api
ROLE_ASSIGNMENT_URL: http://am-role-assignment-service-aat.service.core-compute-aat.internal
ROLE_ASSIGNMENT_URL: http://${SERVICE_NAME}-am-role-assignment-service
wa-task-management-api:
java:
environment:
ROLE_ASSIGNMENT_URL: http://am-role-assignment-service-aat.service.core-compute-aat.internal
ROLE_ASSIGNMENT_URL: http://${SERVICE_NAME}-am-role-assignment-service
POSTGRES_CONNECTION_OPTIONS: "?stringtype=unspecified"
POSTGRES_HOST: "{{ .Release.Name }}-postgresql"
POSTGRES_REPLICA_HOST: "{{ .Release.Name }}-postgresql"
Expand Down Expand Up @@ -133,7 +133,101 @@ ccd-message-publisher:
key: PASSWORD
disabled: true

am-org-role-mapping-service:
enabled: true
java:
image: 'hmctspublic.azurecr.io/am/org-role-mapping-service:latest'
ingressHost: am-org-role-mapping-service-${SERVICE_FQDN}
releaseNameOverride: ${SERVICE_NAME}-am-org-role-mapping-service
devmemoryRequests: 1024Mi
devcpuRequests: 250m
devmemoryLimits: 2048Mi
devcpuLimits: 1500m
keyVaults:
am:
secrets:
- name: app-insights-connection-string
alias: app-insights-connection-string
- name: am-org-role-mapping-service-s2s-secret
alias: AM_ORG_ROLE_MAPPING_SERVICE_SECRET
- name: role-assignment-service-LD-SDK-KEY
alias: LD_SDK_KEY
- name: orm-IDAM-CLIENT-ID
alias: ORM_IDAM_CLIENT_ID
- name: orm-IDAM-CLIENT-SECRET
alias: ORG_ROLE_MAPPING_IDAM_CLIENT_SECRET
- name: orm-IDAM-ADMIN-SECRET
alias: ORG_ROLE_MAPPING_IDAM_ADMIN_PASSWORD
- name: caseworker-topic-primary-send-listen-shared-access-key
alias: AMQP_CRD_SHARED_ACCESS_KEY_VALUE
- name: judicial-topic-primary-send-listen-shared-access-key
alias: AMQP_JRD_SHARED_ACCESS_KEY_VALUE
secrets:
SB_ACCESS_KEY:
secretRef: civil-sb-preview
key: primaryKey
SB_CONNECTION_STRING:
secretRef: civil-sb-preview
key: connectionString
environment:
TEMP_FLAG: 1
CASE_WORKER_REF_APP_URL: http://rd-caseworker-ref-api-aat.service.core-compute-aat.internal
ROLE_ASSIGNMENT_APP_URL: https://am-role-assignment-${SERVICE_FQDN}
LAUNCH_DARKLY_ENV: pr
AMQP_SHARED_ACCESS_KEY_NAME: RootManageSharedAccessKey
AMQP_HOST: "civil-sb-preview.servicebus.windows.net"
CRD_SUBSCRIPTION_NAME: "{{ .Release.Name}}-asb-crd-topic"
JRD_SUBSCRIPTION_NAME: "{{ .Release.Name}}-asb-jrd-topic"
CRD_TOPIC_NAME: "{{ .Release.Name}}-asb-crd-topic"
JRD_TOPIC_NAME: "{{ .Release.Name}}-asb-jrd-topic"
AMQP_CRD_SHARED_ACCESS_KEY_VALUE: "$(SB_ACCESS_KEY)"
AMQP_JRD_SHARED_ACCESS_KEY_VALUE: "$(SB_ACCESS_KEY)"
ORG_ROLE_MAPPING_DB_HOST: "{{ .Release.Name }}-postgresql"
ORG_ROLE_MAPPING_DB_NAME: "org_role_mapping"
ORG_ROLE_MAPPING_DB_USERNAME: hmcts
ORG_ROLE_MAPPING_DB_PASSWORD: ${POSTGRES_PASSWORD}
ORG_ROLE_MAPPING_DB_PORT: 5432
ORG_ROLE_MAPPING_DB_OPTIONS: "?stringtype=unspecified"
RUN_LD_ON_STARTUP: true
TESTING_SUPPORT_ENABLED: true
JUDICIAL_REF_APP_V2_ACTIVE: true
JUDICIAL_REF_APP_V2_FILTER_AUTHS_BY_APP_ID: true
ROLE_ASSIGNMENT_URL: http://${SERVICE_NAME}-am-role-assignment-service

xui-webapp:
nodejs:
environment:
WA_SUPPORTED_JURISDICTIONS: "IA,PRIVATELAW,CIVIL"
SERVICES_ROLE_ASSIGNMENT_MAPPING_API: https://am-org-role-mapping-service-${SERVICE_FQDN}
SERVICES_EM_ANNO_API: http://${SERVICE_NAME}-ccd-api-gw
SERVICES_IDAM_API_URL: https://idam-api.aat.platform.hmcts.net
SERVICES_S2S: http://rpe-service-auth-provider-aat.service.core-compute-aat.internal
SERVICES_HEARINGS_COMPONENT_API: http://jurisdiction-hearings-api-aat.service.core-compute-aat.internal
SERVICES_HMC_HEARINGS_COMPONENT_API: http://${SERVICE_NAME}-hmc-cft-hearing-service
SERVICES_PRD_LOCATION_API: http://rd-location-ref-api-aat.service.core-compute-aat.internal
SERVICES_PRD_JUDICIAL_API: http://rd-judicial-api-aat.service.core-compute-aat.internal
SERVICES_PRD_COMMONDATA_API: http://rd-commondata-api-aat.service.core-compute-aat.internal
SERVICES_DOCUMENTS_API_V2: http://${SERVICE_NAME}-ccd-case-document-am-api
HEALTH_ROLE_ASSIGNMENT_API: http://${SERVICE_NAME}-am-role-assignment-service/health
GLOBAL_SEARCH_SERVICES: IA,CIVIL,PRIVATELAW,PUBLICLAW,SSCS
FEATURE_WORKALLOCATION_ENABLED: true
FEATURE_REDIS_ENABLED: false
FEATURE_APP_INSIGHTS_ENABLED: false
FEATURE_SECURE_COOKIE_ENABLED: false
FEATURE_PROXY_ENABLED: false
FEATURE_TERMS_AND_CONDITIONS_ENABLED: false
FEATURE_HELMET_ENABLED: false
FEATURE_OIDC_ENABLED: false
FEATURE_JRD_E_LINKS_V2_ENABLED: true
NOW: false
REDISCLOUD_URL: http://dummyrediscloudurl
UV_THREADPOOL_SIZE: 128
PROTOCOL: http
keyVaults:
rpx:
resourceGroup: rpx
secrets:
- mc-s2s-client-secret
- mc-idam-client-secret
- system-user-name
- system-user-password
16 changes: 9 additions & 7 deletions charts/civil-citizen-ui/values.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ xui-webapp:
SERVICES_WA_WORKFLOW_API_URL: http://wa-workflow-api-${SERVICE_FQDN}
SERVICES_CCD_CASE_ASSIGNMENT_API: http://${SERVICE_NAME}-aac-manage-case-assignment
JURISDICTIONS: CIVIL
LAUNCH_DARKLY_CLIENT_ID: ~
LAUNCH_DARKLY_CLIENT_ID: 5de6610b23ce5408280f2268
WA_SUPPORTED_JURISDICTIONS: "IA,PRIVATELAW"

ccd:
Expand Down Expand Up @@ -158,7 +158,7 @@ ccd:
DATA_STORE_DB_HOST: ${SERVICE_NAME}-postgresql
DATA_STORE_DB_OPTIONS: "?stringtype=unspecified"
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,ccd_case_document_am_api,aac_manage_case_assignment,wa_task_management_api,wa_task_monitor,wa_case_event_handler,wa_workflow_api,civil_general_applications
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,aac_manage_case_assignment,wa_task_management_api,wa_task_monitor,wa_case_event_handler,wa_workflow_api,civil_general_applications,am_role_assignment_service
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
Expand All @@ -167,12 +167,12 @@ ccd:
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}
ROLE_ASSIGNMENT_URL: http://am-role-assignment-service-aat.service.core-compute-aat.internal
ROLE_ASSIGNMENT_URL: http://${SERVICE_NAME}-am-role-assignment-service
ELASTIC_SEARCH_ENABLED: true
ELASTIC_SEARCH_HOSTS: ${SERVICE_NAME}-es-master:9200
ELASTIC_SEARCH_DATA_NODES_HOSTS: http://${SERVICE_NAME}-es-master:9200
keyVaults: []
ingressHost: ccd-data-store-api-${SERVICE_NAME}.preview.platform.hmcts.net
ingressHost: ccd-data-store-api-${SERVICE_FQDN}
secrets:
DATA_STORE_DB_PASSWORD:
secretRef: "{{ .Values.global.postgresSecret }}"
Expand Down Expand Up @@ -214,7 +214,7 @@ civil-wa:
civil-general-applications:
enabled: true
java:
image: 'hmctspublic.azurecr.io/civil/general-applications:latest'
image: 'hmctspublic.azurecr.io/civil/general-applications:pr-1652'
releaseNameOverride: ${SERVICE_NAME}-general-applications
ingressHost: ${SERVICE_NAME}-general-applications.preview.platform.hmcts.net
imagePullPolicy: Always
Expand Down Expand Up @@ -259,7 +259,6 @@ civil-general-applications:
- name: microservicekey-civil-general-applications
alias: idam.s2s-auth.totp_secret
environment:
CORE_CASE_DATA_API_URL: https://ccd-data-store-api-${SERVICE_NAME}.preview.platform.hmcts.net
OIDC_ISSUER: https://forgerock-am.service.core-compute-idam-aat2.internal:8443/openam/oauth2/realms/root/realms/hmcts
CMC_DB_HOST: ${SERVICE_NAME}-postgresql
CMC_DB_USERNAME: ${POSTGRES_USER}
Expand All @@ -281,7 +280,10 @@ civil-general-applications:
RD_PROFESSIONAL_API_URL: http://rd-professional-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
RD_COMMONDATA_API_URL: http://rd-commondata-api-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
RELEASE_REVISION: "{{ .Release.Revision }}"
GA_S2S_AUTHORISED_SERVICES: payment_app,ccd_data,civil_service
GA_S2S_AUTHORISED_SERVICES: payment_app,ccd_data,civil_service,civil_general_applications
CUI_URL: https://${SERVICE_FQDN}
SEND_LETTER_URL: http://rpe-send-letter-service-{{ .Values.global.environment }}.service.core-compute-{{ .Values.global.environment }}.internal
STITCHING_API_ENABLED: false
ROLE_ASSIGNMENT_URL: http://${SERVICE_NAME}-am-role-assignment-service
CORE_CASE_DATA_API_URL: http://${SERVICE_NAME}-ccd-data-store-api
CIVIL_S2S_AUTHORISED_SERVICES: payment_app,ccd_data,civil_service,civil-citizen-ui,civil_general_applications