(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func 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 | |
| 54 | func TestTlsConfigFromCertPath(t *testing.T) { |
| 55 | testDir := testDir(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…