-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
authz: modify the tests to use stubserver instead of testservice implementations #7888
Merged
purnesh42H
merged 14 commits into
grpc:master
from
janardhanvissa:stubserver-streamingcall
Jan 13, 2025
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
cb0a479
Initializing StreamingInputCall and SteamingOutputCall in the stubserver
janardhankrishna-sai d364fdc
switching to stubserver in tests instead of testserviceimpl
janardhankrishna-sai 309abd1
switching to stubserver instead of testservice
janardhankrishna-sai fa74a99
removing redundant server code
janardhankrishna-sai 1e7a099
renaming streamingcalls
janardhankrishna-sai 924a9e7
moving initialization of NewServer inside stub
janardhankrishna-sai ecdab23
renaming client and server handlers
janardhankrishna-sai 7287983
updating grpc_authz_end2end_test.go
janardhankrishna-sai 5b41dbe
Merge branch 'master' of https://github.com/janardhanvissa/grpc-go in…
janardhankrishna-sai 4588fc1
updating client and server streaming comments
janardhankrishna-sai 4298e86
removing empty lines for re-trigger
janardhankrishna-sai 96cd53a
Merge branch 'master' of https://github.com/janardhanvissa/grpc-go in…
janardhankrishna-sai 136cc82
removing explicit listener creation code
janardhankrishna-sai 754386e
moving creds and the stubserver code inside of t.Run
janardhankrishna-sai File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
While you are here, may I request you to make the following additional changes:
// Construct the credentials for the tests and the stub server
to here. That will make the subtests executed as part of thefor
loop (via the call tot.Run
) be independent of each other.grpc.NewServer
in a single line. See: https://google.github.io/styleguide/go/guide#line-lengthThanks.
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.
You seemed to have moved it to the top of the test. That is not what I requested. I requested that the creation of the creds and the stubserver be moved inside of
t.Run
. That is the only way to make the subtests hermetic.