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

Function TestDefaultClientConfig

openshift/openshift-copies_test.go:101–115  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

99}
100
101func TestDefaultClientConfig(t *testing.T) {
102 setupKubeConfigForSerialTest(t)
103
104 config := defaultClientConfig()
105 res, err := config.ClientConfig()
106 require.NoError(t, err)
107 assert.Equal(t, &restConfig{
108 Host: "https://172.17.0.2:8443",
109 TLSClientConfig: restTLSClientConfig{
110 CertData: []byte("Client cert"),
111 KeyData: []byte("Client key"),
112 CAData: []byte("Cluster CA"),
113 },
114 }, res)
115}

Callers

nothing calls this directly

Calls 3

defaultClientConfigFunction · 0.85
ClientConfigMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…