generated from PeopleForBikes/bna-mechanics-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds test scenarios for the `/price` endpoint. Drive-by: - Fixes the new ratings endpoint. Signed-off-by: Rémy Greinhofer <[email protected]>
- Loading branch information
Showing
5 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Queries the first page of the fargate prices. | ||
GET {{host}}/prices/fargate | ||
|
||
HTTP 200 | ||
[Asserts] | ||
jsonpath "$" count > 0 | ||
[Captures] | ||
price_id: jsonpath "$.[0].id" | ||
|
||
|
||
# Queries a specific fargate price. | ||
GET {{host}}/prices/fargate/{{price_id}} | ||
|
||
HTTP 200 |