Skip to content

Conversation

LiorLieberman
Copy link
Member

@LiorLieberman LiorLieberman commented May 24, 2025

What type of PR is this?
/area conformance-test

Add mesh tests for request header modifier
This is a follow up to #3729

What this PR does / why we need it:
Add mesh tests coverage

Which issue(s) this PR fixes:

Related #3581

Does this PR introduce a user-facing change?:

Add mesh conformance tests for httproute request header modifier

/cc @robscott

@k8s-ci-robot k8s-ci-robot requested a review from robscott May 24, 2025 20:21
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. area/conformance-test Issues or PRs related to Conformance tests. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 24, 2025
@LiorLieberman LiorLieberman force-pushed the request-header-modifier-mesh-test branch from c4d30f5 to ffb897e Compare May 24, 2025 21:56
for name, val := range resp.RequestHeaders {
resp.RequestHeaders[strings.ToLower(name)] = val
}
for name, expectedVal := range wantReq.Headers {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're not checking if length of want and got headers match and you are missing the case here where got has some extra header. Is this expected?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm, if got has an extra header does it mean its not conformant? I dont think thats necessarily true

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine for implementations to set custom headers, I know at least some set custom headers. If we want to add a requirement that no additional headers are set, that should probably result in some clarification on API spec first. We do have the AbsentHeaders check to ensure that headers we want to have been removed from a request have been.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, thats what I thought as well. Thanks for clarifying though.

@robscott
Copy link
Member

Thanks @LiorLieberman!

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 30, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LiorLieberman, robscott

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 30, 2025
@k8s-ci-robot k8s-ci-robot merged commit dbd2ff9 into kubernetes-sigs:main May 31, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/conformance-test Issues or PRs related to Conformance tests. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants