pbacsko commented on code in PR #465:
URL: https://github.com/apache/yunikorn-core/pull/465#discussion_r1039658085
##########
pkg/scheduler/ugm/manager_test.go:
##########
@@ -90,6 +92,10 @@ func TestAddRemoveUserAndGroups(t *testing.T) {
t.Fatalf("unable to increase tracked resource: queuepath %s,
app %s, res %v, error %t", queuePath2, TestApp2, usage2, err)
}
assertUGM(t, user1, usage2, 2)
+ assert.Equal(t, user.User,
manager.GetUserResourcesByUserName(user.User).userName, "userTracker for user:
"+user.User+" should not be nil")
+ assert.Equal(t, user.Groups[0],
manager.GetGroupResourcesByGroupName(user.Groups[0]).groupName, "groupTracker
for group: "+user.Groups[0]+" should not be nil")
+ assert.Equal(t, user1.User,
manager.GetUserResourcesByUserName(user1.User).userName, "userTracker for user:
"+user1.User+" should not be nil")
+ assert.Equal(t, user1.Groups[0],
manager.GetGroupResourcesByGroupName(user1.Groups[0]).groupName, "groupTracker
for group: "+user1.Groups[0]+" should not be nil")
Review Comment:
Same here, error message.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]