Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 532 for testCases (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    )
    
    func TestValidateAuthenticationConfiguration(t *testing.T) {
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.StructuredAuthenticationConfiguration, true)
    
    	testCases := []struct {
    		name              string
    		in                *api.AuthenticationConfiguration
    		disallowedIssuers []string
    		want              string
    	}{
    		{
    			name: "jwt authenticator is empty",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  2. security/pkg/nodeagent/caclient/providers/citadel/client_test.go

    		}
    		if err := file.Copy(filepath.Join(certDir, "key.pem"), dir, "key.pem"); err != nil {
    			t.Fatal(err)
    		}
    		checkSign(t, cli, false)
    	})
    }
    
    func TestCitadelClient(t *testing.T) {
    	testCases := map[string]struct {
    		server       mockCAServer
    		expectedCert []string
    		expectedErr  string
    		expectRetry  bool
    	}{
    		"Valid certs": {
    			server:       mockCAServer{Certs: fakeCert, Err: nil},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 21:03:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/TestClassExecutionResult.java

         */
        TestClassExecutionResult assertTestsExecuted(String... testNames);
    
        /**
         * Asserts that the given tests (and only the given tests) were executed for the given test class.
         *
         * This supports JUnit5 parameterized tests where the test name and display name may not match.
         */
        TestClassExecutionResult assertTestsExecuted(TestCase... testCases);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. istioctl/pkg/workload/workload_test.go

    			}
    
    			cmdWithClusterID := []string{
    				"entry", "configure",
    				"-f", path.Join("testdata/vmconfig", dir.Name(), "workloadgroup.yaml"),
    				"--internalIP", testCases[dir.Name()]["internalIP"],
    				"--ingressIP", testCases[dir.Name()]["ingressIP"],
    				"--clusterID", constants.DefaultClusterName,
    				"--revision", "rev-1",
    				"-o", testdir,
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. src/encoding/xml/xml_test.go

    	}
    
    	s := &Test{Ns: "http://example.com/ns", Body: "hello world"}
    	return Marshal(s)
    }
    
    func TestIssue11405(t *testing.T) {
    	testCases := []string{
    		"<root>",
    		"<root><foo>",
    		"<root><foo></foo>",
    	}
    	for _, tc := range testCases {
    		d := NewDecoder(strings.NewReader(tc))
    		var err error
    		for {
    			_, err = d.Token()
    			if err != nil {
    				break
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute1StaticInstrumentationInDynamicGroovyWithIndyIntegrationTest.groovy

        @Override
        def indyModes() {
            return [true]
        }
    
        @Override
        def testCases() {
            // static import calls (are handled differently by the dynamic Groovy's codegen)
            return [
                // varInitializer | processCreator | expectedPwdSuffix | expectedEnvVar
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. pkg/volume/util/resize_util_test.go

    				},
    			},
    		},
    	}
    
    	for _, testcase := range testCases {
    		updatePVC := MergeResizeConditionOnPVC(testcase.pvc, testcase.newConditions)
    
    		updateConditions := updatePVC.Status.Conditions
    		if !reflect.DeepEqual(updateConditions, testcase.finalConditions) {
    			t.Errorf("Expected updated conditions for test %s to be %v but got %v",
    				testcase.description,
    				testcase.finalConditions, updateConditions)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  8. pkg/registry/core/pod/storage/storage_test.go

    		}
    
    		binding := validNewBinding()
    		binding.UID = testCase.podUIDGetter(podCreated.(*api.Pod))
    		binding.ResourceVersion = testCase.podResourceVersionGetter(podCreated.(*api.Pod))
    
    		if _, err := bindingStorage.Create(ctx, binding.Name, binding, rest.ValidateAllObjectFunc, &metav1.CreateOptions{}); !testCase.errOK(err) {
    			t.Errorf("%s: unexpected error: %v", k, err)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute1InstanceInstrumentationInDynamicGroovyWithIndyIntegrationTest.groovy

        @Override
        def indyModes() {
            return [true]
        }
    
        @Override
        def testCases() {
            return [
                // varInitializer | processCreator | expectedPwdSuffix | expectedEnvVar
                [fromString(), "command.execute()", "", ""],
                [fromGroovyString(), "command.execute()", "", ""],
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. security/pkg/server/ca/server_test.go

    					t.Errorf("Case %s: expecting cert to be (%s) but got (%s) at position [%d] of cert chain.",
    						id, mockCertChain, v, i)
    				}
    			}
    		}
    	}
    }
    
    func TestCreateCertificate(t *testing.T) {
    	testCases := map[string]struct {
    		authenticators []security.Authenticator
    		ca             CertificateAuthority
    		certChain      []string
    		code           codes.Code
    	}{
    		"No authenticator": {
    			authenticators: nil,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top