(t *testing.T)
| 1206 | } |
| 1207 | |
| 1208 | func TestInstallCRDs_WaiterError(t *testing.T) { |
| 1209 | config := actionConfigFixture(t) |
| 1210 | failingKubeClient := kubefake.FailingKubeClient{PrintingKubeClient: kubefake.PrintingKubeClient{Out: io.Discard}, DummyResources: nil} |
| 1211 | failingKubeClient.WaitError = errors.New("wait error") |
| 1212 | failingKubeClient.BuildDummy = true |
| 1213 | config.KubeClient = &failingKubeClient |
| 1214 | instAction := NewInstall(config) |
| 1215 | |
| 1216 | mockFile := common.File{ |
| 1217 | Name: "crds/foo.yaml", |
| 1218 | Data: []byte("hello"), |
| 1219 | } |
| 1220 | mockChart := buildChart(withFile(mockFile)) |
| 1221 | crdsToInstall := mockChart.CRDObjects() |
| 1222 | |
| 1223 | require.Error(t, instAction.installCRDs(crdsToInstall), "wait error") |
| 1224 | } |
| 1225 | |
| 1226 | func TestCheckDependencies(t *testing.T) { |
| 1227 | dependency := chart.Dependency{Name: "hello"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…