Testing with malformed Deployment.yaml
(t *testing.T)
| 137 | |
| 138 | // Testing with malformed Deployment.yaml |
| 139 | func TestInvalidDeployments(t *testing.T) { |
| 140 | var opt chartutil.ReleaseOptions |
| 141 | |
| 142 | _, err := RenderHelmChart(false, consts.InvalidDeploymentSyntax, opt) |
| 143 | assert.NotNil(t, err) |
| 144 | assert.Contains(t, err.Error(), "parse error") |
| 145 | assert.Contains(t, err.Error(), "function \"selector\" not defined") |
| 146 | |
| 147 | _, err = RenderHelmChart(false, consts.InvalidDeploymentValues, opt) |
| 148 | assert.NotNil(t, err) |
| 149 | assert.Contains(t, err.Error(), "map has no entry for key") |
| 150 | } |
| 151 | |
| 152 | // Test different helm folder structures |
| 153 | func TestDifferentFolderStructures(t *testing.T) { |
nothing calls this directly
no test coverage detected