Skip to content

Commit

Permalink
Fixing small issues on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbdias committed Jul 10, 2023
1 parent d60eebd commit 72d2cdd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/tracetesting/email-service/confirmation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
headers:
- key: Content-Type
value: application/json
body: |-
body: |
{
"email": "[email protected]",
"order": {
Expand Down
6 changes: 2 additions & 4 deletions test/tracetesting/frontend-service/05-view-cart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,16 @@ spec:
trigger:
type: http
httpRequest:
url: http://${env:FRONTEND_ADDR}/api/cart
url: http://${env:FRONTEND_ADDR}/api/cart?userId=2491f868-88f1-4345-8836-d5d8511a9f83
method: GET
headers:
- key: Content-Type
value: application/json
specs:
- name: It called the frontend with success and returned the first item with correct attributes
- name: It called the frontend with success
selector: span[tracetest.span.type="general" name="Tracetest trigger"]
assertions:
- attr:tracetest.response.status = 200
- attr:tracetest.response.body | json_path '$.items[0].quantity' = 1
- attr:tracetest.response.body | json_path '$.items[0].productId' = "0PUK6V6EV0"
- name: It retrieved the cart items correctly
selector: span[name="oteldemo.CartService/GetCart"]
assertions:
Expand Down
2 changes: 1 addition & 1 deletion test/tracetesting/frontend-service/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ spec:
- ./02-get-product-recommendation.yaml
- ./03-browse-product.yaml
- ./04-add-product-to-cart.yaml
- ./05-see-cart.yaml
- ./05-view-cart.yaml
- ./06-checking-out-cart.yaml

0 comments on commit 72d2cdd

Please sign in to comment.