Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update observability to the rescue example files #3685

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
type: Test
spec:
id: yWoVaiuVR
id: 7uEPjAoIg
name: Your API call with error
description: Test call that will fail on purpose, showing the error propagation problem in the Payment System
trigger:
type: http
httpRequest:
url: http://your-api:10013/executePaymentOrder
method: POST
url: http://your-api:10013/executePaymentOrder
body: |
{
"walletId": 4,
"yearsAsACustomer": 0
}
headers:
- key: Content-Type
value: application/json
body: |-
{
"walletId": 4,
"yearsAsACustomer": 0
}
specs:
- name: Your-API is OK
selector: span[name="POST /executePaymentOrder" http.target="/executePaymentOrder" http.method="POST"]
- selector: span[name="POST /executePaymentOrder" http.target="/executePaymentOrder" http.method="POST"]
name: Your-API is OK
assertions:
- attr:http.status_code = 200
- name: Payment-Executor is OK
selector: span[tracetest.span.type="http" name="POST" http.target="/payment/execute" http.method="POST"]
- selector: span[tracetest.span.type="http" name="POST" http.target="/payment/execute" http.method="POST"]
name: Payment-Executor is OK
assertions:
- attr:http.status_code = 200
- name: Risk-Analysis API calculation is returning OK
selector: span[name="/computeRisk" http.target="/computeRisk" http.method="POST"]
- selector: span[name="/computeRisk" http.target="/computeRisk" http.method="POST"]
name: Risk-Analysis API calculation is returning OK
assertions:
- attr:http.status_code = 200


Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ spec:
trigger:
type: http
httpRequest:
url: http://your-api:10013/executePaymentOrder
method: POST
url: http://your-api:10013/executePaymentOrder
body: |
{
"walletId": 4,
"yearsAsACustomer": 1
}
headers:
- key: Content-Type
value: application/json
body: |-
{
"walletId": 4,
"yearsAsACustomer": 1
}
specs:
- name: Your-API is OK
selector: span[name="POST /executePaymentOrder" http.target="/executePaymentOrder" http.method="POST"]
Expand Down