diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e6441136f3..2c3521197d 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8a1f6b97f4..68e8816d71 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=a4b4158601f8636cdeeab09bd76afb640030bb5b144aafe261a5e8af027dc612 -distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip +distributionSha256Sum=d725d707bfabd4dfdc958c624003b3c80accc03f7037b5122c4b1d0ef15cecab +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index b740cf1339..f5feea6d6b 100755 --- a/gradlew +++ b/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -84,7 +86,8 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum diff --git a/gradlew.bat b/gradlew.bat index 7101f8e467..9b42019c79 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## diff --git a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-E123456.json b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-E123456.json index 475ef5a440..34eb2b25d4 100644 --- a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-E123456.json +++ b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-E123456.json @@ -1,7 +1,7 @@ { "Type": "Notification", "MessageId": "33ad848a-4342-5ff2-9fe9-d96307935317", - "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/E123456/ALLOW/10069390/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\"\n}", + "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/E123456/ALLOW/10069390/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\",\"personReference\":{\"identifiers\":[{\"type\":\"CRN\",\"value\":\"E123456\"}]}}", "Timestamp": "2023-12-05T15:32:33.823Z", "MessageAttributes": { "eventType": { diff --git a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-F123456.json b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-F123456.json index 974aaab355..d53f4493ec 100644 --- a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-F123456.json +++ b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-F123456.json @@ -1,7 +1,7 @@ { "Type": "Notification", "MessageId": "33ad848a-4342-5ff2-9fe9-d96307935317", - "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/F123456/ALLOW/10069390/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\"\n}", + "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/F123456/ALLOW/10069390/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\",\"personReference\":{\"identifiers\":[{\"type\":\"CRN\",\"value\":\"F123456\"}]}}", "Timestamp": "2023-12-05T15:32:33.823Z", "MessageAttributes": { "eventType": { diff --git a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-G123456.json b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-G123456.json index 1e162b5a56..f99b1a5363 100644 --- a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-G123456.json +++ b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-G123456.json @@ -1,7 +1,7 @@ { "Type": "Notification", "MessageId": "33ad848a-4342-5ff2-9fe9-d96307935317", - "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/G123456/ALLOW/10069390/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\"\n}", + "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/G123456/ALLOW/10069390/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\",\"personReference\":{\"identifiers\":[{\"type\":\"CRN\",\"value\":\"G123456\"}]}}", "Timestamp": "2023-12-05T15:32:33.823Z", "MessageAttributes": { "eventType": { diff --git a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-H123456.json b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-H123456.json index d010081452..bb95020aca 100644 --- a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-H123456.json +++ b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-H123456.json @@ -1,7 +1,7 @@ { "Type": "Notification", "MessageId": "33ad848a-4342-5ff2-9fe9-d96307935317", - "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/H123456/ALLOW/10078385/COMPLETE\",\n \"occurredAt\": \"2023-12-15T08:34:44+00:00\"\n}", + "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/H123456/ALLOW/10078385/COMPLETE\",\n \"occurredAt\": \"2023-12-15T08:34:44+00:00\",\"personReference\":{\"identifiers\":[{\"type\":\"CRN\",\"value\":\"H123456\"}]}}", "Timestamp": "2023-12-15T08:34:44.000Z", "MessageAttributes": { "eventType": { diff --git a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-L123456.json b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-L123456.json index 97b2c29f9e..3263a70646 100644 --- a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-L123456.json +++ b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-L123456.json @@ -1,7 +1,7 @@ { "Type": "Notification", "MessageId": "33ad848a-4342-5ff2-9fe9-d96307935317", - "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/L123456/ALLOW/10096930/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\"\n}", + "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/L123456/ALLOW/10096930/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\",\"personReference\":{\"identifiers\":[{\"type\":\"CRN\",\"value\":\"L123456\"}]}}", "Timestamp": "2023-12-05T15:32:33.823Z", "MessageAttributes": { "eventType": { diff --git a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-M123456.json b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-M123456.json index 6e7d616bc0..ce9b0c9773 100644 --- a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-M123456.json +++ b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-M123456.json @@ -1,7 +1,7 @@ { "Type": "Notification", "MessageId": "33ad848a-4342-5ff2-9fe9-d96307935317", - "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/M123456/ALLOW/100835871/COMPLETE\",\n \"occurredAt\": \"2023-12-15T08:34:44+00:00\"\n}", + "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/M123456/ALLOW/100835871/COMPLETE\",\n \"occurredAt\": \"2023-12-15T08:34:44+00:00\",\"personReference\":{\"identifiers\":[{\"type\":\"CRN\",\"value\":\"M123456\"}]}}", "Timestamp": "2023-12-15T08:34:44.000Z", "MessageAttributes": { "eventType": { diff --git a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-N123456.json b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-N123456.json index f69e261a0e..36d6cb0dff 100644 --- a/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-N123456.json +++ b/projects/assessment-summary-and-delius/src/dev/resources/messages/assessment-summary-produced-N123456.json @@ -1,7 +1,7 @@ { "Type": "Notification", "MessageId": "33ad848a-4342-5ff2-9fe9-d96307935317", - "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/N123456/ALLOW/10069390/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\"\n}", + "Message": "{\n \"eventType\": \"assessment.summary.produced\",\n \"version\": 1,\n \"description\": \"Assessment Summary has been produced\",\n \"detailUrl\": \"http://localhost:{wiremock.port}/eor/oasys/ass/asssumm/N123456/ALLOW/10069390/COMPLETE\",\n \"occurredAt\": \"2023-12-05T15:32:32+00:00\",\",personReference\":{\"identifiers\":[{\"type\":\"CRN\",\"value\":\"N123456\"}]}}", "Timestamp": "2023-12-05T15:32:33.823Z", "MessageAttributes": { "eventType": { diff --git a/projects/assessment-summary-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt b/projects/assessment-summary-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt index 58dae92b24..6296bd801e 100644 --- a/projects/assessment-summary-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt +++ b/projects/assessment-summary-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/messaging/Handler.kt @@ -47,5 +47,8 @@ class Handler( fun HmppsDomainEvent.telemetryProperties() = listOfNotNull( "occurredAt" to occurredAt.toString(), + "crn" to crn(), detailUrl?.let { "detailUrl" to it } ).toMap() + +fun HmppsDomainEvent.crn(): String = personReference.findCrn() ?: throw IllegalArgumentException("Missing CRN") diff --git a/projects/person-search-index-from-delius/container/Dockerfile b/projects/person-search-index-from-delius/container/Dockerfile index 838acc1a6d..3e83835d77 100644 --- a/projects/person-search-index-from-delius/container/Dockerfile +++ b/projects/person-search-index-from-delius/container/Dockerfile @@ -4,7 +4,7 @@ COPY --chown=yq /pipelines /pipelines RUN find /pipelines -type f -name '*.yml' -exec sh -c 'f="$1"; yq -o=json "$f" > "${f%.yml}.json"' shell {} +; -FROM logstash:8.14.2 +FROM logstash:8.14.3 USER root SHELL ["/bin/bash", "-o", "pipefail", "-c"] diff --git a/tools/ingress-testing/api-client/gradle/wrapper/gradle-wrapper.jar b/tools/ingress-testing/api-client/gradle/wrapper/gradle-wrapper.jar index e6441136f3..2c3521197d 100644 Binary files a/tools/ingress-testing/api-client/gradle/wrapper/gradle-wrapper.jar and b/tools/ingress-testing/api-client/gradle/wrapper/gradle-wrapper.jar differ diff --git a/tools/ingress-testing/api-client/gradle/wrapper/gradle-wrapper.properties b/tools/ingress-testing/api-client/gradle/wrapper/gradle-wrapper.properties index 8a1f6b97f4..68e8816d71 100644 --- a/tools/ingress-testing/api-client/gradle/wrapper/gradle-wrapper.properties +++ b/tools/ingress-testing/api-client/gradle/wrapper/gradle-wrapper.properties @@ -1,7 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionSha256Sum=a4b4158601f8636cdeeab09bd76afb640030bb5b144aafe261a5e8af027dc612 -distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip +distributionSha256Sum=d725d707bfabd4dfdc958c624003b3c80accc03f7037b5122c4b1d0ef15cecab +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/tools/ingress-testing/api-client/gradlew b/tools/ingress-testing/api-client/gradlew index b740cf1339..f5feea6d6b 100755 --- a/tools/ingress-testing/api-client/gradlew +++ b/tools/ingress-testing/api-client/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -84,7 +86,8 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s +' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum diff --git a/tools/ingress-testing/api-client/gradlew.bat b/tools/ingress-testing/api-client/gradlew.bat index 7101f8e467..9b42019c79 100755 --- a/tools/ingress-testing/api-client/gradlew.bat +++ b/tools/ingress-testing/api-client/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ##########################################################################