Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
6cfd338
Spring Boot 3 Upgrade pt1
lang-ben Sep 27, 2024
a7be58a
Spring boot upgrade part 2
lang-ben Oct 7, 2024
fd326e0
Fix NumberFormatException not getting caught and timeout issue
lang-ben Oct 8, 2024
6979648
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Oct 9, 2024
060d00b
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Oct 9, 2024
83fddb0
Test fixes andd suppressions
lang-ben Oct 10, 2024
4ee6485
Additional SupplementaryDataUserType tests
lang-ben Oct 10, 2024
49cbc05
Fix exception matching for SupplementaryDataUserTypeTest
lang-ben Oct 10, 2024
49947fb
fix whitespace issue
lang-ben Oct 10, 2024
092ba9f
Merge branch 'master' into CCD-5269
lang-ben Oct 10, 2024
03c53cd
Merge branch 'master' into CCD-5269
lang-ben Oct 11, 2024
cd65e83
fix healthcheck diskspace path issue
lang-ben Oct 14, 2024
fa20316
Merge branch 'CCD-5269' of https://github.com/hmcts/ccd-data-store-ap…
lang-ben Oct 14, 2024
e610542
fix case mgmt healthcheck
lang-ben Oct 14, 2024
b0e8133
Merge branch 'master' into CCD-5269
lang-ben Nov 1, 2024
a263a50
Fix tests
lang-ben Nov 2, 2024
40ceff6
Remove version restrictions
lang-ben Nov 2, 2024
385b426
exclude codehaus.groovy
lang-ben Nov 4, 2024
cacec70
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jan 9, 2025
c1ba893
SpringBoot3.4
lang-ben Jan 21, 2025
d8b42ba
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jan 21, 2025
17c0b9c
Fix checkstyle
lang-ben Jan 21, 2025
ee4c6a5
Update to Junit 5 and cleanup wiremock usage
lang-ben Apr 2, 2025
da8a0aa
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Apr 2, 2025
d18c3e1
Swap to pact broker url
lang-ben Apr 3, 2025
5076da6
tweak health endpoint properties
lang-ben Apr 3, 2025
7b51ff5
Try and fix caseDocumentManagement missing
lang-ben Apr 4, 2025
01f6044
Try tweaking S-544 and S-142 to catch issue
lang-ben Apr 4, 2025
d6f2d5c
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Apr 7, 2025
542d159
Fix pact tests
lang-ben Apr 7, 2025
fdbb64f
Remove autowired applicationParams
lang-ben Apr 7, 2025
7b69ae9
Mock ApplicationParams in CaseAssignedUserRolesProviderTest
lang-ben Apr 8, 2025
6e2d75d
Swap more autowired for mockitobeans
lang-ben Apr 8, 2025
af03e16
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Apr 8, 2025
6a1e88f
Rollback jackson
lang-ben Apr 8, 2025
e33b6db
Undo S-544 & S-142 changes and fix spybean
lang-ben Apr 8, 2025
08f255b
Try fixing tests again
lang-ben Apr 11, 2025
b5081e4
Handle getLinkedCases better and change S-544 expected response fields
lang-ben Apr 11, 2025
a5f9378
Try tweaking resonses and endpoint matching
lang-ben Apr 11, 2025
63dc59e
Update to add status to expectedResponse.body
lang-ben Apr 11, 2025
a2f21a8
Undo get matcher change
lang-ben Apr 11, 2025
4aa98c0
Fix final functional test
lang-ben Apr 11, 2025
21c4d3a
Merge branch 'master' into CCD-5269
lang-ben Apr 14, 2025
ac2e1dc
Merge branch 'master' into CCD-5269
lang-ben Apr 14, 2025
f713308
Whitespace change to rebuild
lang-ben Apr 14, 2025
d1c686f
Merge branch 'CCD-5269' of https://github.com/hmcts/ccd-data-store-ap…
lang-ben Apr 14, 2025
ad99af7
Merge branch 'master' into CCD-5269
lang-ben Apr 15, 2025
50d0097
Ignore tests with no steps F-1002 & F-1003
lang-ben Apr 15, 2025
7f10738
Merge branch 'CCD-5269' of https://github.com/hmcts/ccd-data-store-ap…
lang-ben Apr 15, 2025
dd11b94
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben May 22, 2025
9c3d2d7
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben May 23, 2025
9d4ad38
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben May 27, 2025
a4a3441
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jun 4, 2025
79dc2ab
Bump test def version and ordering issue on tests
lang-ben Jun 9, 2025
867acd1
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jun 9, 2025
cded528
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jun 10, 2025
d78b92a
Latest test definitions
lang-ben Jun 11, 2025
c9a4b87
regress befta and test def versions
lang-ben Jun 11, 2025
68e6109
tweaking befta/test-def versions again
lang-ben Jun 11, 2025
f4b9ffd
Merge branch 'master' into CCD-5269
lang-ben Jun 12, 2025
eee5c33
Whitespace to trigger build
lang-ben Jun 12, 2025
750acdd
Merge branch 'master' into CCD-5269
lang-ben Jun 16, 2025
110aec2
Merge branch 'master' into CCD-5269
lang-ben Jun 17, 2025
00fd22b
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jun 20, 2025
a6a553d
Update GeneratedValue to SEQUENCE to resolve locking issue
lang-ben Jun 26, 2025
3af5d7b
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jul 4, 2025
69ed3fd
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jul 9, 2025
20948a0
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jul 25, 2025
255c853
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Jul 29, 2025
b0c36c8
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Aug 26, 2025
188967a
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Sep 4, 2025
20c5998
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Sep 22, 2025
5b99687
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Oct 27, 2025
769e366
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Oct 28, 2025
b98233d
Merge branch 'master' of https://github.com/hmcts/ccd-data-store-api …
lang-ben Oct 31, 2025
2751f2e
CCD-6942: Enable Virtual Threads on CCD Data Store
kiran-yenigala-hmcts Nov 18, 2025
16f2f3e
CCD-6942: Enable Virtual Threads, check threads usage
kiran-yenigala-hmcts Nov 21, 2025
4677773
CCD-6942: Enable Virtual Threads, check threads usage
kiran-yenigala-hmcts Nov 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
453 changes: 166 additions & 287 deletions build.gradle

Large diffs are not rendered by default.

30 changes: 1 addition & 29 deletions dependency-check-suppressions.xml
Original file line number Diff line number Diff line change
@@ -1,30 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?><suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
<suppress>
<notes>Temporary Suppression
CVE-2024-38820 refer [Ticket]
CVE-2025-48734 refer [https://tools.hmcts.net/jira/browse/CCD-6458]
CVE-2024-22259 refer [https://tools.hmcts.net/jira/browse/CCD-6489]
CVE-2024-38808 refer [https://tools.hmcts.net/jira/browse/CCD-6507]
CVE-2025-46701 refer [https://tools.hmcts.net/jira/browse/CCD-6534]
CVE-2025-48988 refer [https://tools.hmcts.net/jira/browse/CCD-6534]
CVE-2025-49124 refer [https://tools.hmcts.net/jira/browse/CCD-6601]
CVE-2025-49125 refer [https://tools.hmcts.net/jira/browse/CCD-6601]
CVE-2025-48976 refer [https://tools.hmcts.net/jira/browse/CCD-6601]
CVE-2025-48989 refer [https://tools.hmcts.net/jira/browse/CCD-6675]
CVE-2025-55668 refer [https://tools.hmcts.net/jira/browse/CCD-6675]
CVE-2023-51074 refer [https://tools.hmcts.net/jira/browse/CCD-6797]
</notes>
<cve>CVE-2024-38820</cve>
<cve>CVE-2025-48734</cve>
<cve>CVE-2024-22259</cve>
<cve>CVE-2024-38808</cve>
<cve>CVE-2025-46701</cve>
<cve>CVE-2025-48988</cve>
<cve>CVE-2025-49124</cve>
<cve>CVE-2025-49125</cve>
<cve>CVE-2025-48976</cve>
<cve>CVE-2025-48989</cve>
<cve>CVE-2025-55668</cve>
<cve>CVE-2023-51074</cve>
</suppress>
</suppressions>
</suppressions>
5 changes: 5 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[versions]
mockito = "5.15.2"

[libraries]
mockito = { module = "org.mockito:mockito-core", version.ref = "mockito" }
8 changes: 0 additions & 8 deletions gradle/suppress.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,3 @@ class Globals {
static String REPORT_NAME = "dependency-check-report.xml"
static String WHITE_SPACE_FOR_INDENT = "\n" + "\u0020".repeat(8) // white space for indentation
}

task suppressCves() {
doLast {
// Optional argument can be added to specify the name of the report file.
// If no argument is specified, the default report file is 'dependency-check-report.xml'
suppressCves()
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package uk.gov.hmcts.ccd.datastore.befta;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.runner.RunWith;

import io.cucumber.junit.Cucumber;
Expand All @@ -19,12 +19,12 @@ private DataStoreBeftaRunner() {
// Hide Utility Class Constructor : Utility classes should not have a public or default constructor (squid:S1118)
}

@BeforeClass
@BeforeAll
public static void setUp() {
BeftaMain.setUp(new DataStoreTestAutomationAdapter());
}

@AfterClass
@AfterAll
public static void tearDown() {
BeftaMain.tearDown();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasSize;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.isEmptyString;
import static org.hamcrest.Matchers.emptyString;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.nullValue;
import static uk.gov.hmcts.ccd.datastore.tests.fixture.AATCaseType.CASE_TYPE;
Expand Down Expand Up @@ -46,7 +46,7 @@ void shouldRetrieveWhenExists() {

// Metadata
.body("id", equalTo(CREATE))
.body("event_token", is(not(isEmptyString())))
.body("event_token", is(not(emptyString())))
.body("name", is(CREATE_NAME))
.body("description", is(nullValue()))
.body("case_id", is(nullValue()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
},
"body": {
"columns": [
{
"__ordering__": "UNORDERED"
},
{
"_extends_": "SearchResultViewColumnMetadataTrue",
"label": "Last State Modified Date",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
},
"body": {
"columns": [
{
"__ordering__": "UNORDERED"
},
{
"_extends_": "SearchResultViewColumnMetadataTrue",
"label": "Last State Modified Date",
Expand Down
62 changes: 36 additions & 26 deletions src/aat/resources/features/F-045 - Grant Access V1/S-544.td.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
{
"_guid_": "S-544",
"_extends_": "F-045_Test_Data_Base",
"title": "must return negative response when request body doesn't provide a mandatory field",
"_guid_": "S-544",
"_extends_": "F-045_Test_Data_Base",
"title": "must return negative response when request body doesn't provide a mandatory field",

"specs": [
"an active profile in CCD",
"testUser - with an active profile in CCD",
"does not provide a mandatory field for the operation",
"has the 400 return code"
],
"specs": [
"an active profile in CCD",
"testUser - with an active profile in CCD",
"does not provide a mandatory field for the operation",
"has the 400 return code"
],

"request": {
"pathVariables": {
"cid": "157375164884070312"
},
"body": {
"id_wrong_filed_name": "Test User"
}
},
"request": {
"pathVariables": {
"cid": "157375164884070312"
},
"body": {
"id_wrong_filed_name": "Test User"
}
},

"expectedResponse": {
"_extends_": "Common_400_Response",
"headers": {
"Content-Length": "[[ANYTHING_PRESENT]]",
"Content-Type": "[[ANY_STRING_NULLABLE]]",
"Vary": "Accept-Encoding"
},
"body": null
}
"expectedResponse": {
"_extends_": "Common_Response",
"responseCode": 400,
"responseMessage": "Bad Request",
"headers": {
"_extends_": "Common_400_Response_Headers",
"Content-Length": "[[ANYTHING_PRESENT]]",
"Content-Type": "[[ANY_STRING_NULLABLE]]",
"Vary": "Accept-Encoding"
},
"body": {
"status": 400,
"type": "[[ANYTHING_PRESENT]]",
"title": "Bad Request",
"detail": "Failed to read request",
"instance": "[[ANYTHING_PRESENT]]",
"properties": "[[ANY_STRING_NULLABLE]]"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ Feature: F-1002: Submit Event for an Existing Case
Then a negative response is received,
And the response has all the details as expected.

@S-1019
@S-1019 @Ignore
Scenario: generic scenario for Unauthorised

@S-1020
@S-1020 @Ignore
Scenario: generic scenario for Forbidden

@S-1021
@S-1021 @Ignore
Scenario: generic scenario for Unsupported Media Type
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ Feature: F-1003: Submit Case Creation
Then a negative response is received
And the response has all the details as expected

@S-1038
@S-1038 @Ignore
Scenario: generic scenario for Unauthorized

@S-1039
@S-1039 @Ignore
Scenario: generic scenario for Forbidden

@S-1040
@S-1040 @Ignore
Scenario: generic scenario for Unsupported Media Type

@S-1041
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"expectedResponse": {
"_extends_": "Common_400_Response",
"body": {
"exception": "javax.validation.ConstraintViolationException",
"exception": "jakarta.validation.ConstraintViolationException",
"message": "createCase.caseTypeId: Case Type Id is invalid",
"path" : "/case-types/BEFTA_%2526%255E%2524%25C2%25A3CASETYPE_2_1/cases",
"details": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,9 @@
"label": "First page",
"order": 1,
"wizard_page_fields": [
{
"__ordering__": "UNORDERED"
},
{
"case_field_id": "Address1",
"order": 2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@
"label": "First page",
"order": 1,
"wizard_page_fields": [
{
"__ordering__": "UNORDERED"
},
{
"case_field_id": "Address1",
"order": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,9 @@
"label": "First page",
"order": 1,
"wizard_page_fields": [
{
"__ordering__": "UNORDERED"
},
{
"case_field_id": "Address1",
"order": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@
"label": "First page",
"order": 1,
"wizard_page_fields": [
{
"__ordering__": "UNORDERED"
},
{
"case_field_id": "Address1",
"order": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,8 @@
"label" : "Retain Hidden Value Page",
"order" : 1,
"wizard_page_fields" : [ {
"__ordering__": "UNORDERED"
},{
"case_field_id" : "NumberField",
"order" : 1,
"page_column_no" : null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,9 @@
"label": "Retain Hidden Value Page",
"order": 1,
"wizard_page_fields": [
{
"__ordering__": "UNORDERED"
},
{
"case_field_id": "FamilyDetails",
"order": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"body" : {
"case_version": "[[ANYTHING_PRESENT]]",
"categories": [
{
"__ordering__": "UNORDERED"
},
{
"category_id": "CategoryID1",
"category_name": "Evidences",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"body" : {
"case_version": "[[ANYTHING_PRESENT]]",
"categories": [
{
"__ordering__": "UNORDERED"
},
{
"category_id": "CategoryID1",
"category_name": "Evidences",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"body" : {
"case_version": "[[ANYTHING_PRESENT]]",
"categories": [
{
"__ordering__": "UNORDERED"
},
{
"category_id": "CategoryID1",
"category_name": "Evidences",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"body" : {
"case_version": "[[ANYTHING_PRESENT]]",
"categories": [
{
"__ordering__": "UNORDERED"
},
{
"category_id": "CategoryID1",
"category_name": "Evidences",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,17 @@
"body" : {
"case_version": "[[ANYTHING_PRESENT]]",
"categories": [
{
"__ordering__": "UNORDERED"
},
{
"category_id": "CategoryID1",
"category_name": "Evidences",
"category_order": 100,
"documents": [
{
"__elementId__": "attribute_path"
"__elementId__": "attribute_path",
"__ordering__": "UNORDERED"
},
{
"document_url": "${[scenarioContext][childContexts][F-140_Document_Upload][testData][actualResponse][body][documents][0][_links][self][href]}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"body": {
"case_version": "[[ANYTHING_PRESENT]]",
"categories": [
{
"__ordering__": "UNORDERED"
},
{
"category_id": "CategoryID1",
"category_name": "Evidences",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"body" : {
"case_version" : 1,
"categories" : [ {
"__ordering__": "UNORDERED"
}, {
"category_id" : "CategoryID1",
"category_name" : "Evidences",
"category_order" : 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"body" : {
"case_version" : 1,
"categories" : [ {
"__ordering__": "UNORDERED"
}, {
"category_id" : "CategoryID1",
"category_name" : "Evidences",
"category_order" : 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"body" : {
"case_version" : 1,
"categories" : [ {
"__ordering__": "UNORDERED"
}, {
"category_id" : "CategoryID4",
"category_name" : "Residence Proof",
"category_order" : 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"body" : {
"case_version" : 1,
"categories" : [ {
"__ordering__": "UNORDERED"
}, {
"category_id" : "CategoryID1",
"category_name" : "Evidences",
"category_order" : 100,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"body" : {
"case_version" : 1,
"categories" : [ {
"__ordering__": "UNORDERED"
}, {
"category_id" : "CategoryID1",
"category_name" : "Evidences",
"category_order" : 100,
Expand Down
Loading