@@ -249,19 +249,19 @@ func TestWhereSomeMatch(t *testing.T) {
249249 },
250250 }
251251
252- if len (whereSomeMatch (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo1.localhost" })) != 1 {
252+ if len (whereAny (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo1.localhost" })) != 1 {
253253 t .Fatalf ("demo1.localhost expected 1 match" )
254254 }
255255
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 {
257257 t .Fatalf ("demo2.localhost expected 2 matches" )
258258 }
259259
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 {
261261 t .Fatalf ("demo3.localhost expected 1 match" )
262262 }
263263
264- if len (whereSomeMatch (containers , "Env.NOEXIST" , "," , []string {"demo3.localhost" })) != 0 {
264+ if len (whereAny (containers , "Env.NOEXIST" , "," , []string {"demo3.localhost" })) != 0 {
265265 t .Fatalf ("NOEXIST demo3.localhost expected 0 match" )
266266 }
267267}
@@ -294,19 +294,19 @@ func TestWhereRequires(t *testing.T) {
294294 },
295295 }
296296
297- if len (whereRequires (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo1.localhost" })) != 1 {
297+ if len (whereAll (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo1.localhost" })) != 1 {
298298 t .Fatalf ("demo1.localhost expected 1 match" )
299299 }
300300
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 {
302302 t .Fatalf ("demo2.localhost,lala expected 0 matches" )
303303 }
304304
305- if len (whereRequires (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo3.localhost" })) != 1 {
305+ if len (whereAll (containers , "Env.VIRTUAL_HOST" , "," , []string {"demo3.localhost" })) != 1 {
306306 t .Fatalf ("demo3.localhost expected 1 match" )
307307 }
308308
309- if len (whereRequires (containers , "Env.NOEXIST" , "," , []string {"demo3.localhost" })) != 0 {
309+ if len (whereAll (containers , "Env.NOEXIST" , "," , []string {"demo3.localhost" })) != 0 {
310310 t .Fatalf ("NOEXIST demo3.localhost expected 0 match" )
311311 }
312312}
0 commit comments