(t *testing.T)
| 157 | } |
| 158 | |
| 159 | func 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 | |
| 173 | func TestUninstall_WaitOptionsPassedDownstream(t *testing.T) { |
| 174 | is := assert.New(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…