-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update observability to the rescue example files (#3685)
update example files
- Loading branch information
1 parent
d19b5cd
commit 338439b
Showing
2 changed files
with
19 additions
and
22 deletions.
There are no files selected for viewing
29 changes: 13 additions & 16 deletions
29
examples/observability-to-the-rescue/tracetest/tests/test-with-error.yaml
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 |
---|---|---|
@@ -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 | ||
|
||
|
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