Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for prepareVolumeInfoFile (0.22 sec)

  1. pkg/volume/csi/csi_plugin_test.go

    				t.Fatal(err)
    			}
    			if mounter == nil {
    				t.Fatal("failed to create CSI mounter")
    			}
    			csiMounter := mounter.(*csiMountMgr)
    
    			mountPath := filepath.Dir(csiMounter.GetPath())
    			err = prepareVolumeInfoFile(mountPath, plug, tc.originSpec.Name(), csiMounter.volumeID, testDriver, string(csiMounter.volumeLifecycleMode), tc.originSELinuxMountContext)
    			if err != nil {
    				t.Fatalf("failed to save fake volume info file: %s", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_mounter_test.go

    var (
    	testDriver  = "test-driver"
    	testVol     = "vol-123"
    	testns      = "test-ns"
    	testPod     = "test-pod"
    	testPodUID  = types.UID("test-pod")
    	testAccount = "test-service-account"
    )
    
    func prepareVolumeInfoFile(mountPath string, plug *csiPlugin, specVolumeName, volumeID, driverName, lifecycleMode, seLinuxMountContext string) error {
    	nodeName := string(plug.host.GetNodeName())
    	volData := map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
Back to top