Skip to content

Commit f9e1ea8

Browse files
committed
Update user and group ids in behat tests
Pinging the redmine server for the health check create a new AnonymousUser with id 4 refs kbsali#410
1 parent 097ac2e commit f9e1ea8

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

tests/Behat/features/groups.feature

+14-14
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Feature: Interacting with the REST API for groups
1717
"""
1818
And the returned data has proterties with the following data
1919
| property | value |
20-
| id | 4 |
20+
| id | 5 |
2121
| name | Test Group |
2222

2323
Scenario: Listing of zero groups
@@ -52,7 +52,7 @@ Feature: Interacting with the REST API for groups
5252
"""
5353
And the returned data "groups.0" property contains the following data
5454
| property | value |
55-
| id | 4 |
55+
| id | 5 |
5656
| name | Test Group |
5757

5858
Scenario: Listing names of all groups
@@ -69,16 +69,16 @@ Feature: Interacting with the REST API for groups
6969
And the returned data contains "5" items
7070
And the returned data contains the following data
7171
| property | value |
72-
| 4 | Test Group D |
73-
| 5 | Test Group E |
74-
| 6 | Test Group C |
75-
| 7 | Test Group B |
76-
| 8 | Test Group A |
72+
| 5 | Test Group D |
73+
| 6 | Test Group E |
74+
| 7 | Test Group C |
75+
| 8 | Test Group B |
76+
| 9 | Test Group A |
7777

7878
Scenario: Showing a specific group
7979
Given I have a "NativeCurlClient" client
8080
And I create a group with name "Test Group"
81-
When I show the group with id "4"
81+
When I show the group with id "5"
8282
Then the response has the status code "200"
8383
And the response has the content type "application/json"
8484
And the returned data has only the following properties
@@ -93,7 +93,7 @@ Feature: Interacting with the REST API for groups
9393
"""
9494
And the returned data "group" property contains the following data
9595
| property | value |
96-
| id | 4 |
96+
| id | 5 |
9797
| name | Test Group |
9898

9999
@error
@@ -110,7 +110,7 @@ Feature: Interacting with the REST API for groups
110110
And I create a group with the following data
111111
| property | value |
112112
| name | Test Group |
113-
When I update the group with id "4" with the following data
113+
When I update the group with id "5" with the following data
114114
| property | value |
115115
| name | new group name |
116116
Then the response has the status code "204"
@@ -121,7 +121,7 @@ Feature: Interacting with the REST API for groups
121121
Scenario: Adding an user to a group
122122
Given I have a "NativeCurlClient" client
123123
And I create a group with name "Test Group"
124-
When I add the user with id "1" to the group with id "4"
124+
When I add the user with id "1" to the group with id "5"
125125
Then the response has the status code "204"
126126
And the response has an empty content type
127127
And the response has the content ""
@@ -130,8 +130,8 @@ Feature: Interacting with the REST API for groups
130130
Scenario: Removing an user from a group
131131
Given I have a "NativeCurlClient" client
132132
And I create a group with name "Test Group"
133-
And I add the user with id "1" to the group with id "4"
134-
When I remove the user with id "1" from the group with id "4"
133+
And I add the user with id "1" to the group with id "5"
134+
When I remove the user with id "1" from the group with id "5"
135135
Then the response has the status code "204"
136136
And the response has an empty content type
137137
And the response has the content ""
@@ -140,7 +140,7 @@ Feature: Interacting with the REST API for groups
140140
Scenario: Deleting a group
141141
Given I have a "NativeCurlClient" client
142142
And I create a group with name "Test Group"
143-
When I remove the group with id "4"
143+
When I remove the group with id "5"
144144
Then the response has the status code "204"
145145
And the response has an empty content type
146146
And the response has the content ""

tests/Behat/features/user.feature

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feature: Interacting with the REST API for users
3434
"""
3535
And the returned data has proterties with the following data
3636
| property | value |
37-
| id | 4 |
37+
| id | 5 |
3838
| login | username |
3939
| admin | false |
4040
| firstname | first |
@@ -53,7 +53,7 @@ Feature: Interacting with the REST API for users
5353
| firstname | first |
5454
| lastname | last |
5555
| mail | mail@example.com |
56-
When I update the user with id "4" and the following data
56+
When I update the user with id "5" and the following data
5757
| property | value |
5858
| firstname | new_first |
5959
| lastname | new_last |
@@ -121,7 +121,7 @@ Feature: Interacting with the REST API for users
121121
| firstname | first |
122122
| lastname | last |
123123
| mail | mail@example.com |
124-
When I remove the user with id "4"
124+
When I remove the user with id "5"
125125
Then the response has the status code "204"
126126
And the response has an empty content type
127127
And the response has the content ""

0 commit comments

Comments
 (0)