- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestNewServer (0.13 sec)
-
internal/http/server_test.go
package http import ( "crypto/tls" "fmt" "net/http" "reflect" "testing" "github.com/minio/pkg/v3/certs" ) func TestNewServer(t *testing.T) { nonLoopBackIP := getNonLoopBackIP(t) handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello, world") }) testCases := []struct { addrs []string
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 2.7K bytes - Viewed (0) -
pilot/pkg/bootstrap/server_test.go
// Validate that istiod cert is updated. g.Eventually(func() bool { return checkCert(t, s, testcerts.RotatedCert, testcerts.RotatedKey) }, "10s", "100ms").Should(BeTrue()) } func TestNewServer(t *testing.T) { // All of the settings to apply and verify. Currently just testing domain suffix, // but we should expand this list. cases := []struct { name string domain string
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 23.1K bytes - Viewed (0) -
pilot/cmd/pilot-agent/status/server_test.go
w.Write([]byte("welcome, it works")) case "status": code, _ := strconv.Atoi(segments[1]) w.Header().Set("Location", "/") w.WriteHeader(code) default: return } } func TestNewServer(t *testing.T) { testCases := []struct { probe string err string }{ // Json can't be parsed. { probe: "invalid-prober-json-encoding", err: "failed to decode", },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 15:07:03 UTC 2024 - 42.6K bytes - Viewed (0)