Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for test_labels (0.23 sec)

  1. pkg/test/framework/label/labels_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package label
    
    import (
    	"strconv"
    	"testing"
    )
    
    func TestLabels(t *testing.T) {
    	tests := []struct {
    		filter   string
    		labels   Set
    		expected bool
    		err      bool
    	}{
    		{filter: "", labels: nil, expected: true},
    		{filter: "", labels: NewSet(Postsubmit), expected: true},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 18 17:08:05 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  2. cni/pkg/repair/repair_test_helpers.go

    var (
    	brokenPodTerminating = makePod(makePodArgs{
    		PodName: "broken-pod-terminating",
    		Annotations: map[string]string{
    			"sidecar.istio.io/status": "something",
    		},
    		Labels: map[string]string{
    			"testlabel": "true",
    		},
    		NodeName:            "test-node",
    		InitContainerStatus: &brokenInitContainerTerminating,
    	})
    
    	brokenPodWaiting = makePod(makePodArgs{
    		PodName: "broken-pod-waiting",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 12 17:39:53 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. pkg/registry/core/componentstatus/rest_test.go

    func TestList_WithLabelSelectors(t *testing.T) {
    	r := NewTestREST(testResponse{result: probe.Success, data: "ok"})
    	opts := metainternalversion.ListOptions{
    		LabelSelector: labels.SelectorFromSet(map[string]string{
    			"testLabel": "testValue",
    		}),
    	}
    	got, err := r.List(genericapirequest.NewContext(), &opts)
    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	expect := &api.ComponentStatusList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 13 08:10:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top