diff --git a/features/backend/case_scheduler/case_scheduler.feature b/features/backend/case_scheduler/case_scheduler.feature deleted file mode 100644 index e3a48c3a4..000000000 --- a/features/backend/case_scheduler/case_scheduler.feature +++ /dev/null @@ -1,83 +0,0 @@ -@ProcessMakerMichelangelo @RestAPI -Feature: Case Scheduler Resources - - Background: - Given that I have a valid access_token - - Scenario: Create a new case scheduler for a project - Given POST this data: - """ - { - "sch_option": "3", - "sch_name": "Test scheduler #1", - "sch_del_user_name": "admin", - "sch_del_user_pass": "admin", - "tas_uid": "46941969352af5be2ab3f39001216717", - "sch_start_time": "18:00", - "sch_start_date": "2014-01-20", - "sch_end_date": "2014-01-20", - "sch_every_days": "", - "sch_week_days": "", - "sch_start_day": "1", - "sch_start_day_opt_1": "2", - "sch_start_day_opt_2": "", - "sch_months": "1|6|12", - "sch_repeat_every": "", - "sch_repeat_until": "" - } - """ - And I request "project/1265557095225ff5c688f46031700471/case-scheduler" - Then the response status code should be 201 - And the response charset is "UTF-8" - And the content type is "application/json" - And the type is "object" - And store "sch_uid" in session array as variable "sch_uid" - - Scenario: Get a List of case scheduler of a project - Given I request "project/1265557095225ff5c688f46031700471/case-schedulers" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the content type is "application/json" - And the type is "array" - And the response has 1 record - - Scenario: Get a single case scheduler of a project - Given that I want to get a resource with the key "sch_uid" stored in session array - And I request "project/1265557095225ff5c688f46031700471/case-scheduler" - Then the response status code should be 200 - And the content type is "application/json" - And the type is "object" - - Scenario: Update a case scheduler for a project - Given PUT this data: - """ - { - "sch_name": "Test scheduler #1 modify", - "sch_del_user_name": "admin", - "sch_del_user_pass": "admin", - "tas_uid": "46941969352af5be2ab3f39001216717", - "sch_start_time": "20:00", - "sch_start_date": "2014-02-01", - "sch_end_date": "2014-02-01", - "sch_every_days": "", - "sch_week_days": "", - "sch_start_day": "1", - "sch_start_day_opt_1": "2", - "sch_start_day_opt_2": "", - "sch_months": "1|6|12", - "sch_repeat_every": "", - "sch_repeat_until": "" - } - """ - And that I want to update a resource with the key "sch_uid" stored in session array - And I request "project/1265557095225ff5c688f46031700471/case-scheduler" - And the content type is "application/json" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the type is "object" - - Scenario: Delete a case scheduler of a project - Given that I want to delete a resource with the key "sch_uid" stored in session array - And I request "project/1265557095225ff5c688f46031700471/case-scheduler" - Then the response status code should be 200 - And the response charset is "UTF-8" \ No newline at end of file diff --git a/features/backend/events/event.feature b/features/backend/events/event.feature deleted file mode 100644 index 10808acc7..000000000 --- a/features/backend/events/event.feature +++ /dev/null @@ -1,96 +0,0 @@ -@ProcessMakerMichelangelo @RestAPI -Feature: Events Resources - - @1: TEST FOR GET EVENTS /---------------------------------------------------------------------- - Scenario: List all the events (result 0 events) - Given that I have a valid access_token - And I request "project/251815090529619a99a2bf4013294414/events" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the response has 0 record - - - @2: TEST FOR POST EVENT /---------------------------------------------------------------------- - Scenario: Create a new event - Given that I have a valid access_token - And POST this data: - """ - { - "evn_description": "DE BEHAT", - "evn_status": "ACTIVE", - "evn_action": "SEND_MESSAGE", - "evn_related_to": "SINGLE", - "tas_uid": "97192372152a5c78f04a794095806311", - "evn_tas_uid_from": "97192372152a5c78f04a794095806311", - "evn_tas_estimated_duration": 1, - "evn_time_unit": "DAYS", - "evn_when": 1, - "evn_when_occurs": "AFTER_TIME", - "tri_uid": "75916963152cc6ab085a704081670580" - } - """ - And I request "project/251815090529619a99a2bf4013294414/event" - Then the response status code should be 201 - And store "evn_uid" in session array - - @3: TEST FOR GET EVENTS /---------------------------------------------------------------------- - Scenario: List all the events (result 1 event) - Given that I have a valid access_token - And I request "project/251815090529619a99a2bf4013294414/events" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the response has 1 record - - @4: TEST FOR PUT EVENT /----------------------------------------------------------------------- - Scenario: Update a event - Given that I have a valid access_token - And PUT this data: - """ - { - "evn_description": "change description", - "evn_status": "ACTIVE", - "evn_action": "SEND_MESSAGE", - "evn_related_to": "SINGLE", - "tas_uid": "97192372152a5c78f04a794095806311", - "evn_tas_uid_from": "97192372152a5c78f04a794095806311", - "evn_tas_estimated_duration": 1, - "evn_time_unit": "DAYS", - "evn_when": 1, - "evn_when_occurs": "AFTER_TIME", - "tri_uid": "75916963152cc6ab085a704081670580" - } - """ - And that I want to update a resource with the key "evn_uid" stored in session array - And I request "project/251815090529619a99a2bf4013294414/event" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the type is "object" - - - @5: TEST FOR GET EVENT /----------------------------------------------------------------------- - Scenario: Get a event (with change in "evn_description") - Given that I have a valid access_token - And that I want to get a resource with the key "evn_uid" stored in session array - And I request "project/251815090529619a99a2bf4013294414/event" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the type is "object" - And that "evn_description" is set to "change description" - - - @6: TEST FOR DELETE EVENT /----------------------------------------------------------------------- - Scenario: Delete a event - Given that I have a valid access_token - And that I want to delete a resource with the key "evn_uid" stored in session array - And I request "project/251815090529619a99a2bf4013294414/event" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the type is "object" - - @7: TEST FOR GET EVENTS /---------------------------------------------------------------------- - Scenario: List all the events (result 0 events) - Given that I have a valid access_token - And I request "project/251815090529619a99a2bf4013294414/events" - Then the response status code should be 200 - And the response charset is "UTF-8" - And the response has 0 record \ No newline at end of file