** * Testing user errors */ Should fail if the Chart.yaml is invalid
(t *testing.T)
| 122 | |
| 123 | // Should fail if the Chart.yaml is invalid |
| 124 | func TestInvalidChartAndValues(t *testing.T) { |
| 125 | var opt chartutil.ReleaseOptions |
| 126 | |
| 127 | _, err := RenderHelmChart(false, consts.InvalidChartPath, opt) |
| 128 | assert.NotNil(t, err) |
| 129 | assert.Contains(t, err.Error(), "failed to load main chart: validation: chart.metadata.name is required") |
| 130 | |
| 131 | _, err = RenderHelmChart(false, consts.InvalidValuesChart, opt) |
| 132 | assert.NotNil(t, err) |
| 133 | |
| 134 | _, err = RenderHelmChart(false, consts.DirectPath_ToInvalidChart, opt) |
| 135 | assert.NotNil(t, err) |
| 136 | } |
| 137 | |
| 138 | // Testing with malformed Deployment.yaml |
| 139 | func TestInvalidDeployments(t *testing.T) { |
nothing calls this directly
no test coverage detected