Skip to content

Commit

Permalink
Update contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Feb 5, 2023
1 parent f9ee904 commit 658e517
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions contracts/products.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,29 @@ Feature: Products API
Background:
Given openapi ./documentation.yaml

Scenario Outline: Get Product Success
Scenario Outline: Bad request when getting the product by ID
When GET /v1/products/(id:number)
And request-header Accept? (string)
Then status 400
Examples:
| id | Accept |
| 1.1 | application/json |

Scenario Outline: Get Product Not Found Error
Scenario Outline: Product not found
When GET /v1/products/(id:number)
And request-header Accept? (string)
Then status 404
Examples:
| id | Accept |
| 100 | application/json |

Scenario Outline: Get Product Success
Scenario Outline: Successful getting product by ID
When GET /v1/products/(id:number)
And request-header Accept? (string)
Then status 200
Examples:
| id | Accept |
| 1 | application/json |
| 4 | application/json |

Scenario Outline: Successful getting list of products
When GET /v1/products
Expand Down

0 comments on commit 658e517

Please sign in to comment.