From c8068903992bc46f16c61fb8eccbe523b9177dc7 Mon Sep 17 00:00:00 2001 From: steinsgateted Date: Thu, 18 May 2023 17:28:49 +0800 Subject: [PATCH] [YUNIKORN-1735] REST API for specific node --- pkg/webservice/handlers_test.go | 1 + pkg/webservice/routes.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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",