package e2e
import "google.golang.org/grpc/internal/xds/test/e2e"
Package e2e implements xds e2e tests using go-control-plane.
Index ¶
- func CompareXDSConfig(gotXDSConfig, wantXDSConfig *xdsresource.XDSConfig) error
- func MakeXDSConfig(servicename, routeConfigName, clusterName, edsServiceName, addr string) *xdsresource.XDSConfig
- func VerifyXDSConfig(ctx context.Context, xdsCh chan *xdsresource.XDSConfig, errCh chan error, want *xdsresource.XDSConfig) error
Functions ¶
func CompareXDSConfig ¶
func CompareXDSConfig(gotXDSConfig, wantXDSConfig *xdsresource.XDSConfig) error
CompareXDSConfig compares two XDSConfig structs and returns an error if they do not match.
func MakeXDSConfig ¶
func MakeXDSConfig(servicename, routeConfigName, clusterName, edsServiceName, addr string) *xdsresource.XDSConfig
MakeXDSConfig creates a mock XDSConfig with a standard structure containing a Listener, RouteConfig, VirtualHost, and a single EDS Cluster, populated with the provided parameters.
func VerifyXDSConfig ¶
func VerifyXDSConfig(ctx context.Context, xdsCh chan *xdsresource.XDSConfig, errCh chan error, want *xdsresource.XDSConfig) error
VerifyXDSConfig waits for an update on the xdsCh channel or an error on the errCh channel, and verifies that the received XDSConfig matches the expected XDS configuration.
Source Files ¶
controlplane.go e2e.go e2e_utils.go
- Version
- v1.82.0-dev
- Published
- Apr 15, 2026
- Platform
- darwin/amd64
- Imports
- 20 packages
- Last checked
- 2 hours ago –
Tools for package owners.