Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 535 for testCases (0.33 sec)

  1. pkg/volume/csi/csi_mounter_test.go

    	}
    	return nil
    }
    
    func TestMounterGetPath(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    	// TODO (vladimirvivien) specName with slashes will not work
    	testCases := []struct {
    		name           string
    		specVolumeName string
    		path           string
    	}{
    		{
    			name:           "simple specName",
    			specVolumeName: "spec-0",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  2. pkg/controlplane/apiserver/options/validation_test.go

    			if !strings.Contains(errMessageGot, conflict) {
    				t.Errorf("Expected error message to contain: %q, but got: %q", conflict, errMessageGot)
    			}
    		})
    	}
    }
    
    func TestValidateOptions(t *testing.T) {
    	testCases := []struct {
    		name         string
    		options      *Options
    		expectErrors bool
    	}{
    		{
    			name:         "validate master count equal 0",
    			expectErrors: true,
    			options: &Options{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/RuntimeExec1InstrumentationInDynamicGroovyWithIndyIntegrationTest.groovy

        @Override
        def indyModes() {
            return [true]
        }
    
        @Override
        def testCases() {
            return [
                // varInitializer | processCreator | expectedPwdSuffix | expectedEnvVar
                [fromString(), "Runtime.getRuntime().exec(command)", "", ""],
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/RuntimeExec2InstrumentationInDynamicGroovyWithIndyIntegrationTest.groovy

        @Override
        def indyModes() {
            return [true]
        }
    
        @Override
        def testCases() {
            return [
                // varInitializer | processCreator | expectedPwdSuffix | expectedEnvVar
                // Runtime.exec() overloads
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. cmd/object-api-putobject_test.go

    		},
    	}
    	for i, testCase := range testCases {
    		in := mustGetPutObjReader(t, bytes.NewReader(testCase.inputData), testCase.inputDataSize, testCase.inputMeta["etag"], testCase.inputSHA256)
    		objInfo, actualErr := obj.PutObject(context.Background(), testCase.bucketName, testCase.objName, in, ObjectOptions{UserDefined: testCase.inputMeta})
    		if actualErr != nil && testCase.expectedError == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. pkg/api/pod/util_test.go

    			},
    		},
    	}
    	for _, tc := range testCases {
    		t.Run(tc.desc, func(t *testing.T) {
    			MarkPodProposedForResize(tc.oldPod, tc.newPod)
    			if diff := cmp.Diff(tc.expectedPod, tc.newPod); diff != "" {
    				t.Errorf("unexpected pod spec (-want, +got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestDropClusterTrustBundleProjectedVolumes(t *testing.T) {
    	testCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  7. pkg/config/validation/validation_test.go

    		})
    	}
    }
    
    func TestValidateHTTPHeaderName(t *testing.T) {
    	testCases := []struct {
    		name  string
    		valid bool
    	}{
    		{name: "header1", valid: true},
    		{name: "X-Requested-With", valid: true},
    		{name: "", valid: false},
    	}
    
    	for _, tc := range testCases {
    		if got := ValidateHTTPHeaderName(tc.name); (got == nil) != tc.valid {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  8. tests/integration/security/egress_gateway_origination_test.go

    			ingressutil.CreateIngressKubeSecret(t, fakeCredName, ingressutil.TLS, CredentialB, false)
    
    			// Set up Host Namespace
    			host := apps.External.All.Config().ClusterLocalFQDN()
    
    			testCases := []struct {
    				name            string
    				statusCode      int
    				credentialToUse string
    				useGateway      bool
    			}{
    				// Use CA certificate stored as k8s secret with the same issuing CA as server's CA.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. tests/integration/pilot/workloadentry_test.go

        topology.istio.io/cluster: {{.clusterName}}
    spec:
      address: "{{.address}}"
      network: "{{.network}}"
    {{- if gt .targetPort 0 }}
      ports:
        http: {{ .targetPort }}
    {{- end }}
    `
    
    			testCases := []struct {
    				name            string
    				addressFunc     func(nw string) string
    				targetPortFunc  func(nw string) int
    				networkNameFunc func(nw string) string
    			}{
    				{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go

    )
    
    func TestLRUCacheLookup(t *testing.T) {
    	namespace := "foo"
    	resourceQuota := &corev1.ResourceQuota{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "foo",
    			Namespace: namespace,
    		},
    	}
    
    	testcases := []struct {
    		description   string
    		cacheInput    []*corev1.ResourceQuota
    		clientInput   []runtime.Object
    		ttl           time.Duration
    		namespace     string
    		expectedQuota *corev1.ResourceQuota
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top