validateWorkflowTemplate is a test helper to accept WorkflowTemplate YAML as a string and return its validation result.
(ctx context.Context, yamlStr string, opts ValidateOpts)
| 53 | // validateWorkflowTemplate is a test helper to accept WorkflowTemplate YAML as a string and return |
| 54 | // its validation result. |
| 55 | func validateWorkflowTemplate(ctx context.Context, yamlStr string, opts ValidateOpts) error { |
| 56 | wftmpl := unmarshalWftmpl(yamlStr) |
| 57 | err := ValidateWorkflowTemplate(ctx, wftmplGetter, cwftmplGetter, wftmpl, nil, opts) |
| 58 | return err |
| 59 | } |
| 60 | |
| 61 | func unmarshalWf(yamlStr string) *wfv1.Workflow { |
| 62 | var wf wfv1.Workflow |
no test coverage detected