Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for test_pod_uid (0.28 sec)

  1. pkg/volume/csi/csi_util_test.go

    	}
    
    	for i, tc := range testCases {
    		t.Logf("test case: %s", tc.name)
    		specVolID := fmt.Sprintf("spec-volid-%d", i)
    		targetPath := getTargetPath(testPodUID, specVolID, plug.host)
    		mountDir := filepath.Join(targetPath, "mount")
    		if err := os.MkdirAll(mountDir, 0755); err != nil && !os.IsNotExist(err) {
    			t.Errorf("failed to create dir [%s]: %v", mountDir, err)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_block_test.go

    			path:           filepath.Join(tmpDir, fmt.Sprintf("plugins/kubernetes.io/csi/volumeDevices/publish/%s/%s", "spec-0", testPodUID)),
    		},
    		{
    			name:           "specName with dots",
    			specVolumeName: "test.spec.1",
    			path:           filepath.Join(tmpDir, fmt.Sprintf("plugins/kubernetes.io/csi/volumeDevices/publish/%s/%s", "test.spec.1", testPodUID)),
    		},
    	}
    	for _, tc := range testCases {
    		t.Logf("test case: %s", tc.name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  3. pkg/controller/resourceclaim/controller_test.go

    	testNamespace        = "my-namespace"
    	testPodUID           = types.UID("uidpod1")
    	otherNamespace       = "not-my-namespace"
    	podResourceClaimName = "acme-resource"
    	templateName         = "my-template"
    	className            = "my-resource-class"
    	nodeName             = "worker"
    
    	testPod             = makePod(testPodName, testNamespace, testPodUID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_mounter_test.go

    			path:           filepath.Join(tmpDir, fmt.Sprintf("pods/%s/volumes/kubernetes.io~csi/%s/%s", testPodUID, "spec-0", "/mount")),
    		},
    		{
    			name:           "specName with dots",
    			specVolumeName: "test.spec.1",
    			path:           filepath.Join(tmpDir, fmt.Sprintf("pods/%s/volumes/kubernetes.io~csi/%s/%s", testPodUID, "test.spec.1", "/mount")),
    		},
    	}
    	for _, tc := range testCases {
    		t.Logf("test case: %s", tc.name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_plugin_test.go

    	}
    
    	// test unmounter
    	unmounter, err := plug.NewUnmounter(pv.ObjectMeta.Name, testPodUID)
    	csiUnmounter := unmounter.(*csiMountMgr)
    
    	if err != nil {
    		t.Fatalf("Failed to make a new Unmounter: %v", err)
    	}
    
    	if csiUnmounter == nil {
    		t.Fatal("failed to create CSI Unmounter")
    	}
    
    	if csiUnmounter.podUID != testPodUID {
    		t.Error("podUID not set")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  6. pkg/kubelet/prober/worker_test.go

    	}
    }
    
    func TestCleanUp(t *testing.T) {
    	m := newTestManager()
    
    	for _, probeType := range [...]probeType{liveness, readiness, startup} {
    		key := probeKey{testPodUID, testContainerName, probeType}
    		w := newTestWorker(m, probeType, v1.Probe{})
    		m.statusManager.SetPodStatus(w.pod, getTestRunningStatusWithStarted(probeType != startup))
    		go w.run()
    		m.workers[key] = w
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 23:48:10 UTC 2023
    - 16.1K bytes
    - Viewed (0)
Back to top