Skip to content

Commit 2f09e13

Browse files
authored
fix: correct supportedApis path (#1682)
correct supportedApis path
1 parent 4d2331d commit 2f09e13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nmagent/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,14 +408,14 @@ func TestNMAgentSupportedAPIs(t *testing.T) {
408408
{
409409
"empty",
410410
nil,
411-
"/machine/plugins/?comp=nmagent&type=network/nmagentsupportedapis",
411+
"/machine/plugins/?comp=nmagent&type=GetSupportedApis",
412412
"<SupportedAPIsResponseXML></SupportedAPIsResponseXML>",
413413
false,
414414
},
415415
{
416416
"happy",
417417
[]string{"foo"},
418-
"/machine/plugins/?comp=nmagent&type=network/nmagentsupportedapis",
418+
"/machine/plugins/?comp=nmagent&type=GetSupportedApis",
419419
"<SupportedAPIsResponseXML><type>foo</type></SupportedAPIsResponseXML>",
420420
false,
421421
},

nmagent/requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func (s *SupportedAPIsRequest) Method() string {
302302

303303
// Path returns the necessary URI path for invoking a supported APIs request.
304304
func (s *SupportedAPIsRequest) Path() string {
305-
return "/network/nmagentsupportedapis"
305+
return "/GetSupportedApis"
306306
}
307307

308308
// Validate is a no-op method because SupportedAPIsRequests have no parameters,

0 commit comments

Comments
 (0)