Skip to content

Commit acfbf10

Browse files
committed
Post requests to endpoint with invalid post ID
1 parent 6858924 commit acfbf10

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/test/java/com/typicode/jsonplaceholder/features/Posts.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,11 @@ Feature: Posts Endpoint
176176
| 101 |
177177
| -1 |
178178

179+
Scenario Outline: Update post with invalid ID - post #<ID>
180+
When I make a PUT request with an empty body to the Posts endpoint with a path parameter of <ID>
181+
Then the response has a status code of 500
182+
Examples:
183+
| ID |
184+
| 0 |
185+
| 101 |
186+
| -1 |

0 commit comments

Comments
 (0)