Skip to content

Commit

Permalink
Fix for CCD-4702 (#1478)
Browse files Browse the repository at this point in the history
* Fix for CCD-4702
        Possible regression in /search-inputs endpoint in ccd-data-api

* CCD-4702 update functional tests

* empty commit to trigger build

* empty commit to trigger build

---------

Co-authored-by: RebeccaBaker <[email protected]>
Co-authored-by: rebeccabaker <[email protected]>
Co-authored-by: shahir-ali <[email protected]>
Co-authored-by: bharatkumarpatel1 <[email protected]>
Co-authored-by: Dinesh Patel <[email protected]>
  • Loading branch information
6 people authored Nov 14, 2024
1 parent 7c9ff69 commit 99d2147
Show file tree
Hide file tree
Showing 12 changed files with 2,322 additions and 23 deletions.
14 changes: 7 additions & 7 deletions aat/src/aat/resources/features/F-079/S-508.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -427,19 +427,19 @@
"type": "FixedList",
"fixed_list_items": [
{
"code": "DONE",
"label": "Done",
"order": null
"code": "TODO",
"label": "To do",
"order": 1
},
{
"code": "IN_PROGRESS",
"label": "In progress",
"order": null
"order": 2
},
{
"code": "TODO",
"label": "To do",
"order": null
"code": "DONE",
"label": "Done",
"order": 3
}
]
},
Expand Down
4 changes: 2 additions & 2 deletions aat/src/aat/resources/features/F-080/S-080.1.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,12 @@
{
"code": "CaseUpdated",
"label": "Update case",
"order": null
"order": 1
},
{
"code": "CaseCreated",
"label": "Create case",
"order": null
"order": 1
}
],
"complex_fields": [],
Expand Down
4 changes: 2 additions & 2 deletions aat/src/aat/resources/features/F-089/S-089.2.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -1766,12 +1766,12 @@
{
"code": "CaseCreated",
"label": "Create case",
"order": null
"order": 1
},
{
"code": "CaseUpdated",
"label": "Updated case",
"order": null
"order": 1
}
],
"complex_fields": [],
Expand Down
4 changes: 2 additions & 2 deletions aat/src/aat/resources/features/F-090/S-090.3.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -1669,11 +1669,11 @@
"fixed_list_items" : [ {
"code" : "CaseCreated",
"label" : "Create case",
"order" : null
"order" : 1
}, {
"code" : "CaseUpdated",
"label" : "Updated case",
"order" : null
"order" : 1
} ],
"complex_fields" : [ ],
"collection_field_type" : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -594,12 +594,12 @@
{
"code": "CaseCreated",
"label": "Create case",
"order": null
"order": 1
},
{
"code": "CaseUpdated",
"label": "Updated case",
"order": null
"order": 1
}
],
"complex_fields": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,12 @@
{
"code": "extraDetailsAdded",
"label": "Extra Details Added",
"order": null
"order": 1
},
{
"code": "CaseCreated",
"label": "Create case",
"order": null
"order": 1
}
],
"complex_fields": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"fixed_list_items" : [ {
"code" : "CaseCreated",
"label" : "Create case",
"order" : null
"order" : 1
} ],
"complex_fields" : [ ],
"collection_field_type" : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,11 @@
"fixed_list_items" : [ {
"code" : "extraDetailsAdded",
"label" : "Extra Details Added",
"order" : null
"order" : 1
}, {
"code" : "CaseCreated",
"label" : "Create case",
"order" : null
"order" : 1
} ],
"complex_fields" : [ ],
"collection_field_type" : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
"fixed_list_items" : [ {
"code" : "CaseCreated",
"label" : "Create case",
"order" : null
"order" : 1
} ],
"complex_fields" : [ ],
"collection_field_type" : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public class SpreadSheetImportTest extends BaseTest {

private static final String GET_CASE_TYPES_COUNT_QUERY = "SELECT COUNT(*) FROM case_type";

private static final String RESPONSE_JSON_V45 = "GetCaseTypesResponseForCCD_TestDefinition_V45.json";
private static final String RESPONSE_JSON_V55 = "GetCaseTypesResponseForCCD_TestDefinition_V55.json";

private static final String EXPECTED_USER_PROFILES = "[{\"id\":\"[email protected]\","
+ "\"work_basket_default_jurisdiction\":\"TEST\","
Expand Down Expand Up @@ -346,7 +346,7 @@ public static Matcher<Map<String, Object>> hasColumn(String key, Object value) {
}

private void assertBody(String contentAsString) throws IOException, URISyntaxException, JSONException {
assertBody(contentAsString, RESPONSE_JSON_V45);
assertBody(contentAsString, RESPONSE_JSON_V55);
}

private void assertBody(String contentAsString, String fileName)
Expand Down
Loading

0 comments on commit 99d2147

Please sign in to comment.