MCPcopy Create free account
hub / github.com/conforma/cli / Test_FailureToCreateClient

Function Test_FailureToCreateClient

internal/kubernetes/client_test.go:158–163  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func Test_FailureToCreateClient(t *testing.T) {
159 t.Setenv("KUBECONFIG", "/nonexistant")
160 _, err := createK8SClient()
161
162 assert.EqualError(t, err, "invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable")
163}
164
165func Test_FetchSnapshot(t *testing.T) {
166 testCases := []struct {

Callers

nothing calls this directly

Calls 1

createK8SClientFunction · 0.85

Tested by

no test coverage detected