Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 82 for testvol (0.14 sec)

  1. pkg/volume/csi/csi_plugin_test.go

    			driverName: "testdr",
    			volName:    "testvol",
    			spec:       volume.NewSpecFromPersistentVolume(makeTestPV("test-pv", 10, "testdr", "testvol"), false),
    		},
    		{
    			name:       "mixchar driver",
    			driverName: "test.dr.cc",
    			volName:    "testvol",
    			spec:       volume.NewSpecFromPersistentVolume(makeTestPV("test-pv", 10, "test.dr.cc", "testvol"), false),
    		},
    		{
    			name:       "mixchar volume",
    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/util/subpath/subpath_linux_test.go

    			prepare: func(base string) ([]mount.MountPoint, error) {
    				path := filepath.Join(base, containerSubPathDirectoryName, testVol, "container1", "0")
    				path2 := filepath.Join(base, containerSubPathDirectoryName, testVol, "container1", "1")
    				path3 := filepath.Join(base, containerSubPathDirectoryName, testVol, "container2", "1")
    				if err := os.MkdirAll(path, defaultPerm); err != nil {
    					return nil, err
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
  3. cmd/bitrot_test.go

    package cmd
    
    import (
    	"context"
    	"io"
    	"testing"
    )
    
    func testBitrotReaderWriterAlgo(t *testing.T, bitrotAlgo BitrotAlgorithm) {
    	tmpDir := t.TempDir()
    
    	volume := "testvol"
    	filePath := "testfile"
    
    	disk, err := newLocalXLStorage(tmpDir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	disk.MakeVol(context.Background(), volume)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_mounter_test.go

    	fakecsi "k8s.io/kubernetes/pkg/volume/csi/fake"
    	"k8s.io/kubernetes/pkg/volume/util"
    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    var (
    	testDriver  = "test-driver"
    	testVol     = "vol-123"
    	testns      = "test-ns"
    	testPod     = "test-pod"
    	testPodUID  = types.UID("test-pod")
    	testAccount = "test-service-account"
    )
    
    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_block_test.go

    	registerFakePlugin(testDriver, "endpoint", []string{"1.0.0"}, t)
    	pv := makeTestPV(specVolumeName, 10, testDriver, testVol)
    	spec := volume.NewSpecFromPersistentVolume(pv, pv.Spec.PersistentVolumeSource.CSI.ReadOnly)
    	mapper, err := plug.NewBlockVolumeMapper(
    		spec,
    		&api.Pod{ObjectMeta: metav1.ObjectMeta{UID: testPodUID, Namespace: testns, Name: testPod}},
    		volume.VolumeOptions{},
    	)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  6. pkg/volume/csi/csi_attacher_test.go

    	}{
    		{
    			name:       "test ok 1",
    			nodeName:   "testnode-01",
    			driverName: "testdriver-01",
    			volumeName: "testvol-01",
    			attachID:   getAttachmentName("testvol-01", "testdriver-01", "testnode-01"),
    			spec:       volume.NewSpecFromPersistentVolume(makeTestPV("pv01", 10, "testdriver-01", "testvol-01"), false),
    		},
    		{
    			name:       "test ok 2",
    			nodeName:   "node02",
    			driverName: "driver02",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  7. cmd/xl-storage_test.go

    		t.Fatalf("Unable to create file, %s", err)
    	}
    
    	testCases := []struct {
    		srcVol      string
    		destVol     string
    		srcPath     string
    		destPath    string
    		expectedErr error
    	}{
    		// TestXLStorage case - 1.
    		{
    			srcVol:      "src-vol",
    			destVol:     "dest-vol",
    			srcPath:     "file1",
    			destPath:    "file-one",
    			expectedErr: nil,
    		},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 11 17:45:28 UTC 2024
    - 66.7K bytes
    - Viewed (0)
  8. pkg/controller/tainteviction/timed_workers_test.go

    	wg.Wait()
    	lastVal := atomic.LoadInt32(&testVal)
    	if lastVal != 5 {
    		t.Errorf("Expected testVal = 5, got %v", lastVal)
    	}
    }
    
    func TestExecuteDelayed(t *testing.T) {
    	testVal := int32(0)
    	wg := sync.WaitGroup{}
    	wg.Add(5)
    	queue := CreateWorkerQueue(func(ctx context.Context, fireAt time.Time, args *WorkArgs) error {
    		atomic.AddInt32(&testVal, 1)
    		wg.Done()
    		return nil
    	})
    	now := time.Now()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:23:56 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  9. src/math/big/calibrate_test.go

    		karatsubaSqrThreshold = words - 1
    	}
    
    	var testval int64
    	for i := 0; i < nruns; i++ {
    		res := testing.Benchmark(func(b *testing.B) { benchmarkNatSqr(b, words) })
    		testval += res.NsPerOp()
    	}
    	testval /= int64(nruns)
    
    	basicSqrThreshold, karatsubaSqrThreshold = initBasicSqr, initKaratsubaSqr
    
    	return time.Duration(testval)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. pkg/scheduler/schedule_one_test.go

    	queuedPodStore := clientcache.NewFIFO(clientcache.MetaNamespaceKeyFunc)
    	pod := podWithID("foo", "")
    	pod.Namespace = "foo-ns"
    	pod.Spec.Volumes = append(pod.Spec.Volumes, v1.Volume{Name: "testVol",
    		VolumeSource: v1.VolumeSource{PersistentVolumeClaim: &v1.PersistentVolumeClaimVolumeSource{ClaimName: "testPVC"}}})
    	queuedPodStore.Add(pod)
    	scache := internalcache.New(ctx, 10*time.Minute)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
Back to top