- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for newTestServer (0.23 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go
b.Log("to run a standalone server, run:") b.Log("go run k8s.io/apiserver/pkg/admission/plugin/webhook/testing/main/main.go") testServer := webhooktesting.NewTestServer(b) testServer.StartTLS() defer testServer.Close() testServerURL = testServer.URL } objectInterfaces := webhooktesting.NewObjectInterfacesForTest() serverURL, err := url.ParseRequestURI(testServerURL)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:52 UTC 2024 - 11.9K bytes - Viewed (0) -
plugin/pkg/admission/imagepolicy/admission_test.go
} }) } } // Service mocks a remote service. type Service interface { Review(*v1alpha1.ImageReview) HTTPStatusCode() int } // NewTestServer wraps a Service as an httptest.Server. func NewTestServer(s Service, cert, key, caCert []byte) (*httptest.Server, error) { var tlsConfig *tls.Config if cert != nil { cert, err := tls.X509KeyPair(cert, key) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 06:05:06 UTC 2023 - 32.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go
b.Log("to run a standalone server, run:") b.Log("go run k8s.io/apiserver/pkg/admission/plugin/webhook/testing/main/main.go") testServer := webhooktesting.NewTestServer(b) testServer.StartTLS() defer testServer.Close() testServerURL = testServer.URL } serverURL, err := url.ParseRequestURI(testServerURL) if err != nil { b.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) -
pilot/cmd/pilot-agent/status/server_test.go
} // error case, error string should match. if !strings.Contains(err.Error(), tc.err) { t.Errorf("test case failed [%v], expect error %v, got %v", tc.probe, tc.err, err) } } } func NewTestServer(t test.Failer, o Options) *Server { if o.PrometheusRegistry == nil { o.PrometheusRegistry = TestingRegistry(t) } server, err := NewServer(o) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/webhook/webhook_test.go
} lastSHA1SigCounter := 0 for _, tt := range tests { // Use a closure so defer statements trigger between loop iterations. func() { // Create and start a simple HTTPS server server, err := newTestServer(tt.serverCert, tt.serverKey, tt.serverCA, nil) if err != nil { t.Errorf("%s: failed to create server: %v", tt.test, err) return } serverURL, err := url.Parse(server.URL) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 25.8K bytes - Viewed (0) -
src/cmd/go/proxy_test.go
testSumDBSignerKey = "PRIVATE+KEY+localhost.localdev/sumdb+00000c67+AXu6+oaVaOYuQOFrf1V59JK1owcFlJcHwwXHDfDGxSPk" ) var ( sumdbOps = sumdb.NewTestServer(testSumDBSignerKey, proxyGoSum) sumdbServer = sumdb.NewServer(sumdbOps) sumdbWrongOps = sumdb.NewTestServer(testSumDBSignerKey, proxyGoSumWrong) sumdbWrongServer = sumdb.NewServer(sumdbWrongOps) ) // proxyHandler serves the Go module proxy protocol.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 03 09:56:24 UTC 2023 - 12K bytes - Viewed (0)