- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewTestServerWithHandler (0.2 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
} // TestWebhookDuration tests that MutatingWebhook#Admit sets webhook duration in context correctly func TestWebhookDuration(ts *testing.T) { clk := clocktesting.FakeClock{} testServer := webhooktesting.NewTestServerWithHandler(ts, webhooktesting.ClockSteppingWebhookHandler(ts, &clk)) testServer.StartTLS() defer testServer.Close() serverURL, err := url.ParseRequestURI(testServer.URL) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go
// TestValidateWebhookDuration tests that ValidatingWebhook#Validate sets webhook duration in context correctly func TestValidateWebhookDuration(ts *testing.T) { clk := clocktesting.FakeClock{} testServer := webhooktesting.NewTestServerWithHandler(ts, webhooktesting.ClockSteppingWebhookHandler(ts, &clk)) testServer.StartTLS() defer testServer.Close() serverURL, err := url.ParseRequestURI(testServer.URL) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11.9K bytes - Viewed (0)