Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ByServiceSelector (0.21 sec)

  1. pilot/pkg/serviceregistry/util/workloadinstances/index_test.go

    	index := NewIndex()
    
    	// test update
    	index.Insert(wi1)
    	index.Insert(wi2)
    	index.Insert(wi3)
    	index.Insert(wi4)
    
    	// test search by service selector
    	actual := FindAllInIndex(index, ByServiceSelector(selector.Namespace, labels.Instance{"app": "wle"}))
    	want := []*model.WorkloadInstance{wi1, wi2}
    
    	assert.Equal(t, len(want), len(actual))
    
    	got := map[string]*model.WorkloadInstance{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 5K bytes
    - Viewed (0)
Back to top