Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetNodeStagedVolumes (0.3 sec)

  1. pkg/volume/csi/csi_block_test.go

    	if err != nil {
    		t.Fatalf("mapper failed to SetupDevice: %v", err)
    	}
    
    	// Check if NodeStageVolume staged to the right path
    	svols := csiMapper.csiClient.(*fakeCsiDriverClient).nodeClient.GetNodeStagedVolumes()
    	svol, ok := svols[csiMapper.volumeID]
    	if !ok {
    		t.Error("csi server may not have received NodeStageVolume call")
    	}
    	if svol.Path != stagingPath {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  2. pkg/volume/csi/fake/fake_client.go

    	f.nodePublishedVolumes[volID] = CSIVolume{
    		Path:          deviceMountPath,
    		VolumeContext: volumeContext,
    	}
    }
    
    // GetNodeStagedVolumes returns node staged volumes
    func (f *NodeClient) GetNodeStagedVolumes() map[string]CSIVolume {
    	return f.nodeStagedVolumes
    }
    
    // AddNodeStagedVolume adds specified volume to nodeStagedVolumes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 16K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_attacher_test.go

    			// Verify call goes through all the way
    			numStaged := 1
    			if !tc.stageUnstageSet {
    				numStaged = 0
    			}
    
    			cdc := csiAttacher.csiClient.(*fakeCsiDriverClient)
    			staged := cdc.nodeClient.GetNodeStagedVolumes()
    			if len(staged) != numStaged {
    				t.Errorf("got wrong number of staged volumes, expecting %v got: %v", numStaged, len(staged))
    			}
    			if tc.stageUnstageSet {
    				vol, ok := staged[tc.volName]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_client_test.go

    			tc.fsType,
    			api.ReadWriteOnce,
    			tc.secrets,
    			map[string]string{"attr0": "val0"},
    			tc.mountOptions,
    			tc.fsGroup,
    		)
    		checkErr(t, tc.mustFail, err)
    
    		volumeMountGroup := nodeClient.GetNodeStagedVolumes()[tc.volID].VolumeMountGroup
    		if volumeMountGroup != tc.expectedVolumeMountGroup {
    			t.Errorf("expected VolumeMountGroup parameter in NodePublishVolumeRequest to be %q, got: %q", tc.expectedVolumeMountGroup, volumeMountGroup)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
Back to top