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

Cme 110 2 #2534

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ dependencies {
implementation 'org.jooq:jool-java-8:0.9.14'
implementation 'com.github.hmcts:ccd-case-document-am-client:1.7.1'

testImplementation group: 'com.github.hmcts', name: 'ccd-test-definitions', version: '7.24.2'
testImplementation group: 'com.github.hmcts', name: 'ccd-test-definitions', version: '7.24.2-prerelease-CME-110-9'
testImplementation group: 'com.github.hmcts', name: 'befta-fw', version: '9.2.0'

contractTestImplementation "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"_guid_": "F-1024_StartEventForCaseworker",
"_extends_": "Standard_Token_Creation_Data_For_Case_Creation",

"request": {
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType",
"etid": "createCaseTTLNullifyByDefault"
}
},
"expectedResponse": {
"body": {
"case_details" : {
"jurisdiction" : "BEFTA_MASTER",
"case_type_id" : "FT_MasterCaseType"
},
"event_id": "createCaseTTLNullifyByDefault"
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"_guid_": "F-1024_StartEventForCaseworker_NotNull",

"productName": "CCD Data Store",
"operationName": "Start event creation as Case worker",

"method": "GET",
"uri": "/caseworkers/{uid}/jurisdictions/{jid}/case-types/{ctid}/event-triggers/{etid}/token",

"specs": [
"to create a token for case creation"
],

"users": {
"invokingUser": {
"_extends_": "BeftaMasterCaseworker"
}
},
"request": {
"_extends_": "Common_Request",
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType",
"etid": "createCaseTTLNBDNotNull"
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"_guid_": "F-1024_StartEvent_For_Caseworker_RequestTTL_NotNull",

"productName": "CCD Data Store",
"operationName": "Start event creation as Case worker",

"method": "GET",
"uri": "/caseworkers/{uid}/jurisdictions/{jid}/case-types/{ctid}/event-triggers/{etid}/token",

"specs": [
"to create a case",
"to create a token for case creation"
],

"request": {
"_extends_": "Common_Request",
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType",
"etid": "createCaseTTLNBDNotNull"
},
"body": {
"data": {
"TTL" : {
"SystemTTL" : null,
"OverrideTTL" : null,
"Suspended" : "No"
}
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"_guid_": "F-1024_StartEventForCitizen",
"_extends_": "Citizen_Token_Creation_Data_For_Case_Creation",

"request": {
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType",
"etid": "createCaseTTLNullifyByDefault"
}
},
"expectedResponse": {
"body": {
"case_details" : {
"jurisdiction" : "BEFTA_MASTER",
"case_type_id" : "FT_MasterCaseType"
},
"event_id": "createCaseTTLNullifyByDefault"
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"_guid_": "F-1024_StartEventForCitizen_NotNull",

"productName": "CCD Data Store",
"operationName": "Start event creation as Citizen",

"method": "GET",
"uri": "/citizens/{uid}/jurisdictions/{jid}/case-types/{ctid}/event-triggers/{etid}/token",

"specs": [
"to create a token for case creation"
],

"users": {
"invokingUser": {
"_extends_": "BeftaCitizen2"
}
},

"request": {
"_extends_": "Common_Request",
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType",
"etid": "createCaseTTLNBDNotNull"
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"_guid_": "F-1024_StartEvent_For_Citizen_RequestTTL_NotNull",

"productName": "CCD Data Store",
"operationName": "Start event creation as Citizen",

"method": "GET",
"uri": "/citizens/{uid}/jurisdictions/{jid}/case-types/{ctid}/event-triggers/{etid}/token",

"specs": [
"to create a case",
"to create a token for case creation as a citizen"
],

"request": {
"headers": {
"_extends_": "Common_Request_Headers"
},
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType",
"etid": "createCaseTTLNBDNotNull"
},
"body": {
"data": {
"TTL" : {
"SystemTTL" : null,
"OverrideTTL" : null,
"Suspended" : "No"
}
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"_guid_": "F-1024_StartCaseTrigger",

"productName": "CCD Data Store",
"operationName": "Retrieve a trigger for case by ID",

"method": "GET",
"uri": "cases/{caseId}/event-triggers/{triggerId}",

"users": {
"invokingUser": {
"_extends_": "BeftaCitizen2"
}
},

"request": {
"_extends_": "Common_Request",
"headers": {
"experimental": "true"
},
"pathVariables": {
"caseId": "${[scenarioContext][childContexts][F-1024_StartCaseTrigger_Case_Creation][testData][actualResponse][body][id]}",
"triggerId": "updateCaseTTLNullifyByDefault"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"_guid_": "F-1024_StartCaseTrigger_Case_Creation",
"_extends_": "F-1024_StartCaseTrigger_Case_Creation_Base",

"request": {
"body": {
"data": {
"_extends_": "TTL_Case_Data_NBD"
},
"data_classification": {
"_extends_": "TTL_Classifications"
}
}
},

"expectedResponse": {
"body": {
"case_data": {
"_extends_": "TTL_Case_Data_NBD_Empty"
},
"data_classification": {
"_extends_": "TTL_Classifications_NBD"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"_guid_": "F-1024_StartCaseTrigger_Case_Creation_Base",
"_extends_": "Befta_Jurisdiction2_Citizen_Case_Creation_Base_Data",

"specs": [
"to create a case"
],

"prerequisites" : [ {
"Token_Creation": "F-1024_StartCaseTrigger_Token_Creation"
}
],

"users": {
"invokingUser": {
"_extends_": "BeftaCitizen2"
}
},

"request": {
"pathVariables": {
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType"
},
"body": {
"event": {
"id": "createCaseTTLNullifyByDefault"
},
"event_token": "${[scenarioContext][childContexts][Token_Creation][testData][actualResponse][body][token]}"
}
},

"expectedResponse": {
"body": {
"id": "[[ANYTHING_PRESENT]]",
"jurisdiction": "BEFTA_MASTER",
"state": "CaseCreated",
"version": 0,
"case_type_id": "FT_MasterCaseType",
"created_date": "[[ANYTHING_PRESENT]]",
"last_modified": "[[ANYTHING_PRESENT]]",
"last_state_modified_date": "[[ANYTHING_PRESENT]]",
"security_classification": "PUBLIC",
"case_data": { },
"data_classification": {},
"supplementary_data": null,
"after_submit_callback_response": null,
"callback_response_status_code": null,
"callback_response_status": null,
"delete_draft_response_status_code": null,
"delete_draft_response_status": null
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"_guid_": "F-1024_StartCaseTrigger_Token_Creation",
"_extends_": "Citizen_Token_Creation_Data_For_Case_Creation",
"specs": [
"to create a token for case creation as a citizen",
"As a prerequisite"
],

"users": {
"invokingUser": {
"_extends_": "BeftaCitizen2"
}
},

"request": {
"pathVariables": {
"uid": "[[DEFAULT_AUTO_VALUE]]",
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType",
"etid": "createCaseTTLNullifyByDefault"
}
},
"expectedResponse": {
"body": {
"case_details" : {
"jurisdiction" : "BEFTA_MASTER",
"case_type_id" : "FT_MasterCaseType",
"case_data" : {
"TTL" : { }
},
"data_classification" : {
"TTL" : {
"classification" : "PUBLIC",
"value" : { }
}
}
},
"event_id": "createCaseTTLNullifyByDefault"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"_guid_": "F-1024_StartCaseTrigger_Case_Creation_Base_NotNull",
"_extends_": "Befta_Jurisdiction2_Citizen_Case_Creation_Base_Data",

"specs": [
"to create a case"
],

"prerequisites" : [ {
"Token_Creation": "F-1024_StartCaseTrigger_Token_Creation_NotNull"
}
],

"users": {
"invokingUser": {
"_extends_": "BeftaCitizen2"
}
},

"request": {
"pathVariables": {
"jid": "BEFTA_MASTER",
"ctid": "FT_MasterCaseType"
},
"body": {
"data_classification": { },
"event": {
"id": "createCaseTTLSECNotNull"
},
"event_token": "${[scenarioContext][childContexts][Token_Creation][testData][actualResponse][body][token]}"
}
},

"expectedResponse": {
"body": {
"id": "[[ANYTHING_PRESENT]]",
"jurisdiction": "BEFTA_MASTER",
"state": "CaseCreated",
"version": 0,
"case_type_id": "FT_MasterCaseType",
"created_date": "[[ANYTHING_PRESENT]]",
"last_modified": "[[ANYTHING_PRESENT]]",
"last_state_modified_date": "[[ANYTHING_PRESENT]]",
"security_classification": "PUBLIC",
"case_data": { },
"data_classification": {},
"supplementary_data": null,
"after_submit_callback_response": null,
"callback_response_status_code": null,
"callback_response_status": null,
"delete_draft_response_status_code": null,
"delete_draft_response_status": null
}
}
}

Loading