Compose pipeline steps using native identities
This commit is contained in:
@@ -77,6 +77,10 @@ func TestDiscoveredMainAndStepReferenceNormalization(t *testing.T) {
|
||||
artifacts:
|
||||
result:
|
||||
extract: {module: " extract "}
|
||||
- id: second
|
||||
artifacts:
|
||||
next:
|
||||
extract: {module: " extract "}
|
||||
`), 0600); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -91,7 +95,7 @@ func TestDiscoveredMainAndStepReferenceNormalization(t *testing.T) {
|
||||
if step.ID != "first" || step.Artifacts["result"].Extract.Module != "extract" || step.References["source"].Path != filepath.Join(fragmentDir, "source.txt") {
|
||||
t.Fatalf("normalized step = %#v", step)
|
||||
}
|
||||
history := loaded.result.Metadata().History(configkit.Keys("pipelines", "session", "steps").Index(0).Key("artifacts").Key("result").Key("extract").Key("module"))
|
||||
history := loaded.result.Metadata().History(configkit.Keys("pipelines", "session", "steps").Index(1).Key("artifacts").Key("next").Key("extract").Key("module"))
|
||||
if len(history) < 2 || history[len(history)-1].Origin.Operation != configkit.ChangeNormalization {
|
||||
t.Fatalf("module leaf history = %#v", history)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user