Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Metric
Frequency
Indicator
Method to collect data
Level
App crash rate
Daily
The number of times the application experienced an unexpected exit.
User surveys and telemetry
Province
App latency
The time taken between a user's action (such as submitting a transaction) and the app’s response to the action.
Telemetry
Province
Number of transactions completed
Once per campaign
The number of transactions over a defined period of time (campaign duration).
Direct query
Province
Error rates
Daily
The number of times users encounter systems errors over a defined period of time.
Telemetry
Province
Time taken to complete a transaction using app
Once per campaign
The average time taken to register an individual/ household, record stock, and supervision checklists (compare with paper-based and DHIS2 metric).
User Research
Province
Number of data records collected on paper forms
Once per campaign
The number of households registered, stock records created, and supervision checklists filled using paper forms
Program/ digital forms filled
Province
Number of technical complaints raised
Once per campaign
The number of issues logged using the app and on other means.
Direct querying / user interviews
Province
Number of P1 bugs raised in production
Once per campaign
Direct querying
Province
HCM
Individual Registry
Household Registry
Facility Registry
Product Registry
Project Service
Stock and Inventory Management
Supervision
HCM mobile app
- Registration and service delivery flows
- Inventory management
- Supervision flow
- Sync data
- Login and projects details flow
HLM-2235 - During sync at the backend, the address update and individual ID updates are failing.
HLM-2094 - Pop-ups for sync to happen do not appear when a project is selected during the login process on the mobile app.
HLM-2236 - While the boundary data is integrated and working fine, the locality picker issue is critical from a dashboard standpoint.
HLM-2268 - Integration issue-lower boundary levels are showing NULL, even if the boundary is selected from the dropdown (MobileApp).
HLM-2093 - The help icon is not active and does not work.
HLM-2267 - MobileApp: Even the quality is selected as 0, and the delivery comment selected as “Unsuccessful delivery”", the task is marked ‘Delivered’.
Click here for more details.
Go
The modules are released with very few bugs. Performance testing was also performed on the bulk create APIs. Performance tests are not done on bulk update and delete APIs as they are designed the same as create APIs, and they are less used. The HCM v1.0 is released as per the architecture design.
01
10
30
1
30
1
30
30
30
1
2s
1
FAIL
Individuals were not found while creation of household members /Users/guruprasadsreenivasarao/Documents/eGov/Perf/SS/TC01_HouseholdService.png /Users/guruprasadsreenivasarao/Documents/eGov/Perf/SS/TC01_IndividualService.png
03
10
30
1
30
2
30
30
30
1
2s
1
PASS
No errors in logs
03.01
10
30
1
30
2
30
30
30
1
2s
1
FAIL
Observed that the idgen was taking a long time - 1s to give a response. We see that search of individuals happens while individuals are getting created and giving errrors. /Users/guruprasadsreenivasarao/Documents/eGov/Perf/SS/TC03.01_HouseholdService.png /Users/guruprasadsreenivasarao/Documents/eGov/Perf/SS/TC03.01_IndividualService.png
03.02
10
30
1
30
2
30
30
30
1
2s
2
FAIL
IDgen is taking between 1-5 seconds. The failures occured at the time when data was still being created by individual service and household member searched for the same
3.03
10
30
1
30
2
30
30
30
1
2s
2
FAIL
IDgen is taking between 1-2 seconds. The failures occured at the time when data was still being created by individual service and household member searched for the same
04
10
30
1
30
1
30
30
30
1
4s
1
PASS
We did not observe any errors.
04.01
10
30
1
30
1
30
30
30
1
4s
1
PASS
We did not observe any errors.
4.02
10
30
1
30
1
30
30
30
1
4s
1
PASS
We did not observe any errors.
04.03
10
30
1
30
1
30
30
30
1
1s delay between each of the threads 2s delay between individual and household member
1
FAIL
04.04
10
30
1
30
1
30
30
30
1
1s delay between each of the threads 4s delay between individual and household member
1
PASS
04.05
10
30
1
30
1
30
30
30
1
500ms delay between each of the threads 4s delay between individual and household member
1
FAIL
Project beneficiary was missing for project task creation. Project task was getting failed for few.
04.06
10
30
1
30
1
30
30
30
1
500ms delay between each of the threads 4s delay between individual and household member 1s delay between project beneficiary and project tasks
1
PASS
04.07
10
30
1
30
1
30
30
30
1
500ms delay between each of the threads 4s delay between individual and household member 1s delay between project beneficiary and project tasks
1
PASS
J-04.08
10
30
1
30
1
30
30
30
1
500ms delay between each of the threads 4s delay between individual and household member 1s delay between project beneficiary and project tasks
1
PASS
05
20
30
1
30
1
30
30
30
1
500ms delay between each of the threads 4s delay between individual and household member 1s delay between project beneficiary and project tasks
1
C06.01
10
30
1
30
3
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
C06.02
10
30
1
30
3
30
30
30
1
500ms delay between each of the threads 2s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
C06.03
10
30
1
30
3
30
30
30
1
500ms delay between each of the threads 1.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
C06.05
10
30
1
30
3
30
30
30
1
500ms delay between each of the threads 1.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
C06.06
10
30
1
30
3
30
30
30
1
500ms delay between each of the threads 1.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
C06.08
15
30
1
30
3
30
30
30
1
500ms delay between each of the threads 1.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
Best result for 1 pod and delay configuration between calls.
C06.09
20
30
1
30
3
30
30
30
1
500ms delay between each of the threads 1.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
FAIL
Household pods goes to crash loop back off state and household member creation failes. Hence the project beneficiary and subsequently project tasks also fail.
C07.01
10
30
1
120
12
30
30
30
1
500ms delay between each of the threads 1.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
FAIL
C07.02
6
30
1
120
12
30
30
30
1
500ms delay between each of the threads 1.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
FAIL
Creation of household members failed with individualid not found. Rest all were created successfully.
C07.04
6
30
1
120
12
30
30
30
1
500ms delay between each of the threads 2s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
FAIL
Inconsistent results with tis set up. Ran thrice and failed twice
C07.05
6
30
1
120
12
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
table_name | count ---------------------+------- project_task | 180 project_beneficiary | 180 household_member | 720 household | 180 individual | 720 Individual service takes about avg of 2.7s and max 7s to send a response.
C07.06
6
30
1
120
12
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
table_name | count ---------------------+------- project_task | 180 project_beneficiary | 180 household_member | 720 household | 180 individual | 720 Individual service takes about avg of 0.7s and max 1.1s to send a response.
C07.07
6
30
1
120
12
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
table_name | count ---------------------+------- project_task | 180 project_beneficiary | 180 household_member | 720 household | 180 individual | 720 Individual service takes about avg of 0.75s and max 1.1s to send a response.
C08.01
10
30
1
120
12
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
FAIL
Household member creation fails with individual not found. Hence the project beneficiary and subsequently project tasks also fail.
C09.01
10
30
1
120
1
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
C09.02
10
30
1
120
1
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
table_name | count ---------------------+------- project_task | 300 project_beneficiary | 300 household_member | 1200 household | 300 individual | 1200
C-09.03
20
30
1
120
1
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
table_name | count ---------------------+------- project_task | 600 project_beneficiary | 600 household_member | 2400 individual | 2400 household | 600
C-09.04
60
30
1
120
1
30
30
30
1
500ms delay between each of the threads 2.5s delay between individual and household member 1.5s delay between project beneficiary and project tasks
1
PASS
table_name | count ---------------------+------- project_task | 1800 project_beneficiary | 1800 household | 1800 household_member | 7200 individual | 7200
C-09.05
60
30
1
120
1
30
30
30
1
500ms delay between each of the threads
1
PASS
table_name | count ---------------------+------- project_task | 1800 project_beneficiary | 1800 household | 1800 household_member | 7200 individual | 7200
C-09.06
100
30
1
120
1
30
30
30
1
500ms delay between each of the threads
1
PASS
table_name | count ---------------------+------- project_task | 3000 project_beneficiary | 3000 household | 3000 household_member | 12000 individual | 12000 Best result for 1 pod and delay configuration between calls.
A formal sign-off came from the product team after completing the functional testing of all HCM v1.0 modules. The following capabilities were tested and are functioning as expected:
1. Registration and service delivery flows.
2. Inventory management: Stock recording and reconciliation flows.
3. Supervision flow: Filling and viewing the submitted checklists.
4. Sync data: Offline capability for all the above flows.
5. UX: Metrics card, auto calculation (decision dupport to FLW).
6. Role action mappings configured for the app.
7. Login and project selection flows (happy path and edge cases).
8. Capturing location details (GPS) while offline.
9. Localisation support for English and Portuguese.
All the artefacts required for Gate 2 have been shared and published on Gitbook.
Information regarding sign-off modules and features for HCM FLW app are mentioned below:
https://digit-discuss.atlassian.net/browse/HLM-621 - [1.1] Register a new beneficiary
https://digit-discuss.atlassian.net/browse/HLM-660 - [1.2] Search and view Registered beneficiaries from list
https://digit-discuss.atlassian.net/browse/HLM-684 - [1.3] Update beneficiaries details after registration
https://digit-discuss.atlassian.net/browse/HLM-685 - [1.4] Delete beneficiaries details after registration
https://digit-discuss.atlassian.net/browse/HLM-686 - [2.1] Login into the Mobile App
https://digit-discuss.atlassian.net/browse/HLM-687 - [2.2] In app walkthrough for registration flow
https://digit-discuss.atlassian.net/browse/HLM-688 - [3.1] Add delivery details against registered beneficiary
https://digit-discuss.atlassian.net/browse/HLM-692 - [3.2] Edit delivery details against registered beneficiary
https://digit-discuss.atlassian.net/browse/HLM-693 - [3.3] Delete delivery details against registered beneficiary
https://digit-discuss.atlassian.net/browse/HLM-927 - [3.4] Search delivery details against registered beneficiary
https://digit-discuss.atlassian.net/browse/HLM-689 - [4.1] Record receipt of stock
https://digit-discuss.atlassian.net/browse/HLM-690 - [4.2] Record issue of stock
https://digit-discuss.atlassian.net/browse/HLM-691 - [4.3] Perform stock reconciliation to view Stock on Hand
https://digit-discuss.atlassian.net/browse/HLM-698 - [6.1] Fill and submit supervision checklists
https://digit-discuss.atlassian.net/browse/HLM-699 - [7.1] Create project service for campaign Setup - Backend
https://digit-discuss.atlassian.net/browse/HLM-700 - [7.2] Manage users and roles to enable campaign setup
https://digit-discuss.atlassian.net/browse/HLM-701 - [7.3] MDMS configuration for campaign setup - Backend
https://digit-discuss.atlassian.net/browse/HLM-703 - [7.5] User management
https://digit-discuss.atlassian.net/browse/HLM-931 - [7.7] View progress against targets assigned- Progress bar on homepage
https://digit-discuss.atlassian.net/browse/HLM-705 - [8.1] Update dashboard indicators with data from Micro-plan (targets)- Support excel upload
https://digit-discuss.atlassian.net/browse/HLM-706 - [9.1] Download latest forms, role permissions and data from server to mobile app
https://digit-discuss.atlassian.net/browse/HLM-738 - [9.1.1] Offline: Download data from server to the mobile application
https://digit-discuss.atlassian.net/browse/HLM-707 - [9.2] Upload data collected while offline with server - Offline Sync Capability
https://digit-discuss.atlassian.net/browse/HLM-708 - [10.1] Enable location services on mobile app when offline
https://digit-discuss.atlassian.net/browse/HLM-659 - [10.2] Localization: Support for English and Portuguese
View the credentials used for testing QA and UAT below:
SYSTEM_ADMINISTRATOR
sysadmin
eGov@4321
SUPERUSER
super007
eGov@1234
Role
Username
Password
REGISTRAR
registrarUlongue
eGov@1234
DISTRIBUTOR
distributorUlongue
eGov@1234
WAREHOUSE_MANAGER
wmgrUlongue
eGov@1234
NATIONAL_SUPERVISOR
nationalSupervisor1
eGov@1234
PROVINCIAL_SUPERVISOR
provincialSupervisor1
eGov@1234
DISTRICT_SUPERVISOR
fieldSupervisor1
eGov@1234
SYSTEM_ADMINISTRATOR
sysadmin
eGov@1234
REGISTRAR
registrar
eGov@1234
DISTRIBUTOR
distributor
eGov@1234
SUPERUSER
superuser
eGov@1234
NATIONAL_SUPERVISOR
nationalSupervisor
eGov@1234
PROVINCIAL_SUPERVISOR
provincialSupervisor
eGov@1234
DISTRICT_SUPERVISOR
districtSupervisor
eGov@1234
WAREHOUSE_MANAGER
warehouseManager
eGov@1234
Role
username
Password
DISTRIBUTOR
distributorDomue1
eGov@1234
DISTRIBUTOR
distributorDomue2
eGov@1234
DISTRIBUTOR
distributorChiocoL11
eGov@1234
DISTRIBUTOR
distributorChiocoL12
eGov@1234
DISTRIBUTOR
distributorChiocoL13
eGov@1234
DISTRIBUTOR
distributorKazulaL11
eGov@1234
DISTRIBUTOR
distributorKazulaL12
eGov@1234
WAREHOUSE_MANAGER
wmgrChangara
eGov@1234
WAREHOUSE_MANAGER
wmgrChangara
eGov@1234
WAREHOUSE_MANAGER
wmgrChiocoL11
eGov@1234
WAREHOUSE_MANAGER
wmgrChiocoL21
eGov@1234
WAREHOUSE_MANAGER
wmgrKazulaL11
eGov@1234
FIELD_SUPERVISOR
fieldSupDomue
eGov@1234
FIELD_SUPERVISOR
fieldSupChioco
eGov@1234
FIELD_SUPERVISOR
fieldSupKazula
eGov@1234
DISTRICT_SUPERVISOR
distSupChangara
eGov@1234
DISTRICT_SUPERVISOR
distSupChangara
eGov@1234
PROVINCIAL_SUPERVISOR
provSupTete1
eGov@1234
PROVINCIAL_SUPERVISOR
provSupTete2
eGov@1234
UI test cases executed:
HLM-686-2.1
HLM/686/01
Login
Check if User is able to login to the application
Functional
1.Launch the mobile application. 2.Enter valid credentials. 3.Click on login.
User should be able to login to the application and use the app for carrying day to day activities
PASS
PASS
HLM/686/02
Login
Check if the password entry is masked
Functional
1.Launch the mobile application. 2.Enter valid credentials.
Password entry should be masked when user enters his/her password
PASS
PASS
HLM/686/03
Login
Check if user is able to view the password by clicking on view password button
Functional
1.Launch the mobile application. 2.Enter valid credentials. 3.Click on view password icon.
User should be able to view the entered password when user clicks on view password icon
PASS
PASS
HLM/686/04
Login
Check whether the error alert gets displayed when password does not match
Functional
1.Launch the mobile application. 2.Enter invalid password. 3.Click on login.
Error alert "Password entered does not match" should get displayed when user enters incorrect password and clicks on submit button
PASS
PASS
HLM/686/05
Login
Check whether the error alert gets displayed when userid/name does not match
Functional
1.Launch the mobile application. 2.Enter invalid userid/name. 3.Click on login.
Error alert "Username entered does not match" should get displayed when user enters incorrect userid/name and clicks on submit button
PASS
PASS
HLM/686/06
Login
Check when user clicks on forgot password a message gets displayed
Functional
1.Launch the mobile application. 2.Enter valid login credentials. 3.Click on forgot password
Error alert "Please contact the administration if you have forgotten your password" should get displayed when user clicks on forgot password. When we click on "OK" CTA, we are taken to the login screen.
PASS
PASS
HLM/686/07
Login
Check whether toast message is generated after successful login
Functional
1.Launch the mobile application. 2.Enter valid login credentials. 3.Click on login
User should get a toaster as "successful login" when user gets successfully logged in to the application
NA
NA
HLM/686/08
Login
Check whether the loader is displayed when the syncing is carried from the server
Functional
1.Launch the mobile application. 2.Enter valid login credentials. 3.Click on login
User should be able to see the loader when file sycing is carried
PASS
PASS
HLM/686/09
Login
Check whether successful login triggers the mobile application to automatically download the MDMS data from the server
Functional
1.Launch the mobile application. 2.Enter valid login credentials. 3.Click on login
After successful login application should trigger to automatically download MDMS data from the server
PASS
PASS
HLM/686/10
Login
Check whether after successful data download into the application pop up is generated as "Data Downloaded"
Functional
1.Launch the mobile application. 2.Enter valid login credentials. 3.Click on login
After successful download of data into the application user pop should get generated as "Data Downloaded"
NA
NA
HLM/686/11
Login
Check whether the forgot password link is visible on the login page
UI
1.Launch the mobile application.
User should be able to view forgot password link on the login page
PASS
PASS
HLM/686/12
Offline Login for an already logged in user
Check whether the user can login to the mobile application while being offline
Functional
1. Install the app. 2. Switch on internet and do the first time login and data download. 3. Once the data download is complete, logout off the application. 4. Switch off the internet connection on the mobile device. 5. Perform login with valid credentials.
User should be able to login to the application even when offline.
PASS
PASS
API test cases executed
HLM/688/API/001
Create a project task with valid data
Project Task
Create
API request to create project task with valid data
Auth token of a distributor
Send a postman request to create a project task with valid data using the auth token fo a distributor
We should be able to create a project task.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "clientReferenceId": "d642d1c1-2e75-43f1-9bfe-dc3eb1354794", "resources": [ { "tenantId": "default", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery in progress" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679298652489, "resMsgId": null, "msgId": null, "status": "successful" }, "Task": { "id": "PT-2023-03-20-003047", "tenantId": "default", "clientReferenceId": "d642d1c1-2e75-43f1-9bfe-dc3eb1354794", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "234496bd-c991-40d2-b0ca-7c28790cfe70", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-03-20-003047", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery in progress", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679298652473, "lastModifiedTime": 1679298652473 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "08741303-2ec7-408a-9b09-9c6044ae15ae", "tenantId": "default", "clientReferenceId": null, "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679298652473, "lastModifiedTime": 1679298652473 }, "status": "IN_PROGRESS" } }
PASS
HLM/688/API/002
Create a project task with valid data
Project Task
Create
API request to create project task with valid data
Auth token of a registrar
Send a postman request to create a project task with valid data using the auth token fo a registrar
We should get an error message saying that the action is not available to the user.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "clientReferenceId": "fb7ea585-aaac-4703-a417-e8fc74e0f1d4", "resources": [ { "tenantId": "default", "clientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "taskClientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "clientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "COMPLETED" } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679384185768, "resMsgId": null, "msgId": null, "status": "successful" }, "Task": { "id": "PT-2023-03-21-003076", "tenantId": "default", "clientReferenceId": "fb7ea585-aaac-4703-a417-e8fc74e0f1d4", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "5a3b0555-15b8-48f8-ba73-0898d0b78596", "tenantId": "default", "clientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "taskId": "PT-2023-03-21-003076", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384185754, "lastModifiedTime": 1679384185754 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "e4c32953-2a66-45db-a360-a27642d4fb8c", "tenantId": "default", "clientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384185754, "lastModifiedTime": 1679384185754 }, "status": "COMPLETED" } }
PASS
HLM/688/API/003
Update a project task with valid data
Project Task
Update
API request to update project task with valid data
Auth token of a distributor
Send a postman request to update a project task with valid data using the auth token fo a distributor
We should be able to update the project task.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-02-13-000019", "tenantId": "default", "clientReferenceId": "8070dbd8-d127-4d90-a6d9-51a35b57c9cb", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "df73be0f-dbf5-43d7-aab4-91e014c5a647", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "taskClientReferenceId": null, "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676280722118, "lastModifiedTime": 1676280722118 } }, { "tenantId": "default", "productVariantId": "PVAR-2023-01-04-000013", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery has been scheduled." } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": null, "createdDate": null, "address": { "id": "da9fddf6-f524-43f5-827a-fcfae2eedace", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 66.0, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": null, "label": null, "latitude": null, "longitude": null, "materializedPath": null } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 2, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676280722117, "lastModifiedTime": 1676280722117 }, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679298826837, "resMsgId": null, "msgId": null, "status": "successful" }, "Task": { "id": "PT-2023-02-13-000019", "tenantId": "default", "clientReferenceId": "8070dbd8-d127-4d90-a6d9-51a35b57c9cb", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "df73be0f-dbf5-43d7-aab4-91e014c5a647", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1676280722118, "lastModifiedTime": 1679298826829 } }, { "id": "1c717542-bbbb-410e-a9e9-75c2aaa9b2cd", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "productVariantId": "PVAR-2023-01-04-000013", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery has been scheduled.", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679298826828, "lastModifiedTime": 1679298826828 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": null, "createdDate": null, "address": { "id": "da9fddf6-f524-43f5-827a-fcfae2eedace", "tenantId": "default", "clientReferenceId": null, "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 66.0, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": null, "label": null, "latitude": null, "longitude": null, "materializedPath": null } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 3, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1676280722117, "lastModifiedTime": 1679298826830 }, "status": "IN_PROGRESS" } }
PASS
HLM/688/API/004
Update a project task with valid data
Project Task
Update
API request to update project task with valid data
Auth token of a registrar
Send a postman request to update a project task with valid data using the auth token fo a registrar
We should get an error message saying that the action is not available to the user.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003076", "tenantId": "default", "clientReferenceId": "fb7ea585-aaac-4703-a417-e8fc74e0f1d4", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "5a3b0555-15b8-48f8-ba73-0898d0b78596", "tenantId": "default", "clientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "taskId": "PT-2023-03-21-003076", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384185754, "lastModifiedTime": 1679384185754 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "e4c32953-2a66-45db-a360-a27642d4fb8c", "tenantId": "default", "clientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384185754, "lastModifiedTime": 1679384185754 }, "status": "COMPLETED" } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679384261852, "resMsgId": null, "msgId": null, "status": "successful" }, "Task": { "id": "PT-2023-03-21-003076", "tenantId": "default", "clientReferenceId": "fb7ea585-aaac-4703-a417-e8fc74e0f1d4", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "5a3b0555-15b8-48f8-ba73-0898d0b78596", "tenantId": "default", "clientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "taskId": "PT-2023-03-21-003076", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384185754, "lastModifiedTime": 1679384261837 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "e4c32953-2a66-45db-a360-a27642d4fb8c", "tenantId": "default", "clientReferenceId": "462273f2-3132-46da-8786-9a6a03f8c041", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 2, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384185754, "lastModifiedTime": 1679384261837 }, "status": "COMPLETED" } }
PASS
HLM/688/API/005
Delete a project task with valid data
Project Task
Delete
API request to delete project task with valid data
Auth token of a distributor
Send a postman request to delete a project task with valid data using the auth token fo a distributor
We should be able to delete the project task.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_delete' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003072", "tenantId": "default", "clientReferenceId": "fd50d47c-3313-4531-81cb-d872f75803d8", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "59ac739b-4338-4306-931b-df4d7b2a13e2", "tenantId": "default", "clientReferenceId": "6424e969-fdc0-48d5-8079-a18da8df8843", "taskId": "PT-2023-03-21-003072", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679382876666, "lastModifiedTime": 1679382876666 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "c7504ebb-7713-4e15-b79c-29e50b5c3563", "tenantId": "default", "clientReferenceId": "6424e969-fdc0-48d5-8079-a18da8df8843", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679382876666, "lastModifiedTime": 1679382876666 }, "status": "COMPLETED" } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679383001245, "resMsgId": null, "msgId": null, "status": "successful" }, "Task": { "id": "PT-2023-03-21-003072", "tenantId": "default", "clientReferenceId": "fd50d47c-3313-4531-81cb-d872f75803d8", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "59ac739b-4338-4306-931b-df4d7b2a13e2", "tenantId": "default", "clientReferenceId": "6424e969-fdc0-48d5-8079-a18da8df8843", "taskId": "PT-2023-03-21-003072", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679382876666, "lastModifiedTime": 1679382876666 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "c7504ebb-7713-4e15-b79c-29e50b5c3563", "tenantId": "default", "clientReferenceId": "6424e969-fdc0-48d5-8079-a18da8df8843", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679382876666, "lastModifiedTime": 1679382876666 }, "status": "COMPLETED" } }
PASS
HLM/688/API/006
Delete a project task with valid data
Project Task
Delete
API request to delete project task with valid data
Auth token of a registrar
Send a postman request to delete a project task with valid data using the auth token fo a registrar
We should get an error message saying that the action is not available to the user.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_delete' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003077", "tenantId": "default", "clientReferenceId": "e62ab80f-6e53-4fdc-9539-e0ac11da6840", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "f11b327b-3b8f-4abc-ab77-30bf75d92b78", "tenantId": "default", "clientReferenceId": "1bdd14cc-9817-4aea-b128-99262e3fb3dd", "taskId": "PT-2023-03-21-003077", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384494029, "lastModifiedTime": 1679384494029 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "13ee9dec-7b84-4486-8f9c-0951779e7d86", "tenantId": "default", "clientReferenceId": "1bdd14cc-9817-4aea-b128-99262e3fb3dd", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384494028, "lastModifiedTime": 1679384494028 }, "status": "COMPLETED" } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679384641133, "resMsgId": null, "msgId": null, "status": "successful" }, "Task": { "id": "PT-2023-03-21-003077", "tenantId": "default", "clientReferenceId": "e62ab80f-6e53-4fdc-9539-e0ac11da6840", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "f11b327b-3b8f-4abc-ab77-30bf75d92b78", "tenantId": "default", "clientReferenceId": "1bdd14cc-9817-4aea-b128-99262e3fb3dd", "taskId": "PT-2023-03-21-003077", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384494029, "lastModifiedTime": 1679384494029 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "13ee9dec-7b84-4486-8f9c-0951779e7d86", "tenantId": "default", "clientReferenceId": "1bdd14cc-9817-4aea-b128-99262e3fb3dd", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384494028, "lastModifiedTime": 1679384494028 }, "status": "COMPLETED" } }
PASS
HLM/688/API/007
Search a project task with valid data
Project Task
Search
API request to search project task with valid data
Auth token of a distributor
Send a postman request to search a project task with valid data using the auth token fo a distributor
We should be able to search the project task.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=default&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": [ "PT-2023-02-13-000019" ], "clientReferenceId": [ "8070dbd8-d127-4d90-a6d9-51a35b57c9cb" ], "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "localityCode": "test_218f32cdca88", "status": "IN_PROGRESS" } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679298872193, "resMsgId": null, "msgId": null, "status": "successful" }, "Tasks": [ { "id": "PT-2023-02-13-000019", "tenantId": "default", "clientReferenceId": "8070dbd8-d127-4d90-a6d9-51a35b57c9cb", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "3aa9e4f3-1fd6-40a7-828d-6e54e32d2894", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "productVariantId": "PVAR-2023-01-04-000013", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676281077731, "lastModifiedTime": 1676281077731 } }, { "id": "df73be0f-dbf5-43d7-aab4-91e014c5a647", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1676280722118, "lastModifiedTime": 1679298826829 } }, { "id": "1c717542-bbbb-410e-a9e9-75c2aaa9b2cd", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "productVariantId": "PVAR-2023-01-04-000013", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679298826828, "lastModifiedTime": 1679298826828 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": null, "createdDate": null, "address": { "id": "da9fddf6-f524-43f5-827a-fcfae2eedace", "tenantId": "default", "clientReferenceId": null, "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 66.0, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": null, "label": null, "latitude": null, "longitude": null, "materializedPath": null } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 3, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1676280722117, "lastModifiedTime": 1679298826830 }, "status": "IN_PROGRESS" } ] }
PASS
HLM/688/API/008
Search a project task with valid data
Project Task
Search
API request to search project task with valid data
Auth token of a registrar
Send a postman request to search a project task with valid data using the auth token fo a registrar
We should get an error message saying that the action is not available to the user.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=default&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "clientReferenceId": [ "8383af6f-23c8-4966-b044-dd794201055c" ] } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679384545927, "resMsgId": null, "msgId": null, "status": "successful" }, "Tasks": [ { "id": "PT-2023-02-23-000035", "tenantId": "default", "clientReferenceId": "8383af6f-23c8-4966-b044-dd794201055c", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "b2cb0882-b9f8-4d10-973f-793d9dacb417", "resources": [ { "id": "28dd5d56-468b-4389-ab5c-30f980235336", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-23-000035", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1677135507560, "lastModifiedTime": 1678950773817 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": null, "createdDate": null, "address": { "id": "3b266239-013c-4d75-86fb-581de9b79d53", "tenantId": "default", "clientReferenceId": null, "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 66.0, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb22", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": null, "label": null, "latitude": null, "longitude": null, "materializedPath": null } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 2, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1677135507555, "lastModifiedTime": 1678950773819 }, "status": "IN_PROGRESS" } ] }
PASS
HLM/688/API/009
Create a project task with invalid data
Project Task
Create
API request to create project task with invalid data
Auth token of a distributor
Send a postman request to create a project task with invalid data using the auth token fo a distributor
We should get an error message with respect to the invalid data being sent in the request body.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "d", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "clientReferenceId": "6594ae45-d9ec-4ce8-90ed-fc8bf1f0c42d", "resources": [ { "tenantId": "default", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "COMPLETED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "IDGEN_ERROR", "message": "No ids returned from idgen Service", "description": null, "params": null } ] }
PASS
HLM/688/API/010
Update a project task with invalid data
Project Task
Update
API request to update project task with invalid data
Auth token of a distributor
Send a postman request to update a project task with invalid data using the auth token fo a distributor
We should get an error message with respect to the invalid data being sent in the request body.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-02-13-000019", "tenantId": "de", "clientReferenceId": "8070dbd8-d127-4d90-a6d9-51a35b57c9cb", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "df73be0f-dbf5-43d7-aab4-91e014c5a647", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "taskClientReferenceId": null, "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676280722118, "lastModifiedTime": 1676280722118 } }, { "tenantId": "default", "productVariantId": "PVAR-2023-01-04-000013", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": null, "createdDate": null, "address": { "id": "da9fddf6-f524-43f5-827a-fcfae2eedace", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 66.0, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": null, "label": null, "latitude": null, "longitude": null, "materializedPath": null } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 2, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676280722117, "lastModifiedTime": 1676280722117 }, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/011
Delete a project task with invalid data
Project Task
Delete
API request to delete project task with invalid data
Auth token of a distributor
Send a postman request to delete a project task with invalid data using the auth token fo a distributor
We should get an error message with respect to the invalid data being sent in the request body.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_delete' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003073", "tenantId": "default", "clientReferenceId": "851c93d4-306a-4763-9ded-ff36d2580c35", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "35d26455-57a5-40a4-94df-7a678221ec4c", "tenantId": "default", "clientReferenceId": "a67d2f74-7ca1-41c5-a3a6-ba790b6ccc49", "taskId": "PT-2023-03-21-003073", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery has been scheduled.", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679383065159, "lastModifiedTime": 1679383065159 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "b6f2dd51-2e3f-4b1a-aaf4-30588918738e", "tenantId": "default", "clientReferenceId": "a67d2f74-7ca1-41c5-a3a6-ba790b6ccc49", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679383065159, "lastModifiedTime": 1679383065159 }, "status": "SCHEDULED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "NotNull.taskRequest.task.address.type", "message": "must not be null", "description": null, "params": null } ] }
PASS
HLM/688/API/012
NULL check for project task creation API
Project Task
Create
API request to create a project task and perform NULL check for a JSON token.
Auth token of a distributor
Send a postman request to create a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a null data.
We should be getting an error message that points to the relevant JSON token that does not accept null values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": null, "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "clientReferenceId": "2532349b-c8cd-4688-9ca1-5b559f4b5345", "resources": [ { "tenantId": "default", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery has been scheduled." } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "SCHEDULED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "NotNull.taskRequest.task.tenantId", "message": "must not be null", "description": null, "params": null } ] }
PASS
HLM/688/API/013
Minimum length criteria check for project task creation API
Project Task
Create
API request to create a project task and perform check for min length for a JSON token.
Auth token of a distributor
Send a postman request to create a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having data less than the allowed minimum length.
We should be getting an error message that points to the relevant JSON token that accepts values within a minimum and maximum range.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "1", "projectBeneficiaryId": "PTB-2023-02-10-000071", "clientReferenceId": "a36d1fdd-dcae-47d4-9cde-daf9ff8238bd", "resources": [ { "tenantId": "default", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery has been scheduled." } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "SCHEDULED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.projectId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/014
Maximum length criteria check for project task creation API
Project Task
Create
API request to create a project task and perform check for max length for a JSON token.
Auth token of a distributor
Send a postman request to create a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having data more than the allowed minimum length.
We should be getting an error message that points to the relevant JSON token that accepts values within a minimum and maximum range.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "1333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333", "projectBeneficiaryId": "PTB-2023-02-10-000071", "clientReferenceId": "de36424e-4266-4c25-b7ce-9accb7fd00ca", "resources": [ { "tenantId": "default", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "COMPLETED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.projectId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/015
Enum restriction check for project task creation API
Project Task
Create
API request to create a project task and perform check for enum values with invalid data for a JSON token.
Auth token of a distributor
Send a postman request to create a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a enum values with the invalid data.
We should be getting an error message that points to the relevant JSON token that does not accept the invalid data for enum values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "clientReferenceId": "2b7d0061-0ef9-4acd-a71d-5a8345feaec8", "resources": [ { "tenantId": "NDJASWFDJFNZS,DMFCZSM", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery in progress" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/016
Empty data check for project task creation API
Project Task
Create
API request to create a project task and perform check with empty string for a JSON token.
Auth token of a distributor
Send a postman request to create a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having an empty data.
We should be getting an error message that points to the relevant JSON token that does not accept empty data.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "clientReferenceId": "8bbe6769-d420-478e-8350-3de362958370", "resources": [ { "tenantId": "default", "productVariantId": "", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery in progress" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.resources[0].productVariantId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/017
NULL check for project task update API
Project Task
Update
API request to update a project task and perform NULL check for a JSON token.
Auth token of a distributor
Send a postman request to update a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a null data.
We should be getting an error message that points to the relevant JSON token that does not accept null values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "clientReferenceId": "fda31b10-296f-40c3-8254-5e7bb10c5eaa", "resources": [ { "tenantId": "default", "productVariantId": null, "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "COMPLETED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "NotNull.taskRequest.task.resources[0].productVariantId", "message": "must not be null", "description": null, "params": null } ] }
PASS
HLM/688/API/018
Minimum length criteria check for project task update API
Project Task
Update
API request to update a project task and perform check for min length for a JSON token.
Auth token of a distributor
Send a postman request to update a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having data less than the allowed minimum length.
We should be getting an error message that points to the relevant JSON token that accepts values within a minimum and maximum range.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-02-13-000019", "tenantId": "default", "clientReferenceId": "8070dbd8-d127-4d90-a6d9-51a35b57c9cb", "projectId": "1", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "df73be0f-dbf5-43d7-aab4-91e014c5a647", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "taskClientReferenceId": null, "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676280722118, "lastModifiedTime": 1676280722118 } }, { "tenantId": "default", "productVariantId": "PVAR-2023-01-04-000013", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": null, "createdDate": null, "address": { "id": "da9fddf6-f524-43f5-827a-fcfae2eedace", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 66.0, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": null, "label": null, "latitude": null, "longitude": null, "materializedPath": null } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 2, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676280722117, "lastModifiedTime": 1676280722117 }, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.projectId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/019
Maximum length criteria check for project task update API
Project Task
Update
API request to update a project task and perform check for max length for a JSON token.
Auth token of a distributor
Send a postman request to update a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having data more than the allowed minimum length.
We should be getting an error message that points to the relevant JSON token that accepts values within a minimum and maximum range.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-02-13-000019", "tenantId": "default", "clientReferenceId": "8070dbd8-d127-4d90-a6d9-51a35b57c9cb", "projectId": "13333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "df73be0f-dbf5-43d7-aab4-91e014c5a647", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-02-13-000019", "taskClientReferenceId": null, "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "t", "isDeleted": false, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676280722118, "lastModifiedTime": 1676280722118 } }, { "tenantId": "default", "productVariantId": "PVAR-2023-01-04-000013", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": null, "createdDate": null, "address": { "id": "da9fddf6-f524-43f5-827a-fcfae2eedace", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 66.0, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": null, "label": null, "latitude": null, "longitude": null, "materializedPath": null } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 2, "auditDetails": { "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "lastModifiedBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdTime": 1676280722117, "lastModifiedTime": 1676280722117 }, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.projectId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/020
Enum restriction check for project task update API
Project Task
Update
API request to update a project task and perform check for enum values with invalid data for a JSON token.
Auth token of a distributor
Send a postman request to update a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a enum values with the invalid data.
We should be getting an error message that points to the relevant JSON token that does not accept the invalid data for enum values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-20-003057", "tenantId": "dhgdeub", "clientReferenceId": "77e87697-7e32-4aae-b7c0-42c658703e4f", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "a982abb3-6a8b-448e-91e1-1cb629fc1f47", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-03-20-003057", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679311365761, "lastModifiedTime": 1679311365761 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "ecceaed3-6f39-4ba8-8cc6-ecb37ca4b30f", "tenantId": "default", "clientReferenceId": null, "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679311365760, "lastModifiedTime": 1679311365760 }, "status": "COMPLETED" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/021
Enum restriction check for project task update API
Project Task
Update
API request to update a project task and perform check for enum values with empty string for a JSON token.
Auth token of a distributor
Send a postman request to update a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a enum values with the empty data.
We should be getting an error message that points to the relevant JSON token that does not accept the empty data for enum values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-20-003057", "tenantId": "", "clientReferenceId": "77e87697-7e32-4aae-b7c0-42c658703e4f", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "a982abb3-6a8b-448e-91e1-1cb629fc1f47", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-03-20-003057", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679311365761, "lastModifiedTime": 1679311365761 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "ecceaed3-6f39-4ba8-8cc6-ecb37ca4b30f", "tenantId": "default", "clientReferenceId": null, "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 2, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679311365760, "lastModifiedTime": 1679311365760 }, "status": "COMPLETED" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/022
Empty data check for project task update API
Project Task
Update
API request to update a project task and perform check with empty string for a JSON token.
Auth token of a distributor
Send a postman request to update a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having an empty data.
We should be getting an error message that points to the relevant JSON token that does not accept empty data.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-20-003057", "tenantId": "default", "clientReferenceId": "", "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "projectBeneficiaryClientReferenceId": null, "resources": [ { "id": "a982abb3-6a8b-448e-91e1-1cb629fc1f47", "tenantId": "default", "clientReferenceId": null, "taskId": "PT-2023-03-20-003057", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679311365761, "lastModifiedTime": 1679311365761 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "ecceaed3-6f39-4ba8-8cc6-ecb37ca4b30f", "tenantId": "default", "clientReferenceId": null, "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 2, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679311365760, "lastModifiedTime": 1679311365760 }, "status": "COMPLETED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.clientReferenceId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/023
NULL check for project task delete API
Project Task
Delete
API request to delete a project task and perform NULL check for a JSON token.
Auth token of a distributor
Send a postman request to delete a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a null data.
We should be getting an error message that points to the relevant JSON token that does not accept null values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_delete' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003073", "tenantId": "default", "clientReferenceId": "851c93d4-306a-4763-9ded-ff36d2580c35", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "35d26455-57a5-40a4-94df-7a678221ec4c", "tenantId": "default", "clientReferenceId": "a67d2f74-7ca1-41c5-a3a6-ba790b6ccc49", "taskId": "PT-2023-03-21-003073", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery has been scheduled.", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679383065159, "lastModifiedTime": 1679383065159 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "b6f2dd51-2e3f-4b1a-aaf4-30588918738e", "tenantId": "default", "clientReferenceId": "a67d2f74-7ca1-41c5-a3a6-ba790b6ccc49", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679383065159, "lastModifiedTime": 1679383065159 }, "status": "SCHEDULED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "NotNull.taskRequest.task.address.type", "message": "must not be null", "description": null, "params": null } ] }
PASS
HLM/688/API/024
Minimum length criteria check for project task delete API
Project Task
Delete
API request to delete a project task and perform check for min length for a JSON token.
Auth token of a distributor
Send a postman request to delete a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having data less than the allowed minimum length.
We should be getting an error message that points to the relevant JSON token that accepts values within a minimum and maximum range.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_delete' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003074", "tenantId": "default", "clientReferenceId": "eaeda8fb-8461-4443-b785-1d1a66b64326", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "17f4cb58-0261-41f8-84eb-f9056c4ff6d0", "tenantId": "default", "clientReferenceId": "2759656e-e647-41a9-be28-3b10c6d45ffe", "taskId": "PT-2023-03-21-003074", "productVariantId": "P", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery in progress", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679383417410, "lastModifiedTime": 1679383417410 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "cb461f7e-6410-4576-8dde-046219e09d0f", "tenantId": "default", "clientReferenceId": "2759656e-e647-41a9-be28-3b10c6d45ffe", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679383417410, "lastModifiedTime": 1679383417410 }, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.resources[0].productVariantId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/025
Maximum length criteria check for project task delete API
Project Task
Delete
API request to delete a project task and perform check for max length for a JSON token.
Auth token of a distributor
Send a postman request to delete a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having data more than the allowed minimum length.
We should be getting an error message that points to the relevant JSON token that accepts values within a minimum and maximum range.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_delete' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003074", "tenantId": "default", "clientReferenceId": "eaeda8fb-8461-4443-b785-1d1a66b64326", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "17f4cb58-0261-41f8-84eb-f9056c4ff6d0", "tenantId": "default", "clientReferenceId": "2759656e-e647-41a9-be28-3b10c6d45ffe", "taskId": "PT-2023-03-21-003074", "productVariantId": "PVAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011VAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery in progress", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679383417410, "lastModifiedTime": 1679383417410 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "cb461f7e-6410-4576-8dde-046219e09d0f", "tenantId": "default", "clientReferenceId": "2759656e-e647-41a9-be28-3b10c6d45ffe", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679383417410, "lastModifiedTime": 1679383417410 }, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.resources[0].productVariantId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/026
Enum restriction check for project task delete API
Project Task
Delete
API request to delete a project task and perform check for enum values with invalid data for a JSON token.
Auth token of a distributor
Send a postman request to delete a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a enum values with the invalid data.
We should be getting an error message that points to the relevant JSON token that does not accept the invalid data for enum values.
NA
HLM/688/API/027
Enum restriction check for project task delete API
Project Task
Delete
API request to delete a project task and perform check for enum values with empty string for a JSON token.
Auth token of a distributor
Send a postman request to delete a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a enum values with the empty data.
We should be getting an error message that points to the relevant JSON token that does not accept the empty data for enum values.
NA
HLM/688/API/028
Empty data check for project task delete API
Project Task
Delete
API request to delete a project task and perform check with empty string for a JSON token.
Auth token of a distributor
Send a postman request to delete a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having an empty data.
We should be getting an error message that points to the relevant JSON token that does not accept empty data.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_delete' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003075", "tenantId": "", "clientReferenceId": "11caee44-23ba-48ca-897e-63d6b89de0e3", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "0994f07d-b0ff-41c8-bf42-e1144d3c0cd4", "tenantId": "default", "clientReferenceId": "d83d237d-1282-42fb-b30c-26ed59002ccf", "taskId": "PT-2023-03-21-003075", "productVariantId": "PVAR-2022-12-26-000011", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery has been scheduled.", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384030480, "lastModifiedTime": 1679384030480 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "cb71f896-95fa-4670-a0e4-f35404fa5cd1", "tenantId": "default", "clientReferenceId": "d83d237d-1282-42fb-b30c-26ed59002ccf", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 1, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679384030480, "lastModifiedTime": 1679384030480 }, "status": "SCHEDULED" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/029
NULL check for project task search API
Project Task
Search
API request to search a project task and perform NULL check for a JSON token.
Auth token of a distributor
Send a postman request to search a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a null data.
We should be getting an error message that points to the relevant JSON token that does not accept null values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=null&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": [ "PT-2023-02-13-000019" ], "clientReferenceId": [ "8070dbd8-d127-4d90-a6d9-51a35b57c9cb" ], "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "localityCode": "test_218f32cdca88", "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/030
Minimum length criteria check for project task search API
Project Task
Search
API request to search a project task and perform check for min length for a JSON token.
Auth token of a distributor
Send a postman request to search a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having data less than the allowed minimum length.
We should be getting an error message that points to the relevant JSON token that accepts values within a minimum and maximum range.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=default&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": [ "PT-2023-02-13-000019" ], "clientReferenceId": [ "8070dbd8-d127-4d90-a6d9-51a35b57c9cb" ], "projectId": "1", "projectBeneficiaryId": "PTB-2023-02-10-000071", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "localityCode": "test_218f32cdca88", "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskSearchRequest.task.projectId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/031
Maximum length criteria check for project task search API
Project Task
Search
API request to search a project task and perform check for max length for a JSON token.
Auth token of a distributor
Send a postman request to search a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having data more than the allowed minimum length.
We should be getting an error message that points to the relevant JSON token that accepts values within a minimum and maximum range.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=default&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": [ "PT-2023-02-13-000019" ], "clientReferenceId": [ "8070dbd8-d127-4d90-a6d9-51a35b57c9cb" ], "projectId": "1333333333333333333333333333333333333333333333333333333333333333333333", "projectBeneficiaryId": "PTB-2023-02-10-000071", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "localityCode": "test_218f32cdca88", "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskSearchRequest.task.projectId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/032
Enum restriction check for project task search API
Project Task
Search
API request to search a project task and perform check for enum values with invalid data for a JSON token.
Auth token of a distributor
Send a postman request to search a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a enum values with the invalid data.
We should be getting an error message that points to the relevant JSON token that does not accept the invalid data for enum values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=SIJDSiJDIOJn&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": [ "PT-2023-02-13-000019" ], "clientReferenceId": [ "8070dbd8-d127-4d90-a6d9-51a35b57c9cb" ], "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "localityCode": "test_218f32cdca88", "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/033
Enum restriction check for project task search API
Project Task
Search
API request to search a project task and perform check for enum values with empty string for a JSON token.
Auth token of a distributor
Send a postman request to search a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having a enum values with the empty data.
We should be getting an error message that points to the relevant JSON token that does not accept the empty data for enum values.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": [ "PT-2023-02-13-000019" ], "clientReferenceId": [ "8070dbd8-d127-4d90-a6d9-51a35b57c9cb" ], "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "localityCode": "test_218f32cdca88", "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/034
Empty data check for project task search API
Project Task
Search
API request to update a project task and perform check with empty string for a JSON token.
Auth token of a distributor
Send a postman request to search a project task with the auth token of a distributor. The request must have one of the JSON tokens to be having an empty data.
We should be getting an error message that points to the relevant JSON token that does not accept empty data.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": [ "PT-2023-02-13-000019" ], "clientReferenceId": [ "8070dbd8-d127-4d90-a6d9-51a35b57c9cb" ], "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-000071", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "localityCode": "test_218f32cdca88", "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "CustomException", "message": "Not authorized to access this resource", "description": "Not authorized to access this resource", "params": null } ] }
PASS
HLM/688/API/035
Invalid household / individual as a beneficiary
Project Task
Create
Create a project task for a household based project with a the beneficiaryId which has not been identified as the current project's beneficiary
Auth token of a distributor
Send a postman request for creating a project task such that the beneficiaryId being used has not been identified as the current project's beneficiary.
We should get relevant error message.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_search?limit=100&offset=0&tenantId=default&includeDeleted=true' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": [ "PT-2023-02-13-000019" ], "clientReferenceId": [ "8070dbd8-d127-4d90-a6d9-51a35b57c9cb" ], "projectId": "13", "projectBeneficiaryId": "PTB-2023-02-10-1111", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "localityCode": "test_218f32cdca88", "status": "IN_PROGRESS" } }'
{ "ResponseInfo": { "apiId": null, "ver": null, "ts": 1679313602157, "resMsgId": null, "msgId": null, "status": "successful" }, "Tasks": [] }
PASS
HLM/688/API/037
Invalid household / individual as a beneficiary
Project Task
Update
Update a project task for a household based project with a the beneficiaryId which has not been identified as the current project's beneficiary
Auth token of a distributor
Send a postman request for updating a project task such that the beneficiaryId being used has not been identified as the current project's beneficiary.
We should get relevant error message.
NA
HLM/688/API/039
Project beneficiary does not belong to same project
Project Task
Create
Create a project task for a projectA with beneficiary who has been identified with projectB.
Auth token of a distributor
Send a postman request to create a project task such that the projectId is that of projectA and beneficiaryId is that of projectB.
We should get relevant error message.
NA
HLM/688/API/040
Project beneficiary does not belong to same project
Project Task
Update
Update a project task for a projectA with beneficiary who has been identified with projectB.
Auth token of a distributor
Send a postman request to update a project task such that the projectId is that of projectA and beneficiaryId is that of projectB.
We should get relevant error message.
NA
HLM/688/API/041
Sending multiple duplicate productVariantId
Project Task
Create
Create a project task with multiple duplicate productVariantId data.
Auth token of a distributor
Send a postman request to create project task with multiple duplicate productVariantId data.
We should get relevant error message.
NA
HLM/688/API/042
Sending multiple duplicate productVariantId
Project Task
Update
Update a project task with multiple duplicate productVariantId data.
Auth token of a distributor
Send a postman request to update project task with multiple duplicate productVariantId data.
We should get relevant error message.
NA
HLM/688/API/043
Invalid productVariantId
Project Task
Create
Create a project task with an invalid productVariantId
Auth token of a distributor
Send a postman request to create a project task with an invalid productVariantId
We should get relevant error message.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "clientReferenceId": "c698501f-e4de-4fa4-8898-9d5aed1e7200", "resources": [ { "tenantId": "default", "clientReferenceId": "c46dd40d-031c-462f-b16a-a1dd3adb62e5", "taskClientReferenceId": "c46dd40d-031c-462f-b16a-a1dd3adb62e5", "productVariantId": "P", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery in progress" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "clientReferenceId": "c46dd40d-031c-462f-b16a-a1dd3adb62e5", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.resources[0].productVariantId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/044
Invalid productVariantId
Project Task
Update
Update a project task with an invalid productVariantId
Auth token of a distributor
Send a postman request to create a project task with an invalid productVariantId
We should get relevant error message.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003070", "tenantId": "default", "clientReferenceId": "efea655a-158a-4d77-ba6a-0c0f6f5dafd8", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "resources": [ { "id": "b2f8fe8b-1d3c-4abb-8359-aa2dc18ffda9", "tenantId": "default", "clientReferenceId": "3d37364e-7e3c-469f-a130-98a115645feb", "taskId": "PT-2023-03-21-003070", "productVariantId": "PVAR-2022-12-26-000011AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001AR-2022-12-26-00001", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery in progress", "isDeleted": false, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679380316027, "lastModifiedTime": 1679380316027 } } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "4afb8b7a-b823-420e-899c-6b3624d57c0e", "tenantId": "default", "clientReferenceId": "3d37364e-7e3c-469f-a130-98a115645feb", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 3, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679380316026, "lastModifiedTime": 1679380316026 }, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.resources[0].productVariantId", "message": "size must be between 2 and 64", "description": null, "params": null } ] }
PASS
HLM/688/API/045
Without sending resources
Project Task
Create
Create a project task without sending the resources array.
Auth token of a distributor
Send a postman request to create a project task without sending the resources array.
We should get relevant error message.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "clientReferenceId": "546b8cf0-3c37-4cb2-acfd-7b8b3d15e88e", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "clientReferenceId": "f03a8f65-eb6a-436e-9e5c-e99ae34a21ad", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "COMPLETED" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.resources", "message": "size must be between 1 and 2147483647", "description": null, "params": null } ] }
PASS
HLM/688/API/046
Without sending resources
Project Task
Update
Update a project task without sending the resources array.
Auth token of a distributor
Send a postman request to update a project task without sending the resources array.
We should get relevant error message.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "id": "PT-2023-03-21-003070", "tenantId": "default", "clientReferenceId": "efea655a-158a-4d77-ba6a-0c0f6f5dafd8", "projectId": "13", "projectBeneficiaryId": null, "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "id": "4afb8b7a-b823-420e-899c-6b3624d57c0e", "tenantId": "default", "clientReferenceId": "3d37364e-7e3c-469f-a130-98a115645feb", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "boundaryType": null, "boundary": null, "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "isDeleted": false, "rowVersion": 3, "auditDetails": { "createdBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "lastModifiedBy": "6af8acab-cb2f-472b-8def-aab27864ad16", "createdTime": 1679380316026, "lastModifiedTime": 1679380316026 }, "status": "IN_PROGRESS" } }'
{ "ResponseInfo": null, "Errors": [ { "id": null, "parentId": null, "code": "Size.taskRequest.task.resources", "message": "size must be between 1 and 2147483647", "description": null, "params": null } ] }
PASS
HLM/688/API/047
Multiple valid resources
Project Task
Create
Create a project task with multiple valid elements in the resources array.
Auth token of a distributor
Send a postman request to create a project task with multiple valid elements in the resources array.
The project task should be created.
NA
HLM/688/API/048
Multiple valid resources
Project Task
Update
Update a project task with multiple valid elements in the resources array.
Auth token of a distributor
Send a postman request to update a project task with multiple valid elements in the resources array.
The project task should be updated.
NA
HLM/688/API/049
One valid and one invalid productVariantId
Project Task
Create
Create a project task with 1 valid and 1 invalid element in the resources array.
Auth token of a distributor
Send a postman request to create a project task with 1 valid and 1 invalid element in the resources array.
The project task should not be created.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_create' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "clientReferenceId": "06b43d02-878d-4c05-b1aa-49ea350a5cfa", "resources": [ { "tenantId": "default", "clientReferenceId": "a37f1a6f-e592-40a5-864b-9549480e9961", "taskClientReferenceId": "a37f1a6f-e592-40a5-864b-9549480e9961", "productVariantId": "PVAR-2022-12-26-000011", "PVAR-2022-12-26-000000", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery has been scheduled." } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "clientReferenceId": "a37f1a6f-e592-40a5-864b-9549480e9961", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "SCHEDULED" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "JsonParseException", "message": "Bad request", "description": null, "params": null } ] }
PASS
HLM/688/API/050
One valid and one invalid productVariantId
Project Task
Update
Update a project task with 1 valid and 1 invalid element in the resources array.
Auth token of a distributor
Send a postman request to update a project task with 1 valid and 1 invalid element in the resources array.
The project task should not be created.
curl --location --request POST 'https://health-qa.digit.org/project/task/v1/_update' \ --header 'Content-Type: application/json' \ --data-raw '{ "RequestInfo": { "authToken": "150ff512-3737-4066-861b-d4edebd24323" }, "Task": { "tenantId": "default", "projectId": "13", "projectBeneficiaryClientReferenceId": "efafa82e-7c1c-412a-b69a-691f9acf53bb", "clientReferenceId": "444a590d-1d03-4111-85ca-f8869db06a1a", "resources": [ { "tenantId": "default", "clientReferenceId": "827e8589-76af-43b5-ac34-6f563fa83a8f", "taskClientReferenceId": "827e8589-76af-43b5-ac34-6f563fa83a8f", "productVariantId": "PVAR-2022-12-26-000011", "PVAR-2022-12-26-000000", "quantity": 2, "isDelivered": true, "deliveryComment": "Service delivery is completed" } ], "plannedStartDate": 1675582245, "plannedEndDate": 1707723045, "actualStartDate": 1707550245, "actualEndDate": 1707590245, "createdBy": "56b5c31b-b843-426c-b8d5-64a4c80286aa", "createdDate": 1707550245, "address": { "clientReferenceId": "827e8589-76af-43b5-ac34-6f563fa83a8f", "tenantId": "default", "doorNo": "test_4b2c5ad43e11", "latitude": 86.78, "longitude": 77.12, "locationAccuracy": 65.67, "type": "PERMANENT", "addressLine1": "test_2512bdc41cb2", "addressLine2": "test_afa1eadcb4f0", "landmark": "test_d7ee474cb6da", "city": "test_932d23b00265", "pincode": "test_637fa8890171", "buildingName": "test_90f36fdaf51d", "street": "test_105ae34b63c6", "locality": { "code": "test_218f32cdca88", "name": "test_66187cb44cb7", "label": "test_fd101b472626", "latitude": "test_1b1c8cbc83c3", "longitude": "test_f42b04a12d34", "materializedPath": "test_e5388dd34db2" } }, "additionalFields": { "schema": "test_5266efb5bcd9", "version": 24, "fields": [ { "key": "test_b9aa6f50056e", "value": "test_dcfafb1be02f" } ] }, "rowVersion": 1, "status": "COMPLETED" } }'
{ "ResponseInfo": null, "Errors": [ { "code": "JsonParseException", "message": "Bad request", "description": null, "params": null } ] }
PASS
https://digit-discuss.atlassian.net/issues/?filter=10675
Regression status: Completed.
Find the execution report below:
Health Campaign Management v1.2: The frontline worker’s App includes 8 new features that allow the frontline teams to perform their tasks efficiently even when offline.
To learn more about the DIGIT Health Platform and the Health Campaign Management (HCM) product, click .
Click to see feedback from the UX audit.
Click for the product roadmap.
Click for the success metrics.
Flow/Screen/ Instance
Issue
Priority
Assignee
Dev Status
QA Status
Comments
Table Component
- The table container has placement issues and width issues. - The width of the first column should be configurable independently, reduced in dosage screens.
This has to be picked up as a part if building new components.
Radio
Size and interaction of the radio.
This has to be picked up as a part if building new components.
Input field
Alignment of help text and validations.
This has to be picked up as a part if building new components.
Checkbox
Has to be checked after pull is done.
Rachana Singh is working on this.
Dropdown in Individual Details
Has to be a simple dropdown and not a searchable dropdown.
Add the dropdown for search.
Stepper
The stepper overlaps the container. Have to be checked.
Referral Details
Inconsistency in spacing between fields, and the left padding of fields to be fixed.
Not track.
Facility Search Screen
Search results to follow the Figma design.
Component base change is required.
Warehouse Details
Clicking on the search field should redirect to the next page.
Not track.
Inventory Dropdowns
Dropdown alignments to be fixed.
Custom dropdown needs to be add, besides not track this screen.
Warehouse search fields
Should not be grey.
Not track, component itself need to be changed.
All comments input
Should be text area.
Not track for all screen, fixed for registraton beneficiary, stock details.
Complaint details
Typography to be checked.
Not track.
Complaint inbox
Button, spacing, and typography to be checked.
Not track.
Complaint number
Complaint number should not be orange primary unless its generated and it's a link.
Not track.
View Reports
Side padding to be 16px.
Not track.
Reports - Stock Received
Heading to be left aligned.
Not track.
Reports Module
The whole module to be fixed in terms of spacing, buttons, padding, and typography.
Not track.
Module
Functionality
Registration
Mobile app that enables the field teams to easily register eligible beneficiaries with built-in checks that enforce data collection protocols and validations to avoid data entry errors. The new features added are:
The ability to support voucher-based registration: Users can now scan and link a 2D code voucher to a beneficiary (household or an individual) while registering the beneficiary.
Service Delivery
Mobile app to enable the field teams to search for eligible beneficiaries and deliver the healthcare intervention with built in checks that enforce data collection protocols and validations to avoid data entry errors.
Ability to search registered beneficiaries and deliver benefits (products/services) for a multi round campaign- Supporting the following use cases is now possible:
Single Cycle- Single Dose
Single Cycle- Multiple Doses
Multiple Cycles- Single Dose
Multiple Cycle- Multiple Doses
Ability to scan and redeem a voucher during distribution.
Ability to search and filter the beneficiary list based on proximity: Based on distance of the user from the registered beneficiary.
Provide decision support to the use by automatically calculating the number of benefits to be delivered based on configured formula.
Ability to track and record side effects for a campaign beneficiary post resource delivery.
Ability to track and manage beneficiary referrals.
Automated eligibility check for campaign beneficiary: Based on configured parameters, the application determines in the registered individual is eligible for the campaign.
Inventory Management
Mobile app that enables the field staff to capture inflow and outflow of resources received from the warehouse or the supervisors.
Last-mile tracking of resources is now possible and programme supervisors have visibility of stock movement across the supply chain.
The ability to record stock received from the warehouse/ supervisor as well as issue to other frontline teams.
The ability to record stocks that were lost and damaged during field operations.
Sync
Users can now download and reuse beneficiary data synced by other users for one or more boundaries.