@@ -88,7 +88,7 @@ func (s) TestAggregateClusterSuccess_LeafNode(t *testing.T) {
8888 wantFirstChildCfg : & priority.LBConfig {
8989 Children : map [string ]* priority.Child {
9090 "priority-0-0" : {
91- Config : createPriorityConfig (clusterName , serviceName ),
91+ Config : createPriorityConfig (clusterName ),
9292 IgnoreReresolutionRequests : true ,
9393 },
9494 },
@@ -97,7 +97,7 @@ func (s) TestAggregateClusterSuccess_LeafNode(t *testing.T) {
9797 wantSecondChildCfg : & priority.LBConfig {
9898 Children : map [string ]* priority.Child {
9999 "priority-1-0" : {
100- Config : createPriorityConfig (clusterName , serviceName + "-new" ),
100+ Config : createPriorityConfig (clusterName ),
101101 IgnoreReresolutionRequests : true ,
102102 },
103103 },
@@ -109,11 +109,11 @@ func (s) TestAggregateClusterSuccess_LeafNode(t *testing.T) {
109109 firstClusterResource : makeLogicalDNSClusterResource (clusterName , "dns_host" , uint32 (port )),
110110 secondClusterResource : makeLogicalDNSClusterResource (clusterName , "dns_host_new" , uint32 (port )),
111111 wantFirstChildCfg : & priority.LBConfig {
112- Children : map [string ]* priority.Child {"priority-0" : {Config : createPriorityConfig (clusterName , "" )}},
112+ Children : map [string ]* priority.Child {"priority-0" : {Config : createPriorityConfig (clusterName )}},
113113 Priorities : []string {"priority-0" },
114114 },
115115 wantSecondChildCfg : & priority.LBConfig {
116- Children : map [string ]* priority.Child {"priority-1" : {Config : createPriorityConfig (clusterName , "" )}},
116+ Children : map [string ]* priority.Child {"priority-1" : {Config : createPriorityConfig (clusterName )}},
117117 Priorities : []string {"priority-1" },
118118 },
119119 },
@@ -208,10 +208,10 @@ func (s) TestAggregateClusterSuccess_ThenUpdateChildClusters(t *testing.T) {
208208 wantChildCfg := & priority.LBConfig {
209209 Children : map [string ]* priority.Child {
210210 "priority-0-0" : {
211- Config : createPriorityConfig (edsClusterName , serviceName ),
211+ Config : createPriorityConfig (edsClusterName ),
212212 IgnoreReresolutionRequests : true ,
213213 },
214- "priority-1" : {Config : createPriorityConfig (dnsClusterName , "" )},
214+ "priority-1" : {Config : createPriorityConfig (dnsClusterName )},
215215 },
216216 Priorities : []string {"priority-0-0" , "priority-1" },
217217 }
@@ -239,10 +239,10 @@ func (s) TestAggregateClusterSuccess_ThenUpdateChildClusters(t *testing.T) {
239239 wantChildCfg = & priority.LBConfig {
240240 Children : map [string ]* priority.Child {
241241 "priority-0-0" : {
242- Config : createPriorityConfig (edsClusterName , serviceName ),
242+ Config : createPriorityConfig (edsClusterName ),
243243 IgnoreReresolutionRequests : true ,
244244 },
245- "priority-2" : {Config : createPriorityConfig (dnsClusterNameNew , "" )},
245+ "priority-2" : {Config : createPriorityConfig (dnsClusterNameNew )},
246246 },
247247 Priorities : []string {"priority-0-0" , "priority-2" },
248248 }
@@ -285,10 +285,10 @@ func (s) TestAggregateClusterSuccess_ThenChangeRootToEDS(t *testing.T) {
285285 wantChildCfg := & priority.LBConfig {
286286 Children : map [string ]* priority.Child {
287287 "priority-0-0" : {
288- Config : createPriorityConfig (edsClusterName , serviceName ),
288+ Config : createPriorityConfig (edsClusterName ),
289289 IgnoreReresolutionRequests : true ,
290290 },
291- "priority-1" : {Config : createPriorityConfig (dnsClusterName , "" )},
291+ "priority-1" : {Config : createPriorityConfig (dnsClusterName )},
292292 },
293293 Priorities : []string {"priority-0-0" , "priority-1" },
294294 }
@@ -314,7 +314,7 @@ func (s) TestAggregateClusterSuccess_ThenChangeRootToEDS(t *testing.T) {
314314 wantChildCfg = & priority.LBConfig {
315315 Children : map [string ]* priority.Child {
316316 "priority-0-0" : {
317- Config : createPriorityConfig (clusterName , serviceName ),
317+ Config : createPriorityConfig (clusterName ),
318318 IgnoreReresolutionRequests : true ,
319319 },
320320 },
@@ -349,7 +349,7 @@ func (s) TestAggregatedClusterSuccess_SwitchBetweenLeafAndAggregate(t *testing.T
349349 wantChildCfg := & priority.LBConfig {
350350 Children : map [string ]* priority.Child {
351351 "priority-0-0" : {
352- Config : createPriorityConfig (clusterName , serviceName ),
352+ Config : createPriorityConfig (clusterName ),
353353 IgnoreReresolutionRequests : true ,
354354 },
355355 },
@@ -378,10 +378,10 @@ func (s) TestAggregatedClusterSuccess_SwitchBetweenLeafAndAggregate(t *testing.T
378378 wantChildCfg = & priority.LBConfig {
379379 Children : map [string ]* priority.Child {
380380 "priority-0-0" : {
381- Config : createPriorityConfig (edsClusterName , serviceName ),
381+ Config : createPriorityConfig (edsClusterName ),
382382 IgnoreReresolutionRequests : true ,
383383 },
384- "priority-1" : {Config : createPriorityConfig (dnsClusterName , "" )},
384+ "priority-1" : {Config : createPriorityConfig (dnsClusterName )},
385385 },
386386 Priorities : []string {"priority-0-0" , "priority-1" },
387387 }
@@ -403,7 +403,7 @@ func (s) TestAggregatedClusterSuccess_SwitchBetweenLeafAndAggregate(t *testing.T
403403 wantChildCfg = & priority.LBConfig {
404404 Children : map [string ]* priority.Child {
405405 "priority-0-0" : {
406- Config : createPriorityConfig (clusterName , serviceName ),
406+ Config : createPriorityConfig (clusterName ),
407407 IgnoreReresolutionRequests : true ,
408408 },
409409 },
@@ -561,7 +561,7 @@ func (s) TestAggregatedClusterSuccess_DiamondDependency(t *testing.T) {
561561 wantChildCfg := & priority.LBConfig {
562562 Children : map [string ]* priority.Child {
563563 "priority-0-0" : {
564- Config : createPriorityConfig (clusterNameD , serviceName ),
564+ Config : createPriorityConfig (clusterNameD ),
565565 IgnoreReresolutionRequests : true ,
566566 },
567567 },
@@ -629,11 +629,11 @@ func (s) TestAggregatedClusterSuccess_IgnoreDups(t *testing.T) {
629629 wantChildCfg := & priority.LBConfig {
630630 Children : map [string ]* priority.Child {
631631 "priority-0-0" : {
632- Config : createPriorityConfig (clusterNameC , edsClusterName ),
632+ Config : createPriorityConfig (clusterNameC ),
633633 IgnoreReresolutionRequests : true ,
634634 },
635635 "priority-1-0" : {
636- Config : createPriorityConfig (clusterNameD , serviceName ),
636+ Config : createPriorityConfig (clusterNameD ),
637637 IgnoreReresolutionRequests : true ,
638638 },
639639 },
@@ -717,7 +717,7 @@ func (s) TestAggregatedCluster_NodeChildOfItself(t *testing.T) {
717717 wantChildCfg := & priority.LBConfig {
718718 Children : map [string ]* priority.Child {
719719 "priority-0-0" : {
720- Config : createPriorityConfig (clusterNameB , serviceName ),
720+ Config : createPriorityConfig (clusterNameB ),
721721 IgnoreReresolutionRequests : true ,
722722 },
723723 },
@@ -826,7 +826,7 @@ func (s) TestAggregatedCluster_CycleWithLeafNode(t *testing.T) {
826826 wantChildCfg := & priority.LBConfig {
827827 Children : map [string ]* priority.Child {
828828 "priority-0-0" : {
829- Config : createPriorityConfig (clusterNameC , serviceName ),
829+ Config : createPriorityConfig (clusterNameC ),
830830 IgnoreReresolutionRequests : true ,
831831 },
832832 },
0 commit comments