Skip to content

Check modified request headers at the mirrored backend. #2142

@Treenhan

Description

@Treenhan

What would you like to be added:
Checks if the headers are mirrored in the request sent.

Why this is needed:
While developing conformance tests, we discovered an issue with the ExpectMirroredRequest method (https://github.com/kubernetes-sigs/gateway-api/blob/main/conformance/utils/http/mirror.go#L32). This method verifies that a request is mirrored properly. However, it was only checking that the path matched for mirrored requests. It did not have checks in place for the headers.

This is problematic because headers can also be modified or added to requests. To have fully conformant request mirroring, the test method needs to account for headers as well as the path.

More context: #2101 (comment)

/kind feature
/area conformance

Metadata

Metadata

Assignees

Labels

area/conformance-testIssues or PRs related to Conformance tests.kind/featureCategorizes issue or PR as related to a new feature.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions