-
Notifications
You must be signed in to change notification settings - Fork 90
feat(conformance): Add test execution instruction to the guide. #878
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
base: main
Are you sure you want to change the base?
Changes from all commits
8c9463f
7ce6fd1
6310fdf
8190e64
5794920
2ec4965
fee10bf
16d8ebc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
# Test Setup and Execution | ||
|
||
This document provides steps to run the Gateway API Inference Extension conformance tests. | ||
|
||
## Prerequisites: External Istio/Envoy Setup | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace |
||
|
||
Before running the conformance tests, you need a Kubernetes cluster (e.g., GKE) with [LoadBalancer](https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer) support. Refer to [The Quickstart Guide](https://gateway-api-inference-extension.sigs.k8s.io/guides/) for more details. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Since this section will contain multiple prerequisites, consider using a numbered list. |
||
|
||
## Running the Conformance Tests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: s/Running the Conformance Tests/Running Conformance Tests/ |
||
|
||
1. **Choose an Implementation**: | ||
Install an [existing implementation](https://gateway-api-inference-extension.sigs.k8s.io/implementations/gateways/) or run tests against your implementation after completing the [implementer's guide](https://gateway-api-inference-extension.sigs.k8s.io/guides/implementers/#implementers-guide). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO this step should be in the Prerequisites section. |
||
|
||
2. **Clone the Repository**: | ||
Create a local copy of the Gateway API Inference Extension repository: | ||
```bash | ||
git clone https://github.com/kubernetes-sigs/gateway-api-inference-extension.git | ||
cd gateway-api-inference-extension | ||
``` | ||
|
||
3. **Execute Tests**: | ||
Run the following command to execute all available tests. Replace <your_gatewayclass_name> with the GatewayClass used by the implementation under test. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/<your_gatewayclass_name>/ |
||
|
||
```bash | ||
go test ./conformance -args -gateway-class <your_gatewayclass_name> | ||
``` | ||
|
||
### Test Execution Options | ||
|
||
* **Speeding up Reruns**: For repeated runs, you can add the flag `-cleanup-base-resources=false`. This will preserve resources such as namespaces and gateways between test runs, speeding up the process. | ||
```bash | ||
go test ./conformance -args -gateway-class <your_gatewayclass_name> -cleanup-base-resources=false | ||
``` | ||
|
||
* **Running Specific Tests**: To run a specific test, you can reference the test name by using the `-run-test` flag. For example: | ||
```bash | ||
go test ./conformance -args -gateway-class <your_gatewayclass_name> -run-test HTTPRouteMultipleGatewaysDifferentPools | ||
``` | ||
|
||
* **Detailed Logging**: To view detailed logs, you can enable logging mode by adding the `-v` as well as `-debug` flags. | ||
```bash | ||
go test -v ./conformance -args -debug -gateway-class <your_gatewayclass_name> -cleanup-base-resources=false -run-test HTTPRouteMultipleGatewaysDifferentPools | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mkdocs cannot find this doc without updating
mkdocs.yml
. Here's a docs structure to consider: