MCPcopy
hub / github.com/helm/helm / TestUninstallRun_UnreachableKubeClient

Function TestUninstallRun_UnreachableKubeClient

pkg/action/uninstall_test.go:159–171  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

157}
158
159func TestUninstallRun_UnreachableKubeClient(t *testing.T) {
160 t.Helper()
161 config := actionConfigFixture(t)
162 failingKubeClient := kubefake.FailingKubeClient{PrintingKubeClient: kubefake.PrintingKubeClient{Out: io.Discard}, DummyResources: nil}
163 failingKubeClient.ConnectionError = errors.New("connection refused")
164 config.KubeClient = &failingKubeClient
165
166 client := NewUninstall(config)
167 result, err := client.Run("")
168
169 assert.Nil(t, result)
170 assert.ErrorContains(t, err, "connection refused")
171}
172
173func TestUninstall_WaitOptionsPassedDownstream(t *testing.T) {
174 is := assert.New(t)

Callers

nothing calls this directly

Calls 4

RunMethod · 0.95
actionConfigFixtureFunction · 0.85
NewUninstallFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…