Skip to content

Commit 8fc6b55

Browse files
added ELI-399, 373 regression tests
tidying the VITA int tests removed 320-12 as invalid removed old code added Sean handover stuff
1 parent b219134 commit 8fc6b55

76 files changed

Lines changed: 4664 additions & 467 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/e2e/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ assets/
4242
# Logs
4343
*.log
4444
/helpers/output/
45+
/.hypothesis/unicode_data/15.1.0/charmap.json.gz
46+
/tests/.hypothesis/unicode_data/15.1.0/charmap.json.gz
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"request": {
3+
"requestTimestamp": "2025-08-11 07:43:12.954767+00:00",
4+
"headers": {
5+
"xRequestId": null,
6+
"xCorrelationId": null,
7+
"nhsdEndUserOrganisationOds": null,
8+
"nhsdApplicationId": null
9+
},
10+
"queryParams": {
11+
"category": null,
12+
"conditions": null,
13+
"includeActions": null
14+
},
15+
"nhsNumber": "9900376001"
16+
},
17+
"response": {
18+
"responseId": "0300f1e8-6004-4229-a972-29220f08b8e9",
19+
"lastUpdated": "2025-08-11 07:43:13.267973+00:00",
20+
"condition": [
21+
{
22+
"campaignId": "AUTO_RSV_ELI-376-01-Campaign-ID",
23+
"campaignVersion": 1,
24+
"iterationId": "AUTO_RSV_ELI-376-01-Iteration-ID",
25+
"iterationVersion": 1,
26+
"conditionName": "RSV",
27+
"status": "actionable",
28+
"statusText": "You should have the RSV vaccine",
29+
"eligibilityCohorts": [
30+
{
31+
"cohortCode": "rsv_eli_376_cohort_1",
32+
"cohortStatus": "actionable"
33+
},
34+
{
35+
"cohortCode": "rsv_eli_376_cohort_2",
36+
"cohortStatus": "actionable"
37+
},
38+
{
39+
"cohortCode": "rsv_eli_376_cohort_3",
40+
"cohortStatus": "actionable"
41+
},
42+
{
43+
"cohortCode": "rsv_eli_376_cohort_4",
44+
"cohortStatus": "actionable"
45+
}
46+
],
47+
"eligibilityCohortGroups": [
48+
{
49+
"cohortCode": "rsv_eli_376_cohort_group",
50+
"cohortText": "are a member of eli_376_cohort_group_0",
51+
"cohortStatus": "actionable"
52+
},
53+
{
54+
"cohortCode": "rsv_eli_376_cohort_group",
55+
"cohortText": "are a member of eli_376_cohort_group_10",
56+
"cohortStatus": "actionable"
57+
},
58+
{
59+
"cohortCode": "rsv_eli_376_cohort_group",
60+
"cohortText": "are a member of eli_376_cohort_group_20",
61+
"cohortStatus": "actionable"
62+
},
63+
{
64+
"cohortCode": "rsv_eli_376_cohort_group_other",
65+
"cohortText": "are a member of eli_376_cohort_group_other",
66+
"cohortStatus": "actionable"
67+
}
68+
],
69+
"filterRules": null,
70+
"suitabilityRules": null,
71+
"actionRule": null,
72+
"actions": [
73+
{
74+
"internalActionCode": "TEST_ACTION",
75+
"actionType": "ButtonWithAuthLink",
76+
"actionCode": "TestAction",
77+
"actionDescription": "TestAction Description",
78+
"actionUrl": "http://www.nhs.uk/book-rsv",
79+
"actionUrlLabel": "Continue to booking"
80+
}
81+
]
82+
}
83+
]
84+
}
85+
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"request": {
3+
"requestTimestamp": "2025-08-11 07:43:11.974643+00:00",
4+
"headers": {
5+
"xRequestId": null,
6+
"xCorrelationId": null,
7+
"nhsdEndUserOrganisationOds": null,
8+
"nhsdApplicationId": null
9+
},
10+
"queryParams": {
11+
"category": null,
12+
"conditions": null,
13+
"includeActions": null
14+
},
15+
"nhsNumber": "9900376002"
16+
},
17+
"response": {
18+
"responseId": "f09917f7-9f73-472a-b0f3-6cc0c5c86858",
19+
"lastUpdated": "2025-08-11 07:43:12.287543+00:00",
20+
"condition": [
21+
{
22+
"campaignId": "AUTO_RSV_ELI-376-02-Campaign-ID",
23+
"campaignVersion": 1,
24+
"iterationId": "AUTO_RSV_ELI-376-02-Iteration-ID",
25+
"iterationVersion": 1,
26+
"conditionName": "RSV",
27+
"status": "not_eligible",
28+
"statusText": "We do not believe you can have it",
29+
"eligibilityCohorts": [
30+
{
31+
"cohortCode": "rsv_eli_376_cohort_1",
32+
"cohortStatus": "not_eligible"
33+
},
34+
{
35+
"cohortCode": "rsv_eli_376_cohort_2",
36+
"cohortStatus": "not_eligible"
37+
},
38+
{
39+
"cohortCode": "rsv_eli_376_cohort_3",
40+
"cohortStatus": "not_eligible"
41+
},
42+
{
43+
"cohortCode": "rsv_eli_376_cohort_4",
44+
"cohortStatus": "not_eligible"
45+
}
46+
],
47+
"eligibilityCohortGroups": [
48+
{
49+
"cohortCode": "rsv_eli_376_cohort_group",
50+
"cohortText": "are not a member of eli_376_cohort_group_0",
51+
"cohortStatus": "not_eligible"
52+
},
53+
{
54+
"cohortCode": "rsv_eli_376_cohort_group",
55+
"cohortText": "are not a member of eli_376_cohort_group_10",
56+
"cohortStatus": "not_eligible"
57+
},
58+
{
59+
"cohortCode": "rsv_eli_376_cohort_group",
60+
"cohortText": "are not a member of eli_376_cohort_group_20",
61+
"cohortStatus": "not_eligible"
62+
},
63+
{
64+
"cohortCode": "rsv_eli_376_cohort_group_other",
65+
"cohortText": "are not a member of eli_376_cohort_group_other",
66+
"cohortStatus": "not_eligible"
67+
}
68+
],
69+
"filterRules": [
70+
{
71+
"rulePriority": "100",
72+
"ruleName": "NotEligible Reason 1"
73+
}
74+
],
75+
"suitabilityRules": null,
76+
"actionRule": null,
77+
"actions": [
78+
{
79+
"internalActionCode": "TEST_NOT_ELI",
80+
"actionType": "",
81+
"actionCode": "TestNotEli",
82+
"actionDescription": "TestNotEli Description",
83+
"actionUrl": null,
84+
"actionUrlLabel": null
85+
}
86+
]
87+
}
88+
]
89+
}
90+
}
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"request": {
3+
"requestTimestamp": "2025-08-11 06:42:52.595081+00:00",
4+
"headers": {
5+
"xRequestId": null,
6+
"xCorrelationId": null,
7+
"nhsdEndUserOrganisationOds": null,
8+
"nhsdApplicationId": null
9+
},
10+
"queryParams": {
11+
"category": null,
12+
"conditions": null,
13+
"includeActions": null
14+
},
15+
"nhsNumber": "9900376003"
16+
},
17+
"response": {
18+
"responseId": "b3032aeb-fafd-48d0-8d32-1459140ea886",
19+
"lastUpdated": "2025-08-11 06:42:52.942561+00:00",
20+
"condition": [
21+
{
22+
"campaignId": "AUTO_RSV_ELI-376-03-Campaign-ID",
23+
"campaignVersion": 1,
24+
"iterationId": "AUTO_RSV_ELI-376-03-Iteration-ID",
25+
"iterationVersion": 1,
26+
"conditionName": "RSV",
27+
"status": "not_actionable",
28+
"statusText": "You should have the RSV vaccine",
29+
"eligibilityCohorts": [
30+
{
31+
"cohortCode": "rsv_eli_376_cohort_1",
32+
"cohortStatus": "not_actionable"
33+
},
34+
{
35+
"cohortCode": "rsv_eli_376_cohort_2",
36+
"cohortStatus": "not_actionable"
37+
},
38+
{
39+
"cohortCode": "rsv_eli_376_cohort_3",
40+
"cohortStatus": "not_actionable"
41+
},
42+
{
43+
"cohortCode": "rsv_eli_376_cohort_4",
44+
"cohortStatus": "not_eligible"
45+
}
46+
],
47+
"eligibilityCohortGroups": [
48+
{
49+
"cohortCode": "rsv_eli_376_cohort_group",
50+
"cohortText": "are a member of eli_376_cohort_group_0",
51+
"cohortStatus": "not_actionable"
52+
},
53+
{
54+
"cohortCode": "rsv_eli_376_cohort_group",
55+
"cohortText": "are a member of eli_376_cohort_group_10",
56+
"cohortStatus": "not_actionable"
57+
},
58+
{
59+
"cohortCode": "rsv_eli_376_cohort_group",
60+
"cohortText": "are a member of eli_376_cohort_group_20",
61+
"cohortStatus": "not_actionable"
62+
},
63+
{
64+
"cohortCode": "rsv_eli_376_cohort_group_other",
65+
"cohortText": "are not a member of eli_376_cohort_group_other",
66+
"cohortStatus": "not_eligible"
67+
}
68+
],
69+
"filterRules": [
70+
{
71+
"rulePriority": "100",
72+
"ruleName": "NotEligible Reason 1"
73+
}
74+
],
75+
"suitabilityRules": [
76+
{
77+
"rulePriority": "200",
78+
"ruleName": "NotActionable Reason 1",
79+
"ruleMessage": "NotActionable Description 1"
80+
}
81+
],
82+
"actionRule": null,
83+
"actions": [
84+
{
85+
"internalActionCode": "BOOK_NBS",
86+
"actionType": "ButtonWithAuthLink",
87+
"actionCode": "BookNBS",
88+
"actionDescription": null,
89+
"actionUrl": "http://www.nhs.uk/book-rsv",
90+
"actionUrlLabel": "Continue to booking"
91+
}
92+
]
93+
}
94+
]
95+
}
96+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"request": {
3+
"requestTimestamp": "2025-08-11 07:13:25.069391+00:00",
4+
"headers": {
5+
"xRequestId": null,
6+
"xCorrelationId": null,
7+
"nhsdEndUserOrganisationOds": null,
8+
"nhsdApplicationId": null
9+
},
10+
"queryParams": {
11+
"category": null,
12+
"conditions": null,
13+
"includeActions": null
14+
},
15+
"nhsNumber": "9900376004"
16+
},
17+
"response": {
18+
"responseId": "f516123d-e985-45a0-bebe-67fe08328db8",
19+
"lastUpdated": "2025-08-11 07:13:25.470782+00:00",
20+
"condition": [
21+
{
22+
"campaignId": "AUTO_RSV_ELI-376-04-Campaign-ID",
23+
"campaignVersion": 1,
24+
"iterationId": "AUTO_RSV_ELI-376-04-Iteration-ID",
25+
"iterationVersion": 1,
26+
"conditionName": "RSV",
27+
"status": "actionable",
28+
"statusText": "You should have the RSV vaccine",
29+
"eligibilityCohorts": [
30+
{
31+
"cohortCode": "rsv_eli_376_cohort_1",
32+
"cohortStatus": "not_eligible"
33+
},
34+
{
35+
"cohortCode": "rsv_eli_376_cohort_2",
36+
"cohortStatus": "actionable"
37+
},
38+
{
39+
"cohortCode": "rsv_eli_376_cohort_3",
40+
"cohortStatus": "actionable"
41+
},
42+
{
43+
"cohortCode": "rsv_eli_376_cohort_4",
44+
"cohortStatus": "not_eligible"
45+
}
46+
],
47+
"eligibilityCohortGroups": [
48+
{
49+
"cohortCode": "rsv_eli_376_cohort_group",
50+
"cohortText": "are not a member of eli_376_cohort_group_0",
51+
"cohortStatus": "not_eligible"
52+
},
53+
{
54+
"cohortCode": "rsv_eli_376_cohort_group",
55+
"cohortText": "are a member of eli_376_cohort_group_10",
56+
"cohortStatus": "actionable"
57+
},
58+
{
59+
"cohortCode": "rsv_eli_376_cohort_group",
60+
"cohortText": "are a member of eli_376_cohort_group_20",
61+
"cohortStatus": "actionable"
62+
},
63+
{
64+
"cohortCode": "rsv_eli_376_cohort_group_other",
65+
"cohortText": "are not a member of eli_376_cohort_group_other",
66+
"cohortStatus": "not_eligible"
67+
}
68+
],
69+
"filterRules": [
70+
{
71+
"rulePriority": "100",
72+
"ruleName": "NotEligible Reason 1"
73+
},
74+
{
75+
"rulePriority": "110",
76+
"ruleName": "NotEligible Reason 2"
77+
}
78+
],
79+
"suitabilityRules": null,
80+
"actionRule": null,
81+
"actions": []
82+
}
83+
]
84+
}
85+
}

0 commit comments

Comments
 (0)