|
|
@ -46,7 +46,7 @@ func TestClientConfig(t *testing.T) {
|
|
|
|
t.Fatalf("expecting 1 client certificates, got %d", got)
|
|
|
|
t.Fatalf("expecting 1 client certificates, got %d", got)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.InsecureSkipVerify {
|
|
|
|
if cfg.InsecureSkipVerify {
|
|
|
|
t.Fatalf("insecure skip verify mistmatch, expecting false")
|
|
|
|
t.Fatalf("insecure skip verify mismatch, expecting false")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.RootCAs == nil {
|
|
|
|
if cfg.RootCAs == nil {
|
|
|
|
t.Fatalf("mismatch tls RootCAs, expecting non-nil")
|
|
|
|
t.Fatalf("mismatch tls RootCAs, expecting non-nil")
|
|
|
@ -75,7 +75,7 @@ func TestNewClientTLS(t *testing.T) {
|
|
|
|
t.Fatalf("expecting 1 client certificates, got %d", got)
|
|
|
|
t.Fatalf("expecting 1 client certificates, got %d", got)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.InsecureSkipVerify {
|
|
|
|
if cfg.InsecureSkipVerify {
|
|
|
|
t.Fatalf("insecure skip verify mistmatch, expecting false")
|
|
|
|
t.Fatalf("insecure skip verify mismatch, expecting false")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.RootCAs == nil {
|
|
|
|
if cfg.RootCAs == nil {
|
|
|
|
t.Fatalf("mismatch tls RootCAs, expecting non-nil")
|
|
|
|
t.Fatalf("mismatch tls RootCAs, expecting non-nil")
|
|
|
@ -90,7 +90,7 @@ func TestNewClientTLS(t *testing.T) {
|
|
|
|
t.Fatalf("expecting 0 client certificates, got %d", got)
|
|
|
|
t.Fatalf("expecting 0 client certificates, got %d", got)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.InsecureSkipVerify {
|
|
|
|
if cfg.InsecureSkipVerify {
|
|
|
|
t.Fatalf("insecure skip verify mistmatch, expecting false")
|
|
|
|
t.Fatalf("insecure skip verify mismatch, expecting false")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.RootCAs == nil {
|
|
|
|
if cfg.RootCAs == nil {
|
|
|
|
t.Fatalf("mismatch tls RootCAs, expecting non-nil")
|
|
|
|
t.Fatalf("mismatch tls RootCAs, expecting non-nil")
|
|
|
@ -105,7 +105,7 @@ func TestNewClientTLS(t *testing.T) {
|
|
|
|
t.Fatalf("expecting 1 client certificates, got %d", got)
|
|
|
|
t.Fatalf("expecting 1 client certificates, got %d", got)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.InsecureSkipVerify {
|
|
|
|
if cfg.InsecureSkipVerify {
|
|
|
|
t.Fatalf("insecure skip verify mistmatch, expecting false")
|
|
|
|
t.Fatalf("insecure skip verify mismatch, expecting false")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if cfg.RootCAs != nil {
|
|
|
|
if cfg.RootCAs != nil {
|
|
|
|
t.Fatalf("mismatch tls RootCAs, expecting nil")
|
|
|
|
t.Fatalf("mismatch tls RootCAs, expecting nil")
|
|
|
|