Skip to content

Commit

Permalink
fix: Update test to use new program to keep existing tests passing [D…
Browse files Browse the repository at this point in the history
…HIS2-12345]
  • Loading branch information
david-mackessy committed Oct 31, 2023
1 parent af8d037 commit d25cc86
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 30 deletions.
139 changes: 110 additions & 29 deletions dhis-2/dhis-test-e2e/src/test/resources/setup/tracker_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@
"sharing": {
"public": "rw------",
"external": false,
"userGroups":{
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
Expand All @@ -622,6 +622,54 @@
}
]
},
{
"lastUpdated": "2019-02-28T12:42:58.281",
"id": "Td2rkv8FsW9",
"created": "2019-02-28T11:41:32.093",
"name": "TA Event_program2",
"code": "TA EVENT_PROGRAM2",
"shortName": "TAEP2",
"completeEventsExpiryDays": 0,
"ignoreOverdueEvents": false,
"skipOffline": false,
"minAttributesRequiredToSearch": 1,
"displayFrontPageList": false,
"onlyEnrollOnce": false,
"programType": "WITHOUT_REGISTRATION",
"accessLevel": "OPEN",
"version": 4,
"maxTeiCountToReturn": 0,
"selectIncidentDatesInFuture": false,
"displayIncidentDate": true,
"selectEnrollmentDatesInFuture": false,
"expiryDays": 0,
"useFirstStageDuringRegistration": false,
"programTrackedEntityAttributes": [],
"notificationTemplates": [],
"translations": [],
"organisationUnits": [
{
"id": "DiszpKrYNg8",
"code": "OU_559"
}
],
"sharing": {
"public": "rw------",
"external": false,
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
}
}
},
"programStages": [
{
"id": "PKLB23QZS49",
"code": "TA_EVENT_PROGRAM_STAGE2"
}
]
},
{
"lastUpdated": "2019-02-28T12:42:58.283",
"id": "f1AyMswryyX",
Expand Down Expand Up @@ -675,7 +723,7 @@
"sharing": {
"public": "rwrw----",
"external": false,
"userGroups":{
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
Expand Down Expand Up @@ -1256,7 +1304,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-01-07T12:50:38.506",
Expand Down Expand Up @@ -1292,7 +1340,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
}
],
"translations": [],
Expand Down Expand Up @@ -1406,7 +1454,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-01-07T12:50:38.505",
Expand Down Expand Up @@ -1442,7 +1490,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-01-07T12:50:38.505",
Expand Down Expand Up @@ -1478,7 +1526,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-01-07T12:50:38.505",
Expand Down Expand Up @@ -1514,7 +1562,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-01-07T12:50:38.505",
Expand Down Expand Up @@ -1550,7 +1598,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-01-07T12:50:38.506",
Expand Down Expand Up @@ -1586,7 +1634,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
}
],
"translations": [],
Expand Down Expand Up @@ -1662,13 +1710,46 @@
"id": "inc5BJvr4W5",
"code": "TA_COMMENT_DE"
}
},
{
"dataElement": {
"id": "vbZ5LGNfGET",
"code": "TA_DATE_AND_TIME_DE AGGREGATE"
}
],
"translations": [],
"sharing": {
"public": "rw------",
"external": false,
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
}
},
}
},
"attributeValues": [],
"programStageSections": []
},
{
"lastUpdated": "2019-02-28T11:41:32.082",
"id": "PKLB23QZS49",
"created": "2019-02-28T11:41:32.082",
"name": "TA Event_program2",
"code": "TA_EVENT_PROGRAM_STAGE2",
"allowGenerateNextVisit": false,
"preGenerateUID": false,
"openAfterEnrollment": false,
"repeatable": false,
"remindCompleted": false,
"displayGenerateEventBox": true,
"generatedByEnrollmentDate": false,
"validationStrategy": "ON_COMPLETE",
"autoGenerateEvent": true,
"hideDueDate": false,
"blockEntryForm": false,
"minDaysFromStart": 0,
"program": {
"id": "Td2rkv8FsW9",
"code": "TA EVENT_PROGRAM2"
},
"notificationTemplates": [],
"programStageDataElements": [
{
"dataElement": {
"id": "vbZ5LGNfGyy",
Expand All @@ -1680,7 +1761,7 @@
"sharing": {
"public": "rw------",
"external": false,
"userGroups":{
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
Expand Down Expand Up @@ -1721,7 +1802,7 @@
"sharing": {
"public": "rwrw----",
"external": false,
"userGroups":{
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
Expand Down Expand Up @@ -2013,7 +2094,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-04-25T08:34:44.295",
Expand Down Expand Up @@ -2047,7 +2128,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-04-25T08:34:44.295",
Expand Down Expand Up @@ -2081,7 +2162,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-04-25T08:34:44.295",
Expand Down Expand Up @@ -2115,7 +2196,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-04-25T08:34:44.296",
Expand Down Expand Up @@ -2149,7 +2230,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-04-25T08:34:44.296",
Expand Down Expand Up @@ -2183,7 +2264,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
}
],
"translations": []
Expand Down Expand Up @@ -2238,7 +2319,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
},
{
"lastUpdated": "2022-01-07T12:45:47.414",
Expand All @@ -2262,7 +2343,7 @@
},
"favorites": [],
"translations": [],
"attributeValues": []
"attributeValues": []
}
],
"attributeValues": [],
Expand Down Expand Up @@ -3018,7 +3099,7 @@
"sharing": {
"public": "rw------",
"external": false,
"userGroups":{
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
Expand Down Expand Up @@ -3055,7 +3136,7 @@
"sharing": {
"public": "rw------",
"external": false,
"userGroups":{
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
Expand Down Expand Up @@ -3090,7 +3171,7 @@
"sharing": {
"public": "rw------",
"external": false,
"userGroups":{
"userGroups": {
"OPVIvvXzNTw": {
"id": "OPVIvvXzNTw",
"access": "rwrw----"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
event,status,program,programStage,enrollment,orgUnit,eventDate,dueDate,latitude,longitude,dataElement,value,storedBy,providedElsewhere,completedDate,completedBy,geometry
Dfger123k4e,,Zd2rkv8FsWq,jKLB23QZS4I,,g8upMTyEZGZ,2018-11-01T00:00:00.000,2058-11-01T00:00:00.000,,,vbZ5LGNfGyy,TA_YES,,true,,,
Dfger123k4e,,Td2rkv8FsW9,PKLB23QZS49,,DiszpKrYNg8,2018-11-01T00:00:00.000,2058-11-01T00:00:00.000,,,vbZ5LGNfGyy,TA_YES,,true,,,

0 comments on commit d25cc86

Please sign in to comment.