Update configuration fixtures for native composition
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
configkit "go.maximumdirect.net/configkit"
|
||||
)
|
||||
|
||||
func TestPipelineInheritancePreservesCompositionAndReplacesSteps(t *testing.T) {
|
||||
func TestPipelineInheritancePreservesAndUpsertsSteps(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
tests := []struct {
|
||||
@@ -24,14 +24,14 @@ func TestPipelineInheritancePreservesCompositionAndReplacesSteps(t *testing.T) {
|
||||
wantStepIDs: []string{"prepare", "summarize"},
|
||||
},
|
||||
{
|
||||
name: "replaces ordered steps",
|
||||
name: "appends distinct ordered steps",
|
||||
childSteps: `
|
||||
steps:
|
||||
- id: replacement
|
||||
artifacts:
|
||||
summary:
|
||||
extract: {module: extract}`,
|
||||
wantStepIDs: []string{"replacement"},
|
||||
wantStepIDs: []string{"prepare", "summarize", "replacement"},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -270,7 +270,7 @@ pipelines:
|
||||
}
|
||||
}
|
||||
|
||||
func TestOverlayAndOverridesComposeBeforeInheritance(t *testing.T) {
|
||||
func TestOverlayInheritancePrecedesOverrides(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
root := t.TempDir()
|
||||
@@ -329,8 +329,11 @@ pipelines:
|
||||
if err != nil {
|
||||
t.Fatalf("Load() with explicit override error = %v", err)
|
||||
}
|
||||
if got := *withOverride.Config.Pipelines["inherited"].StructuredOutputRepairAttempts; got != 3 {
|
||||
t.Fatalf("override-inherited repair budget = %d, want 3", got)
|
||||
if got := *withOverride.Config.Pipelines["inherited"].StructuredOutputRepairAttempts; got != 2 {
|
||||
t.Fatalf("inherited repair budget after parent override = %d, want 2", got)
|
||||
}
|
||||
if got := *withOverride.Config.Pipelines["parent"].StructuredOutputRepairAttempts; got != 3 {
|
||||
t.Fatalf("parent override repair budget = %d, want 3", got)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user