Skip to content

Commit bf8fc46

Browse files
authored
xds/resolver: cleanup tests to use real xDS client 5/n (#5955)
1 parent 3930549 commit bf8fc46

File tree

5 files changed

+389
-302
lines changed

5 files changed

+389
-302
lines changed

internal/testutils/xds/e2e/clientresources.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,14 @@ func DefaultRouteConfig(routeName, ldsTarget, clusterName string) *v3routepb.Rou
296296
Routes: []*v3routepb.Route{{
297297
Match: &v3routepb.RouteMatch{PathSpecifier: &v3routepb.RouteMatch_Prefix{Prefix: "/"}},
298298
Action: &v3routepb.Route_Route{Route: &v3routepb.RouteAction{
299-
ClusterSpecifier: &v3routepb.RouteAction_Cluster{Cluster: clusterName},
299+
ClusterSpecifier: &v3routepb.RouteAction_WeightedClusters{WeightedClusters: &v3routepb.WeightedCluster{
300+
Clusters: []*v3routepb.WeightedCluster_ClusterWeight{
301+
{
302+
Name: clusterName,
303+
Weight: &wrapperspb.UInt32Value{Value: 100},
304+
},
305+
},
306+
}},
300307
}},
301308
}},
302309
}},

0 commit comments

Comments
 (0)