-
Notifications
You must be signed in to change notification settings - Fork 615
Conformance: Adds Port Response Header to Echo Server #4230
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
Conversation
Signed-off-by: Daneyon Hansen <[email protected]>
robscott
left a comment
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.
Thanks @danehans!
conformance/echo-basic/echo-basic.go
Outdated
| writeEchoResponseHeaders(w, r.Header) | ||
| // Optionally advertise the http port this process is serving. | ||
| if advertisePortHeader { | ||
| w.Header().Set("X-Echo-HTTP-Port", httpPort) |
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.
Instead of a response header, why not put this in the JSON response body like most other attributes? (I don't have a strong preference here, just trying to understand).
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.
I simply followed the pattern for echo'ing the pod ns, name, etc using headers. The latest commit adds the listening port to the response body, PTAL.
Signed-off-by: Daneyon Hansen <[email protected]>
- Required to support JSON-based echo response validation. Signed-off-by: Daneyon Hansen <[email protected]>
robscott
left a comment
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.
Thanks @danehans! Would appreciate another set of eyes on this in case I missed anything.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danehans, 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 |
|
/cc @rikatz @youngnick |
|
/lgtm |
What type of PR is this?
/kind feature
/area conformance-machinery
What this PR does / why we need it:
Optionally adds a response header for the listening port of the echo server.
Which issue(s) this PR fixes:
Fixes #4229
Does this PR introduce a user-facing change?: