MCPcopy
hub / github.com/etcd-io/etcd / createTLSInfo

Function createTLSInfo

pkg/proxy/server_test.go:163–174  ·  view source on GitHub ↗
(lg *zap.Logger, secure bool)

Source from the content-addressed store, hash-verified

161}
162
163func createTLSInfo(lg *zap.Logger, secure bool) transport.TLSInfo {
164 if secure {
165 return transport.TLSInfo{
166 KeyFile: "../../tests/fixtures/server.key.insecure",
167 CertFile: "../../tests/fixtures/server.crt",
168 TrustedCAFile: "../../tests/fixtures/ca.crt",
169 ClientCertAuth: true,
170 Logger: lg,
171 }
172 }
173 return transport.TLSInfo{Logger: lg}
174}
175
176func TestServer_Unix_Insecure_DelayAccept(t *testing.T) { testServerDelayAccept(t, false) }
177func TestServer_Unix_Secure_DelayAccept(t *testing.T) { testServerDelayAccept(t, true) }

Callers 3

testServerFunction · 0.85
testServerDelayAcceptFunction · 0.85
testServerHTTPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…