Skip to content

Commit 8dce6dd

Browse files
committed
Add get all test for other endpoints
1 parent 7b2e735 commit 8dce6dd

File tree

6 files changed

+3542
-0
lines changed

6 files changed

+3542
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Feature: Albums Endpoint
2+
3+
Scenario: Get all albums
4+
When I make a GET request to the Albums endpoint
5+
Then the response has a status code of 200
6+
And the response body follows the "MultipleAlbums" JSON schema
7+
And the results array contains 100 elements
8+
And the response body matches the "AllAlbums" expected response
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Feature: Comments Endpoint
2+
3+
Scenario: Get all comments
4+
When I make a GET request to the Comments endpoint
5+
Then the response has a status code of 200
6+
And the response body follows the "MultipleComments" JSON schema
7+
And the results array contains 500 elements
8+
And the response body matches the "AllComments" expected response
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Feature: Photos Endpoint
2+
3+
Scenario: Get all photos
4+
When I make a GET request to the Photos endpoint
5+
Then the response has a status code of 200
6+
And the response body follows the "MultiplePhotos" JSON schema
7+
And the results array contains 5000 elements
8+
And the response body matches the "AllPhotos" expected response
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Feature: ToDos Endpoint
2+
3+
Scenario: Get all todos
4+
When I make a GET request to the ToDos endpoint
5+
Then the response has a status code of 200
6+
And the response body follows the "MultipleToDos" JSON schema
7+
And the results array contains 200 elements
8+
And the response body matches the "AllToDos" expected response
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Feature: Users Endpoint
2+
3+
Scenario: Get all users
4+
When I make a GET request to the Users endpoint
5+
Then the response has a status code of 200
6+
And the response body follows the "MultipleUsers" JSON schema
7+
And the results array contains 10 elements
8+
And the response body matches the "AllUsers" expected response

0 commit comments

Comments
 (0)