|
| 1 | +@time_entry_activity |
| 2 | +Feature: Interacting with the REST API for time entry activities |
| 3 | + In order to interact with REST API for time entry activities |
| 4 | + As a user |
| 5 | + I want to make sure the Redmine server replies with the correct response |
| 6 | + |
| 7 | + Scenario: Listing of zero time entry activities |
| 8 | + Given I have a "NativeCurlClient" client |
| 9 | + When I list all time entry activities |
| 10 | + Then the response has the status code "200" |
| 11 | + And the response has the content type "application/json" |
| 12 | + And the returned data has only the following properties |
| 13 | + """ |
| 14 | + time_entry_activities |
| 15 | + """ |
| 16 | + And the returned data "time_entry_activities" property is an array |
| 17 | + And the returned data "time_entry_activities" property contains "0" items |
| 18 | + |
| 19 | + @wip |
| 20 | + Scenario: Listing of multiple time entry activities |
| 21 | + Given I have a "NativeCurlClient" client |
| 22 | + And I have a time entry activiy with name "Development" |
| 23 | + And I have a time entry activiy with name "Support" |
| 24 | + When I list all time entry activities |
| 25 | + Then the response has the status code "200" |
| 26 | + And the response has the content type "application/json" |
| 27 | + And the returned data has only the following properties |
| 28 | + """ |
| 29 | + time_entry_activities |
| 30 | + """ |
| 31 | + And the returned data "time_entry_activities" property is an array |
| 32 | + And the returned data "time_entry_activities" property contains "2" items |
| 33 | + And the returned data "time_entry_activities.0" property is an array |
| 34 | + And the returned data "time_entry_activities.0" property has only the following properties |
| 35 | + """ |
| 36 | + id |
| 37 | + name |
| 38 | + is_default |
| 39 | + active |
| 40 | + """ |
| 41 | + And the returned data "time_entry_activities.0" property contains the following data |
| 42 | + | property | value | |
| 43 | + | id | 1 | |
| 44 | + | name | Development | |
| 45 | + | is_default | false | |
| 46 | + | active | true | |
| 47 | + And the returned data "time_entry_activities.1" property is an array |
| 48 | + And the returned data "time_entry_activities.1" property has only the following properties |
| 49 | + """ |
| 50 | + id |
| 51 | + name |
| 52 | + is_default |
| 53 | + active |
| 54 | + """ |
| 55 | + And the returned data "time_entry_activities.1" property contains the following data |
| 56 | + | property | value | |
| 57 | + | id | 2 | |
| 58 | + | name | Support | |
| 59 | + | is_default | false | |
| 60 | + | active | true | |
| 61 | + |
0 commit comments