[RICPLT-2789] Refactor HttpClient | Add DeleteE2TInstance method
[ric-plt/e2mgr.git] / E2Manager / mocks / http_client_mock.go
index 1294c48..7c5dcad 100644 (file)
@@ -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)
+}