Use main for the main provenance layer
This commit is contained in:
@@ -33,7 +33,7 @@ func TestPostDecodeOverrideContextOrdersDecodeCLIAndResolutionEvidence(t *testin
|
||||
if len(issues) != 0 {
|
||||
t.Fatalf("decodeConfigurationWithContext() issues = %#v", issues)
|
||||
}
|
||||
sources := []SourceInfo{{ID: "source-1", Label: "main input", Layer: LayerBase, Kind: SourceKindMapping}}
|
||||
sources := []SourceInfo{{ID: "source-1", Label: "main input", Layer: LayerMain, Kind: SourceKindMapping}}
|
||||
contexts := map[string]ResourceContext{"source-1": {BaseDir: "/config"}}
|
||||
input := assembledInput{document: structural, sources: sources, contexts: contexts}
|
||||
batch, diagnostics := preparePostStructuralOverrides(overridePreparationInput{root: structural}, sources, []Override{
|
||||
@@ -114,7 +114,7 @@ func TestPostDecodeOverrideContextOrdersDecodeCLIAndResolutionEvidence(t *testin
|
||||
t.Fatal("Explain(rate) did not return a history")
|
||||
}
|
||||
if len(rateExplanation.History) != 4 || rateExplanation.History[0].Origin.Layer != LayerDefault ||
|
||||
rateExplanation.History[1].Origin.Layer != LayerBase || rateExplanation.History[2].Origin.Operation != ChangeDecoding ||
|
||||
rateExplanation.History[1].Origin.Layer != LayerMain || rateExplanation.History[2].Origin.Operation != ChangeDecoding ||
|
||||
rateExplanation.History[3].Origin.Layer != LayerCLI {
|
||||
t.Fatalf("rate history order = %#v", rateExplanation.History)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user