@@ -183,7 +183,7 @@ func (s) TestRDSWatch(t *testing.T) {
183
183
{
184
184
Prefix : newStringP ("/" ),
185
185
ActionType : xdsresource .RouteActionRoute ,
186
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {cdsName : { Weight : 100 }},
186
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : cdsName , Weight : 100 }},
187
187
},
188
188
},
189
189
},
@@ -206,7 +206,7 @@ func (s) TestRDSWatch(t *testing.T) {
206
206
{
207
207
Prefix : newStringP ("/" ),
208
208
ActionType : xdsresource .RouteActionRoute ,
209
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {cdsNameNewStyle : { Weight : 100 }},
209
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : cdsNameNewStyle , Weight : 100 }},
210
210
},
211
211
},
212
212
},
@@ -345,7 +345,7 @@ func (s) TestRDSWatch_TwoWatchesForSameResourceName(t *testing.T) {
345
345
{
346
346
Prefix : newStringP ("/" ),
347
347
ActionType : xdsresource .RouteActionRoute ,
348
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {cdsName : { Weight : 100 }},
348
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : cdsName , Weight : 100 }},
349
349
},
350
350
},
351
351
},
@@ -361,7 +361,7 @@ func (s) TestRDSWatch_TwoWatchesForSameResourceName(t *testing.T) {
361
361
{
362
362
Prefix : newStringP ("/" ),
363
363
ActionType : xdsresource .RouteActionRoute ,
364
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {"new-cds-resource" : { Weight : 100 }},
364
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : "new-cds-resource" , Weight : 100 }},
365
365
},
366
366
},
367
367
},
@@ -383,7 +383,7 @@ func (s) TestRDSWatch_TwoWatchesForSameResourceName(t *testing.T) {
383
383
{
384
384
Prefix : newStringP ("/" ),
385
385
ActionType : xdsresource .RouteActionRoute ,
386
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {cdsNameNewStyle : { Weight : 100 }},
386
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : cdsNameNewStyle , Weight : 100 }},
387
387
},
388
388
},
389
389
},
@@ -399,7 +399,7 @@ func (s) TestRDSWatch_TwoWatchesForSameResourceName(t *testing.T) {
399
399
{
400
400
Prefix : newStringP ("/" ),
401
401
ActionType : xdsresource .RouteActionRoute ,
402
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {"new-cds-resource" : { Weight : 100 }},
402
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : "new-cds-resource" , Weight : 100 }},
403
403
},
404
404
},
405
405
},
@@ -597,7 +597,7 @@ func (s) TestRDSWatch_ThreeWatchesForDifferentResourceNames(t *testing.T) {
597
597
{
598
598
Prefix : newStringP ("/" ),
599
599
ActionType : xdsresource .RouteActionRoute ,
600
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {cdsName : { Weight : 100 }},
600
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : cdsName , Weight : 100 }},
601
601
},
602
602
},
603
603
},
@@ -688,7 +688,7 @@ func (s) TestRDSWatch_ResourceCaching(t *testing.T) {
688
688
{
689
689
Prefix : newStringP ("/" ),
690
690
ActionType : xdsresource .RouteActionRoute ,
691
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {cdsName : { Weight : 100 }},
691
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : cdsName , Weight : 100 }},
692
692
},
693
693
},
694
694
},
@@ -819,7 +819,7 @@ func (s) TestRDSWatch_ValidResponseCancelsExpiryTimerBehavior(t *testing.T) {
819
819
{
820
820
Prefix : newStringP ("/" ),
821
821
ActionType : xdsresource .RouteActionRoute ,
822
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {cdsName : { Weight : 100 }},
822
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : cdsName , Weight : 100 }},
823
823
},
824
824
},
825
825
},
@@ -983,7 +983,7 @@ func (s) TestRDSWatch_PartialValid(t *testing.T) {
983
983
{
984
984
Prefix : newStringP ("/" ),
985
985
ActionType : xdsresource .RouteActionRoute ,
986
- WeightedClusters : map [ string ]xdsresource.WeightedCluster {cdsName : { Weight : 100 }},
986
+ WeightedClusters : [ ]xdsresource.WeightedCluster {{ Name : cdsName , Weight : 100 }},
987
987
},
988
988
},
989
989
},
0 commit comments