Skip to content

Commit 16bb879

Browse files
updated configs for 311 for. added ability to assert the response code in the tests
1 parent 12fc10f commit 16bb879

40 files changed

Lines changed: 880 additions & 191 deletions

poetry.lock

Lines changed: 647 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ python-json-logger = "^3.3.0"
3535
fhir-resources = "^8.0.0"
3636
python-dateutil = "^2.9.0"
3737
pyhamcrest = "^2.1.0"
38+
schemathesis = "^4.0.21"
39+
prance = "^25.4.8.0"
40+
jsonschema = "^4.25.0"
3841

3942
[tool.poetry.group.dev.dependencies]
4043
ruff = "^0.11.13"
@@ -62,6 +65,7 @@ jsonschema = "^4.24.0"
6265
behave = "^1.2.6"
6366
boto3 = "^1.38.42"
6467
python-dotenv = "^1.1.1"
68+
openapi-spec-validator = "^0.7.2"
6569

6670
[tool.poetry-plugin-lambda-build]
6771
docker-image = "public.ecr.aws/sam/build-python3.13:1.139-x86_64" # See https://gallery.ecr.aws/search?searchTerm=%22python%22&architecture=x86-64&popularRegistries=amazon&verified=verified&operatingSystems=Linux

tests/e2e/data/configs/regressionTestConfigs/AUTO_RSV_REG_001.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"CampaignConfig": {
33
"ID": "Automation RSV - Regression Test Config - Camp ID",
4-
"Version": "1",
4+
"Version": 1,
55
"Name": "Automation RSV - Regression Test Config",
66
"Type": "V",
77
"Target": "RSV",
8-
"Manager": "person1@nhs.net",
9-
"Approver": "person1@nhs.net",
10-
"Reviewer": "person1@nhs.net",
8+
"Manager": ["person1@nhs.net"],
9+
"Approver": ["person1@nhs.net"],
10+
"Reviewer": ["person1@nhs.net"],
1111
"IterationFrequency": "X",
1212
"IterationType": "O",
1313
"IterationTime": "07:00:00",
@@ -20,7 +20,7 @@
2020
{
2121
"ID": "Automation RSV - Regression Test Config - It ID",
2222
"DefaultCommsRouting": "DEFAULT_ACTION",
23-
"Version": "1",
23+
"Version": 1,
2424
"Name": "Automation RSV - Regression Test Config Iteration",
2525
"IterationDate": "20250601",
2626
"IterationNumber": 1,

tests/e2e/data/configs/smokeTestConfigs/.temp/AUTO_RSV_SB_001.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"CampaignConfig": {
33
"ID": "<<RANDOM_GUID>>",
4-
"Version": "1",
4+
"Version": 1,
55
"Name": "Automation RSV - Smoke Test Config",
66
"Type": "V",
77
"Target": "RSV",
8-
"Manager": "person1@nhs.net",
9-
"Approver": "person1@nhs.net",
10-
"Reviewer": "person1@nhs.net",
8+
"Manager": ["person1@nhs.net"],
9+
"Approver": ["person1@nhs.net"],
10+
"Reviewer": ["person1@nhs.net"],
1111
"IterationFrequency": "X",
1212
"IterationType": "O",
1313
"IterationTime": "07:00:00",
@@ -20,7 +20,7 @@
2020
{
2121
"ID": ",<<RANDOM_GUID>>",
2222
"DefaultCommsRouting": "BOOK_LOCAL",
23-
"Version": "1",
23+
"Version": 1,
2424
"Name": "Automation RSV - Smoke Test Config Iteration",
2525
"IterationDate": "20250601",
2626
"IterationNumber": 1,

tests/e2e/data/configs/smokeTestConfigs/.temp/AUTO_RSV_SB_008.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"CampaignConfig": {
33
"ID": "<<RANDOM_GUID>>",
4-
"Version": "1",
4+
"Version": 1,
55
"Name": "Automation RSV - Smoke Test Config",
66
"Type": "V",
77
"Target": "RSV",
8-
"Manager": "person1@nhs.net",
9-
"Approver": "person1@nhs.net",
10-
"Reviewer": "person1@nhs.net",
8+
"Manager": ["person1@nhs.net"],
9+
"Approver": ["person1@nhs.net"],
10+
"Reviewer": ["person1@nhs.net"],
1111
"IterationFrequency": "X",
1212
"IterationType": "O",
1313
"IterationTime": "07:00:00",
@@ -20,7 +20,7 @@
2020
{
2121
"ID": ",<<RANDOM_GUID>>",
2222
"DefaultCommsRouting": "BOOK_LOCAL",
23-
"Version": "1",
23+
"Version": 1,
2424
"Name": "Automation RSV - Smoke Test Config Iteration",
2525
"IterationDate": "20250601",
2626
"IterationNumber": 1,

tests/e2e/data/configs/smokeTestConfigs/AUTO_RSV_SB_001.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"CampaignConfig": {
33
"ID": "<<RANDOM_GUID>>",
4-
"Version": "1",
4+
"Version": 1,
55
"Name": "Automation RSV - Smoke Test Config",
66
"Type": "V",
77
"Target": "RSV",
8-
"Manager": "person1@nhs.net",
9-
"Approver": "person1@nhs.net",
10-
"Reviewer": "person1@nhs.net",
8+
"Manager": ["person1@nhs.net"],
9+
"Approver": ["person1@nhs.net"],
10+
"Reviewer": ["person1@nhs.net"],
1111
"IterationFrequency": "X",
1212
"IterationType": "O",
1313
"IterationTime": "07:00:00",
@@ -20,7 +20,7 @@
2020
{
2121
"ID": ",<<RANDOM_GUID>>",
2222
"DefaultCommsRouting": "BOOK_LOCAL",
23-
"Version": "1",
23+
"Version": 1,
2424
"Name": "Automation RSV - Smoke Test Config Iteration",
2525
"IterationDate": "20250601",
2626
"IterationNumber": 1,

tests/e2e/data/configs/smokeTestConfigs/AUTO_RSV_SB_008.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"CampaignConfig": {
33
"ID": "<<RANDOM_GUID>>",
4-
"Version": "1",
4+
"Version": 1,
55
"Name": "Automation RSV - Smoke Test Config",
66
"Type": "V",
77
"Target": "RSV",
8-
"Manager": "person1@nhs.net",
9-
"Approver": "person1@nhs.net",
10-
"Reviewer": "person1@nhs.net",
8+
"Manager": ["person1@nhs.net"],
9+
"Approver": ["person1@nhs.net"],
10+
"Reviewer": ["person1@nhs.net"],
1111
"IterationFrequency": "X",
1212
"IterationType": "O",
1313
"IterationTime": "07:00:00",
@@ -20,7 +20,7 @@
2020
{
2121
"ID": ",<<RANDOM_GUID>>",
2222
"DefaultCommsRouting": "BOOK_LOCAL",
23-
"Version": "1",
23+
"Version": 1,
2424
"Name": "Automation RSV - Smoke Test Config Iteration",
2525
"IterationDate": "20250601",
2626
"IterationNumber": 1,

tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-155.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"CampaignConfig": {
33
"ID": "<<RANDOM_GUID>>",
4-
"Version": "1",
4+
"Version": 1,
55
"Name": "ELI-155 - cohort_label is not supported in R rules",
66
"Type": "V",
77
"Target": "RSV",
8-
"Manager": "person1@nhs.net",
9-
"Approver": "person1@nhs.net",
10-
"Reviewer": "person1@nhs.net",
8+
"Manager": ["person1@nhs.net"],
9+
"Approver": ["person1@nhs.net"],
10+
"Reviewer": ["person1@nhs.net"],
1111
"IterationFrequency": "X",
1212
"IterationType": "O",
1313
"IterationTime": "07:00:00",
@@ -20,7 +20,7 @@
2020
{
2121
"ID": ",<<RANDOM_GUID>>",
2222
"DefaultCommsRouting": "CONTACT_GP",
23-
"Version": "1",
23+
"Version": 1,
2424
"Name": "ELI-155 - cohort_label is not supported in R rules",
2525
"IterationDate": "20250601",
2626
"IterationNumber": 1,

tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-216.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"CampaignConfig": {
33
"ID": "<<RANDOM_GUID>>",
4-
"Version": "1",
4+
"Version": 1,
55
"Name": "ELI-216 - NHS Number check (NHS login) - 9000000006",
66
"Type": "V",
77
"Target": "RSV",
8-
"Manager": "person1@nhs.net",
9-
"Approver": "person1@nhs.net",
10-
"Reviewer": "person1@nhs.net",
8+
"Manager": ["person1@nhs.net"],
9+
"Approver": ["person1@nhs.net"],
10+
"Reviewer": ["person1@nhs.net"],
1111
"IterationFrequency": "X",
1212
"IterationType": "O",
1313
"IterationTime": "07:00:00",
@@ -20,7 +20,7 @@
2020
{
2121
"ID": ",<<RANDOM_GUID>>",
2222
"DefaultCommsRouting": "DEFAULT_ACTION",
23-
"Version": "1",
23+
"Version": 1,
2424
"Name": "ELI-155 - Support Actions R Rules",
2525
"IterationDate": "20250601",
2626
"IterationNumber": 1,

tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-219-1.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"CampaignConfig": {
33
"ID": "<<RANDOM_GUID>>",
4-
"Version": "1",
4+
"Version": 1,
55
"Name": "ELI-219 - Support Actions R Rules - 9000000002",
66
"Type": "V",
77
"Target": "RSV",
8-
"Manager": "person1@nhs.net",
9-
"Approver": "person1@nhs.net",
10-
"Reviewer": "person1@nhs.net",
8+
"Manager": ["person1@nhs.net"],
9+
"Approver": ["person1@nhs.net"],
10+
"Reviewer": ["person1@nhs.net"],
1111
"IterationFrequency": "X",
1212
"IterationType": "O",
1313
"IterationTime": "07:00:00",
@@ -20,7 +20,7 @@
2020
{
2121
"ID": ",<<RANDOM_GUID>>",
2222
"DefaultCommsRouting": "DEFAULT_ACTION",
23-
"Version": "1",
23+
"Version": 1,
2424
"Name": "ELI-155 - Support Actions R Rules",
2525
"IterationDate": "20250601",
2626
"IterationNumber": 1,

0 commit comments

Comments
 (0)