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

Function TestDeferredLoadingClientConfig

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

Source from the content-addressed store, hash-verified

82}
83
84func TestDeferredLoadingClientConfig(t *testing.T) {
85 setupKubeConfigForSerialTest(t)
86
87 rules := newOpenShiftClientConfigLoadingRules()
88 deferred := newNonInteractiveDeferredLoadingClientConfig(rules)
89 res, err := deferred.ClientConfig()
90 require.NoError(t, err)
91 assert.Equal(t, &restConfig{
92 Host: "https://172.17.0.2:8443",
93 TLSClientConfig: restTLSClientConfig{
94 CertData: []byte("Client cert"),
95 KeyData: []byte("Client key"),
96 CAData: []byte("Cluster CA"),
97 },
98 }, res)
99}
100
101func TestDefaultClientConfig(t *testing.T) {
102 setupKubeConfigForSerialTest(t)

Callers

nothing calls this directly

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…