@@ -390,6 +390,11 @@ func TestDatastore_populateTree(t *testing.T) {
390390 types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "description" }, testhelper .GetStringTvProto ("MyDescriptionOwner2" ), prio10 , owner2 , 0 ),
391391 types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "admin-state" }, testhelper .GetStringTvProto ("enable" ), prio10 , owner2 , 0 ),
392392 },
393+ runningStoreUpdates : []* types.Update {
394+ types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "name" }, testhelper .GetStringTvProto ("ethernet-1/1" ), tree .RunningValuesPrio , tree .RunningIntentName , 0 ),
395+ types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "description" }, testhelper .GetStringTvProto ("MyDescriptionOwner2" ), tree .RunningValuesPrio , tree .RunningIntentName , 0 ),
396+ types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "admin-state" }, testhelper .GetStringTvProto ("enable" ), tree .RunningValuesPrio , tree .RunningIntentName , 0 ),
397+ },
393398 },
394399 {
395400 name : "Delete - aggregate branch via keys, multiple entries (different keys)" ,
@@ -410,17 +415,17 @@ func TestDatastore_populateTree(t *testing.T) {
410415 SkipValidation : false ,
411416 })
412417 },
413- intentDelete : true ,
418+ intentDelete : true ,
414419 runningStoreUpdates : []* types.Update {
415- // cache .NewUpdate([]string{"interface", "ethernet-1/1", "name"}, testhelper.GetStringTvProto("ethernet-1/1"), prio10, owner2 , 0),
416- // cache .NewUpdate([]string{"interface", "ethernet-1/1", "description"}, testhelper.GetStringTvProto("MyDescriptionOwner2"), prio10, owner2 , 0),
417- // cache .NewUpdate([]string{"interface", "ethernet-1/1", "admin-state"}, testhelper.GetStringTvProto("enable"), prio10, owner2 , 0),
418- // cache .NewUpdate([]string{"interface", "ethernet-1/2", "name"}, testhelper.GetStringTvProto("ethernet-1/2"), prio10, owner2 , 0),
419- // cache .NewUpdate([]string{"interface", "ethernet-1/2", "description"}, testhelper.GetStringTvProto("MyDescriptionOwner2"), prio10, owner2 , 0),
420- // cache .NewUpdate([]string{"interface", "ethernet-1/2", "admin-state"}, testhelper.GetStringTvProto("enable"), prio10, owner2 , 0),
421- // cache .NewUpdate([]string{"interface", "ethernet-1/3", "name"}, testhelper.GetStringTvProto("ethernet-1/3"), prio10, owner2 , 0),
422- // cache .NewUpdate([]string{"interface", "ethernet-1/3", "description"}, testhelper.GetStringTvProto("MyDescriptionOwner2"), prio10, owner2 , 0),
423- // cache .NewUpdate([]string{"interface", "ethernet-1/3", "admin-state"}, testhelper.GetStringTvProto("enable"), prio10, owner2 , 0),
420+ types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "name" }, testhelper .GetStringTvProto ("ethernet-1/1" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
421+ types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "description" }, testhelper .GetStringTvProto ("MyDescriptionOwner2" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
422+ types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "admin-state" }, testhelper .GetStringTvProto ("enable" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
423+ types .NewUpdate ([]string {"interface" , "ethernet-1/2" , "name" }, testhelper .GetStringTvProto ("ethernet-1/2" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
424+ types .NewUpdate ([]string {"interface" , "ethernet-1/2" , "description" }, testhelper .GetStringTvProto ("MyDescriptionOwner2" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
425+ types .NewUpdate ([]string {"interface" , "ethernet-1/2" , "admin-state" }, testhelper .GetStringTvProto ("enable" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
426+ types .NewUpdate ([]string {"interface" , "ethernet-1/3" , "name" }, testhelper .GetStringTvProto ("ethernet-1/3" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
427+ types .NewUpdate ([]string {"interface" , "ethernet-1/3" , "description" }, testhelper .GetStringTvProto ("MyDescriptionOwner2" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
428+ types .NewUpdate ([]string {"interface" , "ethernet-1/3" , "admin-state" }, testhelper .GetStringTvProto ("enable" ), tree . RunningValuesPrio , tree . RunningIntentName , 0 ),
424429 },
425430 expectedDeletes : [][]string {
426431 {"interface" , "ethernet-1/1" , "admin-state" },
@@ -441,7 +446,7 @@ func TestDatastore_populateTree(t *testing.T) {
441446 },
442447 expectedModify : []* types.Update {
443448 types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "description" }, testhelper .GetStringTvProto ("MyNonappliedDescription" ), prio10 , owner2 , 0 ),
444- types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "name" }, testhelper .GetStringTvProto ("ethernet-1/1" ), prio10 , owner2 , 0 ),
449+ // types.NewUpdate([]string{"interface", "ethernet-1/1", "name"}, testhelper.GetStringTvProto("ethernet-1/1"), prio10, owner2, 0),
445450 },
446451 intendedStoreUpdates : []* types.Update {
447452 types .NewUpdate ([]string {"interface" , "ethernet-1/1" , "name" }, testhelper .GetStringTvProto ("ethernet-1/1" ), prio10 , owner2 , 0 ),
0 commit comments