11@Delete_Feature @functional
22Feature : Delete an immunization of a patient
33
4- @vaccine_type_RSV @patient_id_Random @supplier_name_RAVS
5- Scenario : Verify that the Delete API will be successful with all the valid parameters
6- Given I have created a valid vaccination record
7- When Send a delete for Immunization event created
8- Then The request will be successful with the status code '204'
9- And The X-Request-ID and X-Correlation-ID keys in header will populate correctly
10- And The imms event table will be populated with the correct data for 'deleted' event
11- And The delta table will be populated with the correct data for deleted event
4+ @vaccine_type_RSV @patient_id_Random @supplier_name_RAVS
5+ Scenario : Verify that the Delete API will be successful with all the valid parameters
6+ Given I have created a valid vaccination record
7+ When Send a delete for Immunization event created
8+ Then The request will be successful with the status code '204'
9+ And The X-Request-ID and X-Correlation-ID keys in header will populate correctly
10+ And The imms event table will be populated with the correct data for 'deleted' event
11+ And The delta table will be populated with the correct data for deleted event
1212
13- @vaccine_type_RSV @patient_id_Random @supplier_name_RAVS
14- Scenario : Verify that the Delete event is not coming in Get Search API response
15- Given I have created a valid vaccination record
16- When Send a delete for Immunization event created
17- Then The request will be successful with the status code '204'
18- And Deleted Immunization event will not be present in Get method Search API response
13+ @vaccine_type_RSV @patient_id_Random @supplier_name_RAVS
14+ Scenario : Verify that the Delete event is not coming in Get Search API response
15+ Given I have created a valid vaccination record
16+ When Send a delete for Immunization event created
17+ Then The request will be successful with the status code '204'
18+ And Deleted Immunization event will not be present in Get method Search API response
1919
20- @vaccine_type_RSV @patient_id_Random @supplier_name_RAVS
21- Scenario : Verify that the Delete event is not coming in Post Search API response
22- Given I have created a valid vaccination record
23- When Send a delete for Immunization event created
24- Then The request will be successful with the status code '204'
25- And Deleted Immunization event will not be present in Post method Search API response
20+ @vaccine_type_RSV @patient_id_Random @supplier_name_RAVS
21+ Scenario : Verify that the Delete event is not coming in Post Search API response
22+ Given I have created a valid vaccination record
23+ When Send a delete for Immunization event created
24+ Then The request will be successful with the status code '204'
25+ And Deleted Immunization event will not be present in Post method Search API response
2626
27- @vaccine_type_RSV @patient_id_Random
28- Scenario : Verify that the Delete event request will fail with unauthorized access for MAVIS supplier
29- Given valid vaccination record is created by 'RAVS' supplier
30- When Send a delete for Immunization event created for the above created event is send by 'MAVIS'
31- Then The request will be successful with the status code '403'
32- And The Response JSONs should contain correct error message for 'unauthorized_access' access
27+ @vaccine_type_RSV @patient_id_Random
28+ Scenario : Verify that the Delete event request will fail with unauthorized access for MAVIS supplier
29+ Given valid vaccination record is created by 'RAVS' supplier
30+ When Send a delete for Immunization event created for the above created event is send by 'MAVIS'
31+ Then The request will be successful with the status code '403'
32+ And The Response JSONs should contain correct error message for 'unauthorized_access' access
3333
34- @vaccine_type_RSV @patient_id_Random @supplier_name_RAVS
35- Scenario : Verify that the Delete event request will fail with Not found error
36- When Send a delete for Immunization event created with invalid Imms Id
37- Then The request will be successful with the status code '404'
38- And The Response JSONs should contain correct error message for Imms_id 'not_found'
34+ @vaccine_type_RSV @patient_id_Random @supplier_name_RAVS
35+ Scenario : Verify that the Delete event request will fail with Not found error
36+ When Send a delete for Immunization event created with invalid Imms Id
37+ Then The request will be successful with the status code '404'
38+ And The Response JSONs should contain correct error message for Imms_id 'not_found'
39+
40+ @smoke
41+ @vaccine_type_ROTAVIRUS @patient_id_Random @supplier_name_TPP
42+ Scenario : Verify that the Delete request will fail when record is already soft deleted
43+ Given I have created a valid vaccination record
44+ When Send a delete for Immunization event created
45+ Then The request will be successful with the status code '204'
46+ And The X-Request-ID and X-Correlation-ID keys in header will populate correctly
47+ And The imms event table will be populated with the correct data for 'deleted' event
48+ And The delta table will be populated with the correct data for deleted event
49+ When same delete request is triggered again
50+ Then The request will be unsuccessful with the status code '404'
51+ And The Response JSONs should contain correct error message for Imms_id 'not_found'
0 commit comments