From 506aa84c87530b0821dce67d24e2fcc6d1d52b6e Mon Sep 17 00:00:00 2001 From: zetaozhuang Date: Thu, 27 Oct 2022 12:51:28 -0700 Subject: [PATCH] fix: correct supportedApis path --- nmagent/client_test.go | 4 ++-- nmagent/requests.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nmagent/client_test.go b/nmagent/client_test.go index c228b5c9fa..e8f7c2fd19 100644 --- a/nmagent/client_test.go +++ b/nmagent/client_test.go @@ -408,14 +408,14 @@ func TestNMAgentSupportedAPIs(t *testing.T) { { "empty", nil, - "/machine/plugins/?comp=nmagent&type=network/nmagentsupportedapis", + "/machine/plugins/?comp=nmagent&type=GetSupportedApis", "", false, }, { "happy", []string{"foo"}, - "/machine/plugins/?comp=nmagent&type=network/nmagentsupportedapis", + "/machine/plugins/?comp=nmagent&type=GetSupportedApis", "foo", false, }, diff --git a/nmagent/requests.go b/nmagent/requests.go index b03e4c0e32..a7809e0b14 100644 --- a/nmagent/requests.go +++ b/nmagent/requests.go @@ -302,7 +302,7 @@ func (s *SupportedAPIsRequest) Method() string { // Path returns the necessary URI path for invoking a supported APIs request. func (s *SupportedAPIsRequest) Path() string { - return "/network/nmagentsupportedapis" + return "/GetSupportedApis" } // Validate is a no-op method because SupportedAPIsRequests have no parameters,