-
Notifications
You must be signed in to change notification settings - Fork 4.7k
xds: generic xds client resource watching e2e #8183
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
Merged
purnesh42H
merged 33 commits into
grpc:master
from
purnesh42H:generic-xds-client-resource-watchine-e2e
Apr 23, 2025
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
526a92a
add Equal and String helpers for clients.ServerIdentifier
purnesh42H c916c48
Add String() and Equal() to grpctransport
purnesh42H b506c66
copy clientimpl, clientimpl_watcher and authority files
purnesh42H 7ccb50b
modify copied clientimpl and related files for resource watching
purnesh42H 88c1f90
modify ServerIdentifierExtension to use pointer receiver
purnesh42H 306f330
copy lds_watcher_test and helpers
purnesh42H e927ad1
modify copied lds_watcher_test and helpers for e2e resource watcher t…
purnesh42H cc8cf9d
dfawley review1: modify String() and Equal()
purnesh42H 77a11cb
add ServerIdentiferMap and serverConfigMap for transort channel re-use
purnesh42H 249481c
serverConfigMap unit tests
purnesh42H c81e438
xdsclient validations
purnesh42H 54f56bf
copy authority tests
purnesh42H 2fcec9c
modify authorty tests
purnesh42H a55ff04
test to validate xdsclient ServerIdentifier.Extensions without Equal …
purnesh42H 38e3d95
dfawley review 2: consider ServerIdentifier to be a map key
purnesh42H 42a1223
remove clientImpl
purnesh42H 6b9b12b
Remove ServerConfigString() and ServerIdentifierString()
purnesh42H 5bbac97
restrict ServerConfigExtensions to be added as value in grpctransport
purnesh42H 82a874a
copy dump_test.go for DumpResourcesTesting
purnesh42H 1ad13b4
modify dump_test.go
purnesh42H 1b7917f
dfawley review 2: small changes
purnesh42H c2545ce
copy misc_watchers_test including channel creation failure test case
purnesh42H 76bff92
modify misc_watchers_test.go including channel creation failure test …
purnesh42H 2e45e62
ref counted grpc transport
purnesh42H 967db9c
delete config_test.go
purnesh42H d74aac0
easwars review 1
purnesh42H 05da820
dfawley review 4
purnesh42H 323ffed
A88 changes
purnesh42H ebe35a6
delete test hooks and remove err from transport close
purnesh42H 81711cb
move cleanup part under single lock
purnesh42H 3dda0b1
dfawley nits
purnesh42H 6a422d7
easwars review 2 for xdsclient impl
purnesh42H d22c5b7
easwars review 3
purnesh42H 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 hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /* | ||
| * | ||
| * Copyright 2025 gRPC authors. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| * | ||
| */ | ||
|
|
||
| package grpctransport_test | ||
|
|
||
| import ( | ||
| "fmt" | ||
|
|
||
| "google.golang.org/grpc/xds/internal/clients" | ||
| "google.golang.org/grpc/xds/internal/clients/grpctransport" | ||
| ) | ||
|
|
||
| // ExampleServerIdentifierExtension demonstrates how to create | ||
| // clients.ServerIdentifier with grpctransport.ServerIdentifierExtension as | ||
| // its extensions. | ||
| // | ||
| // This example is creating clients.ServerIdentifier to connect to server at | ||
| // localhost:5678 using the credentials named "local". Note that "local" must | ||
| // exist as an entry in the provided credentials to grpctransport.Builder. | ||
| func ExampleServerIdentifierExtension() { | ||
| // Note the Extensions field is set by value and not by pointer. | ||
| fmt.Printf("%+v", clients.ServerIdentifier{ServerURI: "localhost:5678", Extensions: grpctransport.ServerIdentifierExtension{Credentials: "local"}}) | ||
| // Output: {ServerURI:localhost:5678 Extensions:{Credentials:local}} | ||
| } |
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.