- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ClockSteppingWebhookHandler (0.23 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/webhook_server.go
Allowed: true, }, }) default: http.NotFound(w, r) } } // ClockSteppingWebhookHandler given a fakeClock returns a request handler // that moves time in given clock by an amount specified in the webhook request func ClockSteppingWebhookHandler(t testing.TB, fakeClock *testingclock.FakeClock) func(http.ResponseWriter, *http.Request) { return func(w http.ResponseWriter, r *http.Request) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 15 11:11:25 UTC 2021 - 6.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
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 { ts.Fatalf("this should never happen? %v", err) }
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
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 { ts.Fatalf("this should never happen? %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11.9K bytes - Viewed (0)