Skip to content

Commit 8f58478

Browse files
added ELI-399 regression tests
tidying the VITA int tests removed 320-12 as invalid
1 parent 8e0f86f commit 8f58478

6 files changed

Lines changed: 31 additions & 163 deletions

File tree

tests/e2e/data/dynamoDB/storyTestData/AUTO_RSV_ELI-320-12.json

Lines changed: 0 additions & 60 deletions
This file was deleted.

tests/e2e/data/dynamoDB/vitaIntegrationTestData/AUTO_RSV_VITA_INT_015.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
"13Q_FLAG": "N",
2323
"CARE_HOME_FLAG": "Y",
2424
"DE_FLAG": "N"
25+
},
26+
{
27+
"NHS_NUMBER": "9657933617",
28+
"ATTRIBUTE_TYPE": "RSV",
29+
"LAST_SUCCESSFUL_DATE": null,
30+
"BOOKED_APPOINTMENT_DATE": null
2531
}
2632
]
2733
}

tests/e2e/data/responses/storyTestResponses/AUTO_RSV_ELI-320-12.json

Lines changed: 0 additions & 78 deletions
This file was deleted.
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
{
2-
"resourceType": "OperationOutcome",
3-
"id": "a4639b8e-4359-4f17-8016-d325846bbc2a",
4-
"meta": {
5-
"lastUpdated": "2025-08-01T08:16:47.379654Z"
6-
},
7-
"issue": [
8-
{
9-
"severity": "error",
10-
"code": "processing",
11-
"details": {
12-
"coding": [
13-
{
14-
"system": "https://fhir.nhs.uk/STU3/ValueSet/Spine-ErrorOrWarningCode-1",
15-
"code": "INTERNAL_SERVER_ERROR",
16-
"display": "An unexpected internal server error occurred."
17-
}
18-
]
19-
},
20-
"diagnostics": "An unexpected error occurred."
21-
}
22-
]
23-
}
1+
{
2+
"resourceType": "OperationOutcome",
3+
"id": "a4639b8e-4359-4f17-8016-d325846bbc2a",
4+
"meta": {
5+
"lastUpdated": "2025-08-01T08:16:47.379654Z"
6+
},
7+
"issue": [
8+
{
9+
"severity": "error",
10+
"code": "processing",
11+
"details": {
12+
"coding": [
13+
{
14+
"system": "https://fhir.nhs.uk/STU3/ValueSet/Spine-ErrorOrWarningCode-1",
15+
"code": "INTERNAL_SERVER_ERROR",
16+
"display": "An unexpected internal server error occurred."
17+
}
18+
]
19+
},
20+
"diagnostics": "An unexpected error occurred."
21+
}
22+
]
23+
}

tests/e2e/tests/test_story_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
id_list = [f"{filename} - {scenario.get('scenario_name', 'No Scenario')}" for filename, scenario in param_list]
1515

1616

17-
@pytest.mark.functionale2eregression
17+
@pytest.mark.storyregressiontests
1818
@pytest.mark.parametrize(("filename", "scenario"), param_list, ids=id_list)
1919
def test_run_story_test_cases(filename, scenario, eligibility_client, get_scenario_params):
2020
nhs_number, config_filenames, request_headers, query_params, expected_response_code = get_scenario_params(scenario, config_path)

tests/e2e/tests/test_vita_integration_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
id_list = [f"{filename} - {scenario.get('scenario_name', 'No Scenario')}" for filename, scenario in param_list]
1515

1616

17-
@pytest.mark.functionale2eregression
17+
@pytest.mark.vitaintegration
1818
@pytest.mark.parametrize(("filename", "scenario"), param_list, ids=id_list)
1919
def test_run_story_test_cases(filename, scenario, eligibility_client, get_scenario_params):
2020
nhs_number, config_filenames, request_headers, query_params, expected_response_code = get_scenario_params(scenario, config_path)

0 commit comments

Comments
 (0)