Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewNonMutatingTestCases (0.25 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	testCases := append(webhooktesting.NewMutatingTestCases(serverURL, "test-webhooks"),
    		webhooktesting.ConvertToMutatingTestCases(webhooktesting.NewNonMutatingTestCases(serverURL), "test-webhooks")...)
    
    	for _, tt := range testCases {
    		// For now, skip failure cases or tests that explicitly skip benchmarking
    		if !tt.ExpectAllow || tt.SkipBenchmark {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go

    	if err != nil {
    		b.Fatalf("this should never happen? %v", err)
    	}
    
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	for _, tt := range webhooktesting.NewNonMutatingTestCases(serverURL) {
    		// For now, skip failure cases or tests that explicitly skip benchmarking
    		if !tt.ExpectAllow || tt.SkipBenchmark {
    			continue
    		}
    
    		b.Run(tt.Name, func(b *testing.B) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go

    		}
    	}
    	return mutating
    }
    
    // NewNonMutatingTestCases returns test cases with a given base url.
    // All test cases in NewNonMutatingTestCases have no Patch set in
    // AdmissionResponse. The test cases are used by both MutatingAdmissionWebhook
    // and ValidatingAdmissionWebhook.
    func NewNonMutatingTestCases(url *url.URL) []ValidatingTest {
    	policyFail := registrationv1.Fail
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 47.6K bytes
    - Viewed (0)
Back to top