Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for expectedAnnotations (0.42 sec)

  1. pkg/kubelet/cm/util/cdi/cdi_test.go

    		description         string
    		deviceIDs           []string
    		expecteError        error
    		expectedAnnotations []container.Annotation
    	}{
    		{
    			description: "no devices",
    			deviceIDs:   []string{},
    		},
    		{
    			description:         "one device",
    			deviceIDs:           []string{"vendor.com/class=device1"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 09:47:53 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. plugin/pkg/admission/imagepolicy/admission_test.go

    		pod                 *api.Pod
    		verifierAnnotations map[string]string
    		expectedAnnotations map[string]string
    		wantErr             bool
    	}{
    		{
    			test: "Add valid response annotations",
    			pod:  goodPod("good"),
    			verifierAnnotations: map[string]string{
    				"foo-test": "true",
    				"bar-test": "false",
    			},
    			expectedAnnotations: map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 06:05:06 UTC 2023
    - 32.9K bytes
    - Viewed (0)
  3. pkg/kubelet/images/image_manager_test.go

    		assert.Equal(t, "", image.Spec.RuntimeHandler, "image.Spec.RuntimeHandler not empty", "ImageID", image.ID)
    
    		expectedAnnotations := []Annotation{
    			{
    				Name:  "kubernetes.io/runtimehandler",
    				Value: "handler_name",
    			}}
    		assert.Equal(t, expectedAnnotations, image.Spec.Annotations, "image spec annotations")
    	})
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. pkg/kubelet/nodestatus/setters_test.go

    				"Diff: %s", cmp.Diff(testCase.expectedAddresses, existingNode.Status.Addresses))
    			if testCase.expectedAnnotations != nil {
    				assert.True(t, apiequality.Semantic.DeepEqual(testCase.expectedAnnotations, existingNode.Annotations),
    					"Diff: %s", cmp.Diff(testCase.expectedAnnotations, existingNode.Annotations))
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/annotations/impl/DefaultTypeAnnotationMetadataStoreTest.groovy

                    def expectedAnnotation = expectedAnnotations[category]
                    if (expectedAnnotation instanceof Class) {
                        assert actualAnnotation.annotationType() == expectedAnnotation
                    } else if (expectedAnnotation instanceof Closure) {
                        assert expectedAnnotation.call(actualAnnotation)
                    } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Feb 11 15:31:37 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/dra/claiminfo_test.go

    	for _, test := range []struct {
    		description         string
    		claimInfo           *ClaimInfo
    		devices             []string
    		expectedCDIDevices  map[string][]string
    		expectedAnnotations map[string][]kubecontainer.Annotation
    		wantErr             bool
    	}{
    		{
    			description: "successfully add one device",
    			claimInfo: &ClaimInfo{
    				ClaimInfoState: state.ClaimInfoState{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
  7. pkg/controller/volume/expand/expand_controller_test.go

    			t.Fatalf("for: %s; expected expansionCalled to be %v but was %v", test.name, test.expansionCalled, expansionCalled)
    		}
    
    		if len(test.expectedAnnotation) != 0 && !reflect.DeepEqual(test.expectedAnnotation, pvc.Annotations) {
    			t.Fatalf("for: %s; expected %v annotations, got %v", test.name, test.expectedAnnotation, pvc.Annotations)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 11:00:37 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. pkg/controller/endpoint/endpoints_controller_test.go

    		numDesiredNotReady  int
    		numExpectedReady    int
    		numExpectedNotReady int
    		expectedAnnotation  bool
    	}{{
    		name:                "empty",
    		startingAnnotation:  nil,
    		numExisting:         0,
    		numDesired:          0,
    		numExpectedReady:    0,
    		numExpectedNotReady: 0,
    		expectedAnnotation:  false,
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
Back to top