Skip to content

Commit

Permalink
xds/resolver: cleanup tests to use real xDS client 5/n (#5955)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars authored Jan 24, 2023
1 parent 3930549 commit bf8fc46
Show file tree
Hide file tree
Showing 5 changed files with 389 additions and 302 deletions.
9 changes: 8 additions & 1 deletion internal/testutils/xds/e2e/clientresources.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,14 @@ func DefaultRouteConfig(routeName, ldsTarget, clusterName string) *v3routepb.Rou
Routes: []*v3routepb.Route{{
Match: &v3routepb.RouteMatch{PathSpecifier: &v3routepb.RouteMatch_Prefix{Prefix: "/"}},
Action: &v3routepb.Route_Route{Route: &v3routepb.RouteAction{
ClusterSpecifier: &v3routepb.RouteAction_Cluster{Cluster: clusterName},
ClusterSpecifier: &v3routepb.RouteAction_WeightedClusters{WeightedClusters: &v3routepb.WeightedCluster{
Clusters: []*v3routepb.WeightedCluster_ClusterWeight{
{
Name: clusterName,
Weight: &wrapperspb.UInt32Value{Value: 100},
},
},
}},
}},
}},
}},
Expand Down
Loading

0 comments on commit bf8fc46

Please # to comment.