brandboat commented on code in PR #764:
URL: https://github.com/apache/yunikorn-core/pull/764#discussion_r1438081639
##########
pkg/webservice/handlers_test.go:
##########
@@ -1453,6 +1467,23 @@ func TestSpecificUserAndGroupResourceUsage(t *testing.T)
{
assert.NilError(t, err, "Get User Resource Usage Handler request
failed")
resp = &MockResponseWriter{}
getUserResourceUsage(resp, req)
+ assertUserExists(t, resp,
+ &dao.UserResourceUsageDAOInfo{
+ UserName: "testuser",
Review Comment:
It looks like this is intentional. manager.go#getUserTracker returns the
requested user tracker and creates one if it does not exist.
https://github.com/apache/yunikorn-core/blob/3b5a65d085ff49319e4ce6705e91a416efea1d70/pkg/scheduler/ugm/manager.go#L556-L570
--
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]