Use main for the main provenance layer
This commit is contained in:
@@ -52,12 +52,12 @@ func TestBroadPartialCLIOverrideRetainsUnchangedMetadata(t *testing.T) {
|
||||
value := result.value.Interface().(config).Records[name]
|
||||
for _, key := range []string{"zero", "enabled"} {
|
||||
pointer := path.Key(key).String()
|
||||
if _, explicit := result.presence[pointer]; !explicit || result.origins[pointer].Layer != LayerBase {
|
||||
if _, explicit := result.presence[pointer]; !explicit || result.origins[pointer].Layer != LayerMain {
|
||||
t.Fatalf("retained explicit field lost metadata at %s", pointer)
|
||||
}
|
||||
}
|
||||
if index%2 != 0 {
|
||||
if value.Count != 9 || len(value.Items) != 1 || value.Maybe == nil || result.origins[path.Key("count").String()].Layer != LayerBase {
|
||||
if value.Count != 9 || len(value.Items) != 1 || value.Maybe == nil || result.origins[path.Key("count").String()].Layer != LayerMain {
|
||||
t.Fatalf("omitted record changed at %s", path)
|
||||
}
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user