Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nmagent/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,14 +408,14 @@ func TestNMAgentSupportedAPIs(t *testing.T) {
{
"empty",
nil,
"/machine/plugins/?comp=nmagent&type=network/nmagentsupportedapis",
"/machine/plugins/?comp=nmagent&type=GetSupportedApis",
"<SupportedAPIsResponseXML></SupportedAPIsResponseXML>",
false,
},
{
"happy",
[]string{"foo"},
"/machine/plugins/?comp=nmagent&type=network/nmagentsupportedapis",
"/machine/plugins/?comp=nmagent&type=GetSupportedApis",
"<SupportedAPIsResponseXML><type>foo</type></SupportedAPIsResponseXML>",
false,
},
Expand Down
2 changes: 1 addition & 1 deletion nmagent/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down