Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for expectedVolumeName (0.24 sec)

  1. pkg/controller/volume/attachdetach/populator/desired_state_of_world_populator_test.go

    	dswp.findAndAddActivePods(logger)
    
    	expectedVolumeName := v1.UniqueVolumeName(generatedVolumeName)
    
    	//check if the given volume referenced by the pod is added to dsw
    	volumeExists := dswp.desiredStateOfWorld.VolumeExists(expectedVolumeName, k8stypes.NodeName(pod.Spec.NodeName))
    	if !volumeExists {
    		t.Fatalf(
    			"VolumeExists(%q) failed. Expected: <true> Actual: <%v>",
    			expectedVolumeName,
    			volumeExists)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. pkg/kubelet/volumemanager/populator/desired_state_of_world_populator_test.go

    	}
    
    	volumeExists := dswp.desiredStateOfWorld.VolumeExists(expectedVolumeName, "" /* SELinuxContext */)
    	if volumeExists {
    		t.Fatalf(
    			"VolumeExists(%q) failed. Expected: <false> Actual: <%v>",
    			expectedVolumeName,
    			volumeExists)
    	}
    
    	if podExistsInVolume := dswp.desiredStateOfWorld.PodExistsInVolume(
    		podName, expectedVolumeName, "" /* SELinuxContext */); podExistsInVolume {
    		t.Fatalf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    		expectedVolumeName,
    		globallyMountedVolumes)
    }
    
    func verifyVolumeExistsInGloballyMountedVolumesWithSELinux(
    	t *testing.T, expectedVolumeName v1.UniqueVolumeName, expectedSELinuxContext string, asw ActualStateOfWorld) {
    	globallyMountedVolumes := asw.GetGloballyMountedVolumes()
    	for _, volume := range globallyMountedVolumes {
    		if volume.VolumeName == expectedVolumeName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/cache/desired_state_of_world_test.go

    	volumeExists := dsw.VolumeExists(expectedVolumeName, expectedSELinuxContext)
    	if volumeExists {
    		t.Fatalf(
    			"VolumeExists(%q) returned incorrect value. Expected: <false> Actual: <%v>",
    			expectedVolumeName,
    			volumeExists)
    	}
    }
    
    func verifyVolumeExistsInVolumesToMount(
    	t *testing.T,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 34K bytes
    - Viewed (0)
  5. pkg/controller/volume/attachdetach/cache/desired_state_of_world_test.go

    	t *testing.T,
    	volumesToAttach []VolumeToAttach,
    	expectedNodeName k8stypes.NodeName,
    	expectedVolumeName v1.UniqueVolumeName,
    	expectedVolumeSpecName string) {
    	for _, volumeToAttach := range volumesToAttach {
    		if volumeToAttach.NodeName == expectedNodeName &&
    			volumeToAttach.VolumeName == expectedVolumeName &&
    			volumeToAttach.VolumeSpec.Name() == expectedVolumeSpecName {
    			return
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 10:42:15 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go

    	t *testing.T,
    	attachedVolumes []AttachedVolume,
    	expectedVolumeName v1.UniqueVolumeName,
    	expectedVolumeSpecName string,
    	expectedNodeName types.NodeName,
    	expectedDevicePath string,
    	expectedMountedByNode,
    	expectNonZeroDetachRequestedTime bool) {
    	for _, attachedVolume := range attachedVolumes {
    		if attachedVolume.VolumeName == expectedVolumeName &&
    			attachedVolume.VolumeSpec.Name() == expectedVolumeSpecName &&
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 66.1K bytes
    - Viewed (0)
Back to top