Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 18 of 18 for expectedPatch (0.2 sec)

  1. pkg/volume/fc/fc_test.go

    	}
    	if mounter == nil {
    		t.Errorf("Got a nil Mounter: %v", err)
    	}
    
    	path := mounter.GetPath()
    	expectedPath := filepath.Join(tmpDir, "pods/poduid/volumes/kubernetes.io~fc/vol1")
    	if path != expectedPath {
    		t.Errorf("Unexpected path, expected %q, got: %q", expectedPath, path)
    	}
    
    	if err := mounter.SetUp(volume.MounterArgs{}); err != nil {
    		t.Errorf("Expected success, got: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
  2. pkg/volume/local/local_test.go

    	tests := []struct {
    		name         string
    		mountPoints  []mount.MountPoint
    		expectedPath string
    	}{
    		{
    			name: "filesystem volume with directory source",
    			mountPoints: []mount.MountPoint{
    				{
    					Device: "/mnt/disk/ssd0",
    					Path:   "pods/poduid/volumes/kubernetes.io~local-volume/pvA",
    				},
    			},
    			expectedPath: "",
    		},
    		{
    			name: "filesystem volume with block source",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  3. pkg/volume/iscsi/iscsi_test.go

    	}
    	if mounter == nil {
    		t.Error("Got a nil Mounter")
    	}
    
    	path := mounter.GetPath()
    	expectedPath := filepath.Join(tmpDir, "pods/poduid/volumes/kubernetes.io~iscsi/vol1")
    	if path != expectedPath {
    		t.Errorf("Unexpected path, expected %q, got: %q", expectedPath, path)
    	}
    
    	if err := mounter.SetUp(volume.MounterArgs{}); err != nil {
    		t.Errorf("Expected success, got: %v", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 16.4K bytes
    - Viewed (0)
  4. tests/integration/pilot/tunneling_test.go

    		return fmt.Errorf("expected to get 200 status code, got: %s", res.Responses[0].Code)
    	}
    	return nil
    }
    
    func verifyThatRequestWasTunneled(target echo.Instance, expectedSourceIPs []corev1.PodIP, expectedPath string) error {
    	workloads, err := target.Workloads()
    	if err != nil {
    		return fmt.Errorf("failed to get workloads of %s: %s", target.ServiceName(), err)
    	}
    	var logs strings.Builder
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/sftp/SFTPServer.groovy

            return sshServer
        }
    
    
        boolean hasFile(String filePathToCheck) {
            new File(baseDir, filePathToCheck).exists()
        }
    
        TestFile file(String expectedPath) {
            new TestFile(new File(baseDir, expectedPath))
        }
    
        URI getUri() {
            return new URI("sftp://${hostAddress}:${port}")
        }
    
        void allowAll() {
            expectations << new SftpAllowAll()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. pkg/kubelet/prober/prober_manager_test.go

    	var unexpected []probeKey
    	missing := make([]probeKey, len(expectedProbes))
    	copy(missing, expectedProbes)
    
    outer:
    	for probePath := range m.workers {
    		for i, expectedPath := range missing {
    			if probePath == expectedPath {
    				missing = append(missing[:i], missing[i+1:]...)
    				continue outer
    			}
    		}
    		unexpected = append(unexpected, probePath)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/match_test.go

    		}
    		for _, digests2 := range digests1 {
    			for _, digest := range digests2 {
    				actualMatch := matchesFlowSchema(digest, ftr.fs)
    				if expectMatch != actualMatch {
    					t.Errorf("Fail for %s vs %#+v: expectedMatch=%v, actualMatch=%v", fcfmt.Fmt(ftr.fs), digest, expectMatch, actualMatch)
    				}
    			}
    		}
    	}
    }
    
    func TestPolicyRules(t *testing.T) {
    	rngOuter := rand.New(rand.NewSource(42))
    	for i := 0; i < 300; i++ {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:35 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  8. pkg/volume/util/subpath/subpath_linux_test.go

    	tests := []struct {
    		name string
    		// Function that prepares directory structure for the test under given
    		// base.
    		prepare      func(base string) error
    		path         string
    		expectedPath string
    		expectedDirs []string
    		expectError  bool
    	}{
    		{
    			"directory-does-not-exist",
    			func(base string) error {
    				return nil
    			},
    			"directory",
    			"",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 10 16:52:55 UTC 2021
    - 37.3K bytes
    - Viewed (0)
Back to top