-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor templatize ev2 package #887
Conversation
Please rebase pull request. |
@@ -231,3 +233,78 @@ func TestConvertToInterface(t *testing.T) { | |||
assert.IsType(t, expected, map[string]any{}) | |||
assert.IsType(t, expected["key2"], map[string]any{}) | |||
} | |||
|
|||
func TestPreprocessContent(t *testing.T) { | |||
fileContent, err := os.ReadFile("../../testdata/test.bicepparam") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider //go:embed
for static test data, much faster.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll do some readup on go:embed. ty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
de809a7
to
1d13826
Compare
* `PrecompilePipelineForEV2` renamed to `PrecompilePipelineFileForEV2` * `PrecompilePipelineForEV2` reintroduced but returns a parsed `pipeline.Pipeline` struct * refactoring for testability Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
1d13826
to
ad2c1ff
Compare
Co-authored-by: Steve Kuznetsov <stekuznetsov@microsoft.com>
3e780ee
to
caf2cc7
Compare
Signed-off-by: Gerd Oberlechner <goberlec@redhat.com>
caf2cc7
to
d3807c0
Compare
What this PR does
PrecompilePipelineForEV2
renamed toPrecompilePipelineFileForEV2
PrecompilePipelineForEV2
reintroduced but returns a parsedpipeline.Pipeline
structconfig.Pipeline
sub-structsNewEv2ConfigReplacements
Jira:
Link to demo recording:
Special notes for your reviewer