@@ -249,19 +249,19 @@ func TestWhereSomeMatch(t *testing.T) {
249
249
},
250
250
}
251
251
252
- if len (whereSomeMatch (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo1.localhost" })) != 1 {
252
+ if len (whereAny (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo1.localhost" })) != 1 {
253
253
t .Fatalf ("demo1.localhost expected 1 match" )
254
254
}
255
255
256
- if len (whereSomeMatch (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo2.localhost" , "lala" })) != 2 {
256
+ if len (whereAny (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo2.localhost" , "lala" })) != 2 {
257
257
t .Fatalf ("demo2.localhost expected 2 matches" )
258
258
}
259
259
260
- if len (whereSomeMatch (containers , "Env.VIRTUAL_HOST" , "," , []string {"something" , "demo3.localhost" })) != 1 {
260
+ if len (whereAny (containers , "Env.VIRTUAL_HOST" , "," , []string {"something" , "demo3.localhost" })) != 1 {
261
261
t .Fatalf ("demo3.localhost expected 1 match" )
262
262
}
263
263
264
- if len (whereSomeMatch (containers , "Env.NOEXIST" , "," , []string {"demo3.localhost" })) != 0 {
264
+ if len (whereAny (containers , "Env.NOEXIST" , "," , []string {"demo3.localhost" })) != 0 {
265
265
t .Fatalf ("NOEXIST demo3.localhost expected 0 match" )
266
266
}
267
267
}
@@ -294,19 +294,19 @@ func TestWhereRequires(t *testing.T) {
294
294
},
295
295
}
296
296
297
- if len (whereRequires (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo1.localhost" })) != 1 {
297
+ if len (whereAll (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo1.localhost" })) != 1 {
298
298
t .Fatalf ("demo1.localhost expected 1 match" )
299
299
}
300
300
301
- if len (whereRequires (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo2.localhost" , "lala" })) != 0 {
301
+ if len (whereAll (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo2.localhost" , "lala" })) != 0 {
302
302
t .Fatalf ("demo2.localhost,lala expected 0 matches" )
303
303
}
304
304
305
- if len (whereRequires (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo3.localhost" })) != 1 {
305
+ if len (whereAll (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo3.localhost" })) != 1 {
306
306
t .Fatalf ("demo3.localhost expected 1 match" )
307
307
}
308
308
309
- if len (whereRequires (containers , "Env.NOEXIST" , "," , []string {"demo3.localhost" })) != 0 {
309
+ if len (whereAll (containers , "Env.NOEXIST" , "," , []string {"demo3.localhost" })) != 0 {
310
310
t .Fatalf ("NOEXIST demo3.localhost expected 0 match" )
311
311
}
312
312
}
0 commit comments