Skip to content

Commit

Permalink
extend all fileds for TestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
emes4 authored Sep 23, 2024
1 parent 195017e commit 5e9c753
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/test-cases.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ TestCase defines each test that will be run sequentially.
| wantMatch | bool | If the test case should assert `true` or `false` |
| request | [request](#Request) | Crafted requests that will mocked against VirtualServices |
| route | [HTTPRouteDestination[]](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRouteDestination) | Route destinations that will be asserted for each request. |
| redirect | [HTTPRedirect](https://istio.io/latest/docs/reference/config/networking/virtual-service/#HTTPRedirect) | Any redirect logic to test
| rewrite | [HTTPRewrite](https://istio.io/latest/docs/reference/config/networking/virtual-service/#HTTPRewrite) | Any rewrite logic to test
| fault | [HTTPFaultInjection](https://istio.io/latest/docs/reference/config/networking/virtual-service/#HTTPFaultInjection) | Add fault injection (delay, abort) to test to test for timeouts, auth, etc.
| headers | [Headers](https://istio.io/latest/docs/reference/config/networking/virtual-service/#Headers) | Test header manipulation rules. These are different from `request.headers`, i.e. headers present in the test request.
| delegate | [Delegate](https://istio.io/latest/docs/reference/config/networking/virtual-service/#Delegate) | Any delegation logic to test


## Request
Expand Down

0 comments on commit 5e9c753

Please sign in to comment.