-
Notifications
You must be signed in to change notification settings - Fork 301
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
Add Custom response header e2e test #1776
Add Custom response header e2e test #1776
Conversation
Hi @songrx1997. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
3ee3352
to
7c24982
Compare
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.
This generally looks good to me. Some small suggestions. Can you rebase and update the PR as well. Thanks!
/ok-to-test |
7c24982
to
43b25be
Compare
43b25be
to
675d1eb
Compare
if _, err := bcCRUD.Create(tc.beConfig); err != nil { | ||
t.Fatalf("error creating BackendConfig: %v", err) | ||
} | ||
t.Logf("\"%s\" BackendConfig created (%s/%s) ", tc.desc, s.Namespace, tc.beConfig.Name) |
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.
maybe create a test logger that will do this automatically or create a helper method that wraps the logger?
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.
Added a helper to prepend the desc to the log string.
675d1eb
to
f39a202
Compare
return nil | ||
} | ||
|
||
func logHelper(desc string, format string) string { |
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.
Maybe rename to logWithDesc?
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.
It looks like with the default logging in golang, we are limited in our options. Lets rename to something like appendDesc
so it is clear what the helper function is doing. Please also add a comment as to why we are doing this.
For the format maybe something like [%s]: %s
?
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.
Updated the naming and format.
f39a202
to
524a6fd
Compare
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 for the change!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: songrx1997, swetharepakula 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 |
/assign @swetharepakula