@@ -255,7 +255,7 @@ func TestLBBackend(t *testing.T) {
255
255
code : `* -> <"https://example.org">` ,
256
256
expectedResult : []* Route {{
257
257
BackendType : LBBackend ,
258
- LBEndpoints : []string { "https://example.org" },
258
+ LBEndpoints : []* LBEndpoint {{ Address : "https://example.org" } },
259
259
}},
260
260
}, {
261
261
title : "multiple endpoints, default algorithm" ,
@@ -264,10 +264,10 @@ func TestLBBackend(t *testing.T) {
264
264
"https://example3.org">` ,
265
265
expectedResult : []* Route {{
266
266
BackendType : LBBackend ,
267
- LBEndpoints : []string {
268
- "https://example1.org" ,
269
- "https://example2.org" ,
270
- "https://example3.org" ,
267
+ LBEndpoints : []* LBEndpoint {
268
+ { Address : "https://example1.org" } ,
269
+ { Address : "https://example2.org" } ,
270
+ { Address : "https://example3.org" } ,
271
271
},
272
272
}},
273
273
}, {
@@ -276,7 +276,7 @@ func TestLBBackend(t *testing.T) {
276
276
expectedResult : []* Route {{
277
277
BackendType : LBBackend ,
278
278
LBAlgorithm : "algFoo" ,
279
- LBEndpoints : []string { "https://example.org" },
279
+ LBEndpoints : []* LBEndpoint {{ Address : "https://example.org" } },
280
280
}},
281
281
}, {
282
282
title : "multiple endpoints, default algorithm" ,
@@ -287,10 +287,10 @@ func TestLBBackend(t *testing.T) {
287
287
expectedResult : []* Route {{
288
288
BackendType : LBBackend ,
289
289
LBAlgorithm : "algFoo" ,
290
- LBEndpoints : []string {
291
- "https://example1.org" ,
292
- "https://example2.org" ,
293
- "https://example3.org" ,
290
+ LBEndpoints : []* LBEndpoint {
291
+ { Address : "https://example1.org" } ,
292
+ { Address : "https://example2.org" } ,
293
+ { Address : "https://example3.org" } ,
294
294
},
295
295
}},
296
296
}, {
@@ -303,10 +303,10 @@ func TestLBBackend(t *testing.T) {
303
303
Filters : []* Filter {{Name : "foo" }},
304
304
BackendType : LBBackend ,
305
305
LBAlgorithm : "algFoo" ,
306
- LBEndpoints : []string {
307
- "https://example1.org" ,
308
- "https://example2.org" ,
309
- "https://example3.org" ,
306
+ LBEndpoints : []* LBEndpoint {
307
+ { Address : "https://example1.org" } ,
308
+ { Address : "https://example2.org" } ,
309
+ { Address : "https://example3.org" } ,
310
310
},
311
311
}},
312
312
}} {
0 commit comments