diff --git a/pkg/webservice/handlers_test.go b/pkg/webservice/handlers_test.go index 3fe909930..0899e822b 100644 --- a/pkg/webservice/handlers_test.go +++ b/pkg/webservice/handlers_test.go @@ -872,6 +872,7 @@ func TestGetPartitionNodes(t *testing.T) { req = req.WithContext(context.WithValue(req.Context(), httprouter.ParamsKey, httprouter.Params{httprouter.Param{Key: "node", Value: ""}})) assert.NilError(t, err, "Get Node for PartitionNode Handler request failed") resp = &MockResponseWriter{} + getPartitionNodes(resp, req) assertNodeIDExists(t, resp) } diff --git a/pkg/webservice/routes.go b/pkg/webservice/routes.go index f42797b2c..b4ef2c10e 100644 --- a/pkg/webservice/routes.go +++ b/pkg/webservice/routes.go @@ -120,7 +120,7 @@ var webRoutes = routes{ "Scheduler", "GET", "/ws/v1/partition/:partition/nodes/:node", - getNode, + getPartitionNode, }, route{ "Scheduler",