Use main for the main provenance layer
This commit is contained in:
@@ -38,7 +38,7 @@ func TestCLIOverrideRecordsTrackConcreteShapeChanges(t *testing.T) {
|
||||
setOverrideTestDocumentSource(incomingRoot, "cli-source")
|
||||
incoming, _ := documentAtPath(incomingRoot, Keys("target"))
|
||||
origins := make(map[string]Origin)
|
||||
collectOverlayOrigins(origins, before, Path{}, LayerBase)
|
||||
collectOverlayOrigins(origins, before, Path{}, LayerMain)
|
||||
records := overrideMetadataRecords(decodedConfiguration{final: before, origins: origins}, []preparedOverride{{
|
||||
path: Keys("target"), value: incoming, source: SourceInfo{ID: "cli-source"},
|
||||
}})
|
||||
@@ -83,7 +83,7 @@ func TestCLIHistoryEvidenceKeepsCheckpointsAndConditionalReconciliation(t *testi
|
||||
structural := parseDocumentForDecode(t, "count: 7\nsettings: {a: 1, b: 2}\nitems: {old: value}\n")
|
||||
preCLI := parseDocumentForDecode(t, "count: '7'\nsettings: {a: 1, b: 2}\nitems: {old: value}\ndefaulted: 9\n")
|
||||
preOrigins := map[string]Origin{
|
||||
Keys("count").String(): {Layer: LayerBase, Locations: []Location{{SourceID: "input"}}},
|
||||
Keys("count").String(): {Layer: LayerMain, Locations: []Location{{SourceID: "input"}}},
|
||||
Keys("defaulted").String(): {Layer: LayerDefault},
|
||||
}
|
||||
countRoot := parseDocumentForDecode(t, "count: 7\n")
|
||||
|
||||
Reference in New Issue
Block a user