(t *testing.T)
| 69 | } |
| 70 | |
| 71 | func TestSkipTLSVerifyOnly(t *testing.T) { |
| 72 | //testDir := testDir(t) |
| 73 | |
| 74 | ctx := &types.SystemContext{ |
| 75 | DockerDaemonInsecureSkipTLSVerify: true, |
| 76 | } |
| 77 | |
| 78 | httpClient, err := tlsConfig(ctx) |
| 79 | |
| 80 | assert.NoError(t, err, "There should be no error creating the HTTP client") |
| 81 | |
| 82 | tlsConfig := httpClient.Transport.(*http.Transport).TLSClientConfig |
| 83 | assert.True(t, tlsConfig.InsecureSkipVerify, "TLS verification should be skipped") |
| 84 | assert.Len(t, tlsConfig.Certificates, 0, "There should be no certificate") |
| 85 | } |
| 86 | |
| 87 | func TestSpecifyPlainHTTPViaHostScheme(t *testing.T) { |
| 88 | host := "http://127.0.0.1:2376" |
nothing calls this directly
no test coverage detected
searching dependent graphs…