X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmocks%2Fhttp_client_mock.go;h=7c5dcadf36f4918515905a601fe04103501c9363;hb=6c768752831c511df0a38f76116fc44cf2a4caf3;hp=1294c4846094159f9b6799a1534ffd4f1bd6122e;hpb=f846c5987cd35da745534e26ac3a22bdcf8b030a;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/mocks/http_client_mock.go b/E2Manager/mocks/http_client_mock.go index 1294c48..7c5dcad 100644 --- a/E2Manager/mocks/http_client_mock.go +++ b/E2Manager/mocks/http_client_mock.go @@ -17,7 +17,6 @@ // This source code is part of the near-RT RIC (RAN Intelligent Controller) // platform project (RICP). - package mocks import ( @@ -31,11 +30,11 @@ type HttpClientMock struct { } func (c *HttpClientMock) Post(url, contentType string, body io.Reader) (resp *http.Response, err error) { - args := c.Called(url, contentType, body) - return args.Get(0).(*http.Response), args.Error(1) + args := c.Called(url, contentType, body) + return args.Get(0).(*http.Response), args.Error(1) } -//func (c *HttpClientMock) Do(req *http.Request) (*http.Response, error) { -// args := c.Called(req) -// return args.Get(0).(*http.Response), args.Error(1) -//} +func (c *HttpClientMock) Delete(url, contentType string, body io.Reader) (resp *http.Response, err error) { + args := c.Called(url, contentType, body) + return args.Get(0).(*http.Response), args.Error(1) +}