Skip to content

Commit

Permalink
CME-109: Update CaseEventToFields tab to include NullifyByDefault as …
Browse files Browse the repository at this point in the history
…a new column (#1517)

* CME-109: Update CaseEventToFields tab to include NullifyByDefault as a new column

* CME-109: Update CaseEventToFields tab to include NullifyByDefault as a new column

* CME-109: Fix functional test cases

* CME-109: Fix functional test cases

* CME-109: Fix functional test cases

* CME-109: Update test definitions version

* CME-109: Update test definitions version

* CME-109: Update test definitions version

* CME-109: Update test definitions version

* CME-109: Fix functional test cases

* CME-109: Change data store host

* CME-109: Change data store host

* CME-109: Change data store host

* CME-109: update test definitions version

* CME-109: update test definitions version

* CME-109: fix test failures

* CME-109: fix test failures

* CME-109: fix test failures

---------

Co-authored-by: Ila Patel <[email protected]>
  • Loading branch information
kiran-yenigala-hmcts and patelila authored Nov 26, 2024
1 parent 99d2147 commit 843130d
Show file tree
Hide file tree
Showing 26 changed files with 1,248 additions and 66 deletions.
2 changes: 1 addition & 1 deletion aat/src/aat/resources/features/F-079/S-508.td.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"live_from": "2017-01-01T00:00:00.000+0000",
"live_until": null
},
"name": "FT-DateTime Fomratting",
"name": "FT-DateTime Formatting",
"jurisdiction": {
"id": "BEFTA_MASTER",
"name": "BEFTA Master",
Expand Down
64 changes: 33 additions & 31 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 @@ -58,6 +58,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": true,
"case_fields_complex": []
},
{
Expand All @@ -73,6 +74,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": []
}
],
Expand Down Expand Up @@ -133,6 +135,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": []
},
{
Expand All @@ -148,6 +151,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": []
}
],
Expand Down Expand Up @@ -234,37 +238,35 @@
"__elementId__": "case_type_id"
},
{
"case_type_id": "FT_CaseAccessCategories",
"disabled": false,
"read_only": false,
"authorisations": null,
"access_profiles": "caseworker-befta_master",
"live_from": "[[ANYTHING_PRESENT]]",
"live_to": null,
"role_name": "idam:caseworker-befta_master",
"case_access_categories": "Civil/Standard,Criminal/Serious"
},
{
"case_type_id": "FT_CaseAccessCategories",
"disabled": false,
"read_only": false,
"authorisations": "auth1",
"access_profiles": "caseworker-befta_master",
"live_from": "[[ANYTHING_PRESENT]]",
"live_to": null,
"role_name": "Role1",
"case_access_categories": "Civil/Standard,Criminal/Serious"
},
{
"case_type_id": "FT_CaseAccessCategories",
"disabled": false,
"read_only": true,
"authorisations": "auth1",
"access_profiles": "caseworker-befta_master",
"live_from": "[[ANYTHING_PRESENT]]",
"live_to": null,
"role_name": "Role1",
"case_access_categories": "TestValue"
"case_type_id" : "FT_CaseAccessCategories",
"disabled" : false,
"read_only" : true,
"authorisations" : "auth1",
"access_profiles" : "caseworker-befta_master",
"live_from" : "2017-01-01T00:00:00.000+00:00",
"live_to" : null,
"role_name" : "Role1",
"case_access_categories" : "TestValue"
}, {
"case_type_id" : "FT_CaseAccessCategories",
"disabled" : false,
"read_only" : false,
"authorisations" : "auth1",
"access_profiles" : "caseworker-befta_master",
"live_from" : "2017-01-01T00:00:00.000+00:00",
"live_to" : null,
"role_name" : "Role1",
"case_access_categories" : "Civil/Standard,Criminal/Serious"
}, {
"case_type_id" : "FT_CaseAccessCategories",
"disabled" : false,
"read_only" : false,
"authorisations" : null,
"access_profiles" : "caseworker-befta_master",
"live_from" : "2017-01-01T00:00:00.000+00:00",
"live_to" : null,
"role_name" : "idam:caseworker-befta_master",
"case_access_categories" : "Civil/Standard,Criminal/Serious"
}
],
"searchCriterias": [],
Expand Down
6 changes: 6 additions & 0 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 @@ -59,6 +59,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": [
{
"reference": "OrganisationName",
Expand Down Expand Up @@ -97,6 +98,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": [
{
"reference": "OrgPolicyReference",
Expand Down Expand Up @@ -157,6 +159,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": [
{
"reference": "NotesReason",
Expand Down Expand Up @@ -326,6 +329,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": [
{
"reference": "OrganisationName",
Expand Down Expand Up @@ -364,6 +368,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": [
{
"reference": "OrgPolicyReference",
Expand Down Expand Up @@ -424,6 +429,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": [
{
"reference": "NotesReason",
Expand Down
18 changes: 12 additions & 6 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 @@ -56,7 +56,8 @@
"publish" : false,
"publish_as" : null,
"default_value" : null,
"case_fields_complex" : [
"nullify_by_default": false,
"case_fields_complex" : [
{
"__ordering__": "UNORDERED",
"__elementId__": "reference"
Expand Down Expand Up @@ -95,7 +96,8 @@
"publish" : false,
"publish_as" : null,
"default_value" : null,
"case_fields_complex" : [
"nullify_by_default": false,
"case_fields_complex" : [
{
"__ordering__": "UNORDERED",
"__elementId__": "reference"
Expand Down Expand Up @@ -154,7 +156,8 @@
"publish" : false,
"publish_as" : null,
"default_value" : null,
"case_fields_complex" : [
"nullify_by_default": false,
"case_fields_complex" : [
{
"__ordering__": "UNORDERED",
"__elementId__": "reference"
Expand Down Expand Up @@ -311,7 +314,8 @@
"publish" : false,
"publish_as" : null,
"default_value" : null,
"case_fields_complex" : [
"nullify_by_default": false,
"case_fields_complex" : [
{
"__ordering__": "UNORDERED",
"__elementId__": "reference"
Expand Down Expand Up @@ -350,7 +354,8 @@
"publish" : false,
"publish_as" : null,
"default_value" : null,
"case_fields_complex" : [
"nullify_by_default": false,
"case_fields_complex" : [
{
"__ordering__": "UNORDERED",
"__elementId__": "reference"
Expand Down Expand Up @@ -409,7 +414,8 @@
"publish" : false,
"publish_as" : null,
"default_value" : null,
"case_fields_complex" : [
"nullify_by_default": false,
"case_fields_complex" : [
{
"__ordering__": "UNORDERED",
"__elementId__": "reference"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"publish": "[[ANYTHING_PRESENT]]",
"publish_as": null,
"default_value": null,
"nullify_by_default": true,
"case_fields_complex": "[[ANYTHING_PRESENT]]"
},
{
Expand All @@ -68,6 +69,7 @@
"publish": false,
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": []
}
],
Expand Down Expand Up @@ -128,6 +130,7 @@
"publish": "[[ANYTHING_PRESENT]]",
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": []
},
{
Expand All @@ -143,6 +146,7 @@
"publish": "[[ANYTHING_PRESENT]]",
"publish_as": null,
"default_value": null,
"nullify_by_default": false,
"case_fields_complex": "[[ANYTHING_PRESENT]]"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
{
"caseTypeId": "CaseAccessGroups_Casetype",
"organisationalRoleName": "Role1",
"groupRoleName": "[[ANY_NULLABLE]]",
"caseGroupIdTemplate": "[[ANY_NULLABLE]]",
"groupRoleName": "Role1",
"caseGroupIdTemplate": "BEFTA_JURISDICTION_1:$ORGID$",
"groupAccessEnabled": true
},
{
"caseTypeId": "CaseAccessGroups_Casetype",
"organisationalRoleName": "Role1",
"groupRoleName": "Role1",
"caseGroupIdTemplate": "BEFTA_JURISDICTION_1:$ORGID$",
"groupRoleName": "[[ANY_NULLABLE]]",
"caseGroupIdTemplate": "[[ANY_NULLABLE]]",
"groupAccessEnabled": true
}
]
Expand All @@ -77,15 +77,15 @@
{
"caseTypeId": "CaseAccessGroups_Casetype",
"organisationalRoleName": "Role1",
"groupRoleName": "[[ANY_NULLABLE]]",
"caseGroupIdTemplate": "[[ANY_NULLABLE]]",
"groupRoleName": "Role1",
"caseGroupIdTemplate": "BEFTA_JURISDICTION_1:$ORGID$",
"groupAccessEnabled": true
},
{
"caseTypeId": "CaseAccessGroups_Casetype",
"organisationalRoleName": "Role1",
"groupRoleName": "Role1",
"caseGroupIdTemplate": "BEFTA_JURISDICTION_1:$ORGID$",
"groupRoleName": "[[ANY_NULLABLE]]",
"caseGroupIdTemplate": "[[ANY_NULLABLE]]",
"groupAccessEnabled": true
}
]
Expand Down Expand Up @@ -117,15 +117,15 @@
{
"caseTypeId": "FT_CaseAccessGroups",
"organisationalRoleName": "Role1",
"groupRoleName": "[[ANY_NULLABLE]]",
"caseGroupIdTemplate": "[[ANY_NULLABLE]]",
"groupRoleName": "Role1",
"caseGroupIdTemplate": "BEFTA_MASTER:$ORGID$",
"groupAccessEnabled": true
},
{
"caseTypeId": "FT_CaseAccessGroups",
"organisationalRoleName": "Role1",
"groupRoleName": "Role1",
"caseGroupIdTemplate": "BEFTA_MASTER:$ORGID$",
"groupRoleName": "[[ANY_NULLABLE]]",
"caseGroupIdTemplate": "[[ANY_NULLABLE]]",
"groupAccessEnabled": true
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@
},{
"caseTypeId" : "FT_CaseAccessGroups",
"organisationalRoleName" : "Role1",
"groupRoleName" : "[[ANY_NULLABLE]]",
"caseGroupIdTemplate" : "[[ANY_NULLABLE]]",
"groupRoleName" : "Role1",
"caseGroupIdTemplate" : "BEFTA_MASTER:$ORGID$",
"groupAccessEnabled" : true
},{
},
{
"caseTypeId" : "FT_CaseAccessGroups",
"organisationalRoleName" : "Role1",
"groupRoleName" : "Role1",
"caseGroupIdTemplate" : "BEFTA_MASTER:$ORGID$",
"groupRoleName" : "[[ANY_NULLABLE]]",
"caseGroupIdTemplate" : "[[ANY_NULLABLE]]",
"groupAccessEnabled" : true
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
@F-112
Feature: F-112: New NullifyByDefault Column

Background:
Given an appropriate test context as detailed in the test data source

@S-112.1
Scenario: Import definition file with new field NullifyByDefault set to Yes
Given a user with [an active profile in CCD and with CCD-import role]
When a request is prepared with appropriate values
And the request [contains a definition file that contains NullifyByDefault new field and NullifyByDefault is set to Yes]
And it is submitted to call the [Import definition file] operation of [CCD Definition Store]
And the response [has the 200 OK code]
Then a positive response is received
And the response has all other details as expected

@S-112.2
Scenario: Import definition file with new field NullifyByDefault set to No
Given a user with [an active profile in CCD and with CCD-import role]
When a request is prepared with appropriate values
And the request [contains a definition file that contains NullifyByDefault new field and NullifyByDefault is set to No]
And the request [contains a definition file that contains DefaultValue field has a value set]
And it is submitted to call the [Import definition file] operation of [CCD Definition Store]
And the response [has the 200 OK code]
Then a positive response is received
And the response has all other details as expected

@S-112.3
Scenario: Return error when DefaultValue has a value and NullifyByDefault is set to Yes
Given a user with [an active profile in CCD and with CCD-import role]
When a request is prepared with appropriate values
And the request [contains a definition file that contains NullifyByDefault new field and NullifyByDefault is set to Yes]
And the request [contains a definition file that contains DefaultValue field has a value set]
And it is submitted to call the [Import definition file] operation of [CCD Definition Store]
And the response [has the 400 Bad Request code]
Then a negative response is received

@S-112.4
Scenario: Return success when DefaultValue has a value and NullifyByDefault is set to No
Given a user with [an active profile in CCD and with CCD-import role]
When a request is prepared with appropriate values
And the request [contains a definition file that contains NullifyByDefault new field and NullifyByDefault is set to No]
And the request [contains a definition file that contains DefaultValue field has a value set]
And it is submitted to call the [Import definition file] operation of [CCD Definition Store]
And the response [has the 200 OK code]
Then a positive response is received
And the response has all other details as expected

@S-112.5
Scenario: Retrieve CaseEventToFields values
Given a user with [an active profile in CCD]
When a request is prepared with appropriate values
And the request [contains a valid jurisdiction id]
And the request [contains a valid caseType id]
And it is submitted to call the [Get Case Type Details] operation of [CCD Definition Store]
Then the response [has the 200 OK code]
And the response [contains case type details]
Loading

0 comments on commit 843130d

Please sign in to comment.