- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRetrieveSpiffeBundleRootCerts (0.22 sec)
-
pkg/spiffe/spiffe_test.go
type handler struct { statusCode int body []byte } func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { w.WriteHeader(h.statusCode) w.Write(h.body) } func TestRetrieveSpiffeBundleRootCerts(t *testing.T) { // Create a fake handler whose response can be overridden for each test case. h := &handler{} // Create servers that will act as SPIFFE bundle endpoints. s1 := httptest.NewTLSServer(h)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 18.1K bytes - Viewed (0)