Skip to content

Commit 3d56b43

Browse files
tests for ELI-405 (#326)
* tests for ELI-405 * reverted poetry.lock to older version
1 parent 86e0e9c commit 3d56b43

22 files changed

+481
-464
lines changed

tests/e2e/data/configs/inProgressTestConfigs/ELI-376-405/AUTO_RSV_ELI-376-02.json

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

tests/e2e/data/configs/inProgressTestConfigs/ELI-376-405/AUTO_RSV_ELI-376-01.json renamed to tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-405-01.json

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"CampaignConfig": {
3-
"ID": "AUTO_RSV_ELI-376-01-Campaign-ID",
3+
"ID": "AUTO_RSV_ELI-405-01-Campaign-ID",
44
"Version": 1,
5-
"Name": "ELI-376-01-Iteration-Config-Name",
5+
"Name": "ELI-405-01-Iteration-Config-Name",
66
"Type": "V",
77
"Target": "RSV",
88
"Manager": [
@@ -24,12 +24,12 @@
2424
"DefaultCommsRouting": "BOOK_NBS",
2525
"Iterations": [
2626
{
27-
"ID": "AUTO_RSV_ELI-376-01-Iteration-ID",
27+
"ID": "AUTO_RSV_ELI-405-01-Iteration-ID",
2828
"DefaultCommsRouting": "TEST_ACTION",
2929
"DefaultNotActionableRouting": "TEST_NOT_ACTION",
3030
"DefaultNotEligibleRouting": "TEST_NOT_ELI",
3131
"Version": 1,
32-
"Name": "ELI-376-01-Iteration-Config-Name",
32+
"Name": "ELI-405-01-Iteration-Config-Name",
3333
"IterationDate": "20240808",
3434
"IterationNumber": 1,
3535
"CommsType": "I",
@@ -38,31 +38,31 @@
3838
"Type": "O",
3939
"IterationCohorts": [
4040
{
41-
"CohortLabel": "rsv_eli_376_cohort_1",
42-
"CohortGroup": "rsv_eli_376_cohort_group",
43-
"PositiveDescription": "are a member of eli_376_cohort_group_0",
44-
"NegativeDescription": "are not a member of eli_376_cohort_group_0",
41+
"CohortLabel": "rsv_eli_405_cohort_1",
42+
"CohortGroup": "rsv_eli_405_cohort_group",
43+
"PositiveDescription": "are a member of eli_405_cohort_group_0",
44+
"NegativeDescription": "are not a member of eli_405_cohort_group_0",
4545
"Priority": 0
4646
},
4747
{
48-
"CohortLabel": "rsv_eli_376_cohort_2",
49-
"CohortGroup": "rsv_eli_376_cohort_group",
50-
"PositiveDescription": "are a member of eli_376_cohort_group_10",
51-
"NegativeDescription": "are not a member of eli_376_cohort_group_10",
48+
"CohortLabel": "rsv_eli_405_cohort_2",
49+
"CohortGroup": "rsv_eli_405_cohort_group",
50+
"PositiveDescription": "are a member of eli_405_cohort_group_10",
51+
"NegativeDescription": "are not a member of eli_405_cohort_group_10",
5252
"Priority": 10
5353
},
5454
{
55-
"CohortLabel": "rsv_eli_376_cohort_3",
56-
"CohortGroup": "rsv_eli_376_cohort_group",
57-
"PositiveDescription": "are a member of eli_376_cohort_group_20",
58-
"NegativeDescription": "are not a member of eli_376_cohort_group_20",
55+
"CohortLabel": "rsv_eli_405_cohort_3",
56+
"CohortGroup": "rsv_eli_405_cohort_group",
57+
"PositiveDescription": "are a member of eli_405_cohort_group_20",
58+
"NegativeDescription": "are not a member of eli_405_cohort_group_20",
5959
"Priority": 20
6060
},
6161
{
62-
"CohortLabel": "rsv_eli_376_cohort_4",
63-
"CohortGroup": "rsv_eli_376_cohort_group_other",
64-
"PositiveDescription": "are a member of eli_376_cohort_group_other",
65-
"NegativeDescription": "are not a member of eli_376_cohort_group_other",
62+
"CohortLabel": "rsv_eli_405_cohort_4",
63+
"CohortGroup": "rsv_eli_405_cohort_group_other",
64+
"PositiveDescription": "are a member of eli_405_cohort_group_other",
65+
"NegativeDescription": "are not a member of eli_405_cohort_group_other",
6666
"Priority": 30
6767
}
6868
],
@@ -75,7 +75,7 @@
7575
"Comparator": "-80",
7676
"AttributeLevel": "PERSON",
7777
"AttributeName": "DATE_OF_BIRTH",
78-
"CohortLabel": "rsv_eli_376_cohort_1",
78+
"CohortLabel": "rsv_eli_405_cohort_1",
7979
"Priority": 100
8080
},
8181
{
@@ -86,7 +86,18 @@
8686
"Comparator": "-75",
8787
"AttributeLevel": "PERSON",
8888
"AttributeName": "DATE_OF_BIRTH",
89-
"CohortLabel": "rsv_eli_376_cohort_1",
89+
"CohortLabel": "rsv_eli_405_cohort_1",
90+
"Priority": 200
91+
},
92+
{
93+
"Type": "S",
94+
"Name": "NotActionable Reason 1",
95+
"Description": "NotActionable Description 1",
96+
"Operator": "Y>",
97+
"Comparator": "-75",
98+
"AttributeLevel": "PERSON",
99+
"AttributeName": "DATE_OF_BIRTH",
100+
"CohortLabel": "rsv_eli_405_cohort_1",
90101
"Priority": 200
91102
}
92103
],

tests/e2e/data/configs/inProgressTestConfigs/ELI-376-405/AUTO_RSV_ELI-376-03.json renamed to tests/e2e/data/configs/storyTestConfigs/AUTO_RSV_ELI-405-02.json

Lines changed: 47 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"CampaignConfig": {
3-
"ID": "AUTO_RSV_ELI-376-03-Campaign-ID",
3+
"ID": "AUTO_RSV_ELI-405-02-Campaign-ID",
44
"Version": 1,
5-
"Name": "ELI-376-03-Iteration-Config-Name",
5+
"Name": "ELI-405-02-Iteration-Config-Name",
66
"Type": "V",
77
"Target": "RSV",
88
"Manager": [
@@ -21,15 +21,15 @@
2121
"EndDate": "20350717",
2222
"ApprovalMinimum": 0,
2323
"ApprovalMaximum": 0,
24-
"DefaultCommsRouting": "BOOK_NBS",
24+
"DefaultCommsRouting": "",
2525
"Iterations": [
2626
{
27-
"ID": "AUTO_RSV_ELI-376-03-Iteration-ID",
27+
"ID": "AUTO_RSV_ELI-405-02-Iteration-ID",
2828
"DefaultCommsRouting": "TEST_ACTION",
2929
"DefaultNotActionableRouting": "TEST_NOT_ACTION",
3030
"DefaultNotEligibleRouting": "TEST_NOT_ELI",
3131
"Version": 1,
32-
"Name": "ELI-376-03-Iteration-Config-Name",
32+
"Name": "ELI-405-04-Iteration-Config-Name",
3333
"IterationDate": "20240808",
3434
"IterationNumber": 1,
3535
"CommsType": "I",
@@ -38,31 +38,31 @@
3838
"Type": "O",
3939
"IterationCohorts": [
4040
{
41-
"CohortLabel": "rsv_eli_376_cohort_1",
42-
"CohortGroup": "rsv_eli_376_cohort_group",
43-
"PositiveDescription": "are a member of eli_376_cohort_group_0",
44-
"NegativeDescription": "are not a member of eli_376_cohort_group_0",
41+
"CohortLabel": "rsv_eli_405_cohort_1",
42+
"CohortGroup": "rsv_eli_405_cohort_group",
43+
"PositiveDescription": "are a member of eli_405_cohort_group_0",
44+
"NegativeDescription": "are not a member of eli_405_cohort_group_0",
4545
"Priority": 0
4646
},
4747
{
48-
"CohortLabel": "rsv_eli_376_cohort_2",
49-
"CohortGroup": "rsv_eli_376_cohort_group",
50-
"PositiveDescription": "are a member of eli_376_cohort_group_10",
51-
"NegativeDescription": "are not a member of eli_376_cohort_group_10",
48+
"CohortLabel": "rsv_eli_405_cohort_2",
49+
"CohortGroup": "rsv_eli_405_cohort_group",
50+
"PositiveDescription": "are a member of eli_405_cohort_group_10",
51+
"NegativeDescription": "are not a member of eli_405_cohort_group_10",
5252
"Priority": 10
5353
},
5454
{
55-
"CohortLabel": "rsv_eli_376_cohort_3",
56-
"CohortGroup": "rsv_eli_376_cohort_group",
57-
"PositiveDescription": "are a member of eli_376_cohort_group_20",
58-
"NegativeDescription": "are not a member of eli_376_cohort_group_20",
55+
"CohortLabel": "rsv_eli_405_cohort_3",
56+
"CohortGroup": "rsv_eli_405_cohort_group",
57+
"PositiveDescription": "are a member of eli_405_cohort_group_20",
58+
"NegativeDescription": "are not a member of eli_405_cohort_group_20",
5959
"Priority": 20
6060
},
6161
{
62-
"CohortLabel": "rsv_eli_376_cohort_4",
63-
"CohortGroup": "rsv_eli_376_cohort_group_other",
64-
"PositiveDescription": "are a member of eli_376_cohort_group_other",
65-
"NegativeDescription": "are not a member of eli_376_cohort_group_other",
62+
"CohortLabel": "rsv_eli_405_cohort_4",
63+
"CohortGroup": "rsv_eli_405_cohort_group_other",
64+
"PositiveDescription": "are a member of eli_405_cohort_group_other",
65+
"NegativeDescription": "are not a member of eli_405_cohort_group_other",
6666
"Priority": 30
6767
}
6868
],
@@ -75,18 +75,41 @@
7575
"Comparator": "-80",
7676
"AttributeLevel": "PERSON",
7777
"AttributeName": "DATE_OF_BIRTH",
78-
"CohortLabel": "rsv_eli_376_cohort_4",
78+
"CohortLabel": "rsv_eli_405_cohort_1",
7979
"Priority": 100
8080
},
81+
{
82+
"Type": "F",
83+
"Name": "NotEligible Reason 2",
84+
"Description": "NotEligible Description 2",
85+
"Operator": "=",
86+
"Comparator": "ABC",
87+
"AttributeLevel": "PERSON",
88+
"AttributeName": "ICB",
89+
"CohortLabel": "rsv_eli_405_cohort_4",
90+
"Priority": 110
91+
},
8192
{
8293
"Type": "S",
8394
"Name": "NotActionable Reason 1",
8495
"Description": "NotActionable Description 1",
96+
"Operator": "Y<=",
97+
"Comparator": "-800",
98+
"AttributeLevel": "PERSON",
99+
"AttributeName": "DATE_OF_BIRTH",
100+
"CohortLabel": "rsv_eli_405_cohort_1",
101+
"Priority": 100
102+
},
103+
{
104+
"Type": "S",
105+
"Name": "NotActionable Reason 2",
106+
"Description": "NotActionable Description 2",
85107
"Operator": "=",
86-
"Comparator": "ABC",
108+
"Comparator": "ABCD",
87109
"AttributeLevel": "PERSON",
88110
"AttributeName": "ICB",
89-
"Priority": 200
111+
"CohortLabel": "rsv_eli_405_cohort_4",
112+
"Priority": 110
90113
}
91114
],
92115
"ActionsMapper": {

0 commit comments

Comments
 (0)