Use main for the main provenance layer
This commit is contained in:
@@ -153,7 +153,7 @@ value: scalar
|
||||
}
|
||||
changed, _ := result.Metadata().Lookup(Keys("settings", "changed"))
|
||||
kept, _ := result.Metadata().Lookup(Keys("settings", "kept"))
|
||||
if changed.Origin.Layer != LayerOverlay || changed.Origin.Locations[0].SourceID != "source-3" || kept.Origin.Layer != LayerBase {
|
||||
if changed.Origin.Layer != LayerOverlay || changed.Origin.Locations[0].SourceID != "source-3" || kept.Origin.Layer != LayerMain {
|
||||
t.Fatalf("origins = changed %#v kept %#v", changed, kept)
|
||||
}
|
||||
if _, ok := result.Metadata().Lookup(Keys("value", "child")); ok {
|
||||
@@ -248,7 +248,7 @@ items: [{id: c, value: replacement}]
|
||||
if test.mode == "append" {
|
||||
base, _ := result.Metadata().Lookup(Keys("items").Index(0).Key("value"))
|
||||
added, _ := result.Metadata().Lookup(Keys("items").Index(2).Key("value"))
|
||||
if base.Origin.Layer != LayerBase || added.Origin.Layer != LayerOverlay {
|
||||
if base.Origin.Layer != LayerMain || added.Origin.Layer != LayerOverlay {
|
||||
t.Fatalf("append origins = base %#v added %#v", base.Origin, added.Origin)
|
||||
}
|
||||
history := result.Metadata().History(Keys("items").Index(2).Key("value"))
|
||||
|
||||
Reference in New Issue
Block a user