Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for expectedCDIDevices (0.18 sec)

  1. pkg/kubelet/cm/dra/manager_test.go

    				t.Fatalf("podUIDs mismatch: expected [%s], got %v", test.pod.UID, claimInfo.PodUIDs)
    			}
    			assert.ElementsMatchf(t, claimInfo.CDIDevices[test.resourceClaim.Status.DriverName], test.expectedCDIDevices,
    				"cdiDevices mismatch: expected [%v], got %v", test.expectedCDIDevices, claimInfo.CDIDevices[test.resourceClaim.Status.DriverName])
    		})
    	}
    }
    
    func TestUnprepareResources(t *testing.T) {
    	fakeKubeClient := fake.NewSimpleClientset()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:29 UTC 2024
    - 42K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/dra/claiminfo_test.go

    	annotationName := fmt.Sprintf("cdi.k8s.io/%s_%s", pluginName, claimUID)
    	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{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 13:30:31 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top