MCPcopy Index your code
hub / github.com/go-task/task / TestBuildHTTPClient_Insecure

Function TestBuildHTTPClient_Insecure

taskfile/node_http_test.go:71–84  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestBuildHTTPClient_Insecure(t *testing.T) {
72 t.Parallel()
73
74 client, err := buildHTTPClient(true, "", "", "")
75 require.NoError(t, err)
76 require.NotNil(t, client)
77 assert.NotEqual(t, http.DefaultClient, client)
78
79 // Check that InsecureSkipVerify is set
80 transport, ok := client.Transport.(*http.Transport)
81 require.True(t, ok)
82 require.NotNil(t, transport.TLSClientConfig)
83 assert.True(t, transport.TLSClientConfig.InsecureSkipVerify)
84}
85
86func TestBuildHTTPClient_CACert(t *testing.T) {
87 t.Parallel()

Callers

nothing calls this directly

Calls 1

buildHTTPClientFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…