Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for setupClient (0.21 sec)

  1. pkg/volume/csi/csi_mounter_test.go

    				t.Fatalf("failed to make a new Mounter: %v", err)
    			}
    
    			if mounter == nil {
    				t.Fatal("failed to create CSI mounter")
    			}
    
    			csiMounter := mounter.(*csiMountMgr)
    			csiMounter.csiClient = setupClient(t, true)
    
    			attachID := getAttachmentName(csiMounter.volumeID, string(csiMounter.driverName), string(plug.host.GetNodeName()))
    
    			attachment := &storage.VolumeAttachment{
    				ObjectMeta: meta.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_client_test.go

    	resp, err := c.nodeClient.NodeGetCapabilities(ctx, req)
    	if err != nil {
    		return []*csipbv1.NodeServiceCapability{}, err
    	}
    	return resp.GetCapabilities(), nil
    }
    
    func setupClient(t *testing.T, stageUnstageSet bool) csiClient {
    	return newFakeCsiDriverClient(t, stageUnstageSet)
    }
    
    func setupClientWithExpansion(t *testing.T, stageUnstageSet bool, expansionSet bool) csiClient {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    			if err0 != nil {
    				t.Fatalf("failed to create new attacher: %v", err0)
    			}
    			csiAttacher := getCsiAttacherFromVolumeAttacher(attacher, tc.watchTimeout)
    			csiAttacher.csiClient = setupClient(t, tc.stageUnstageSet)
    
    			if tc.deviceMountPath != "" {
    				tc.deviceMountPath = filepath.Join(tmpDir, tc.deviceMountPath)
    			}
    			// Add the volume to NodeStagedVolumes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
Back to top