MCPcopy Create free account
hub / github.com/containers/image / TestTlsConfigFromInvalidCertPath

Function TestTlsConfigFromInvalidCertPath

docker/daemon/client_test.go:45–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestTlsConfigFromInvalidCertPath(t *testing.T) {
46 ctx := &types.SystemContext{
47 DockerDaemonCertPath: "/foo/bar",
48 }
49
50 _, err := tlsConfig(ctx)
51 assert.ErrorContains(t, err, "could not read CA certificate")
52}
53
54func TestTlsConfigFromCertPath(t *testing.T) {
55 testDir := testDir(t)

Callers

nothing calls this directly

Calls 1

tlsConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…