[RICPLT-2813] Update Swagger: /e2t/list
[ric-plt/e2mgr.git] / E2Manager / mocks / controllerMock.go
index 390005c..7575f72 100644 (file)
@@ -10,11 +10,28 @@ type ControllerMock struct {
        mock.Mock
 }
 
-func (c *ControllerMock) ShutdownHandler(writer http.ResponseWriter, r *http.Request){
+func (c *ControllerMock) GetNodeb(writer http.ResponseWriter, r *http.Request){
+               writer.Header().Set("Content-Type", "application/json")
+               writer.WriteHeader(http.StatusOK)
+
+               vars := mux.Vars(r)
+               ranName := vars["ranName"]
+
+               writer.Write([]byte(ranName))
+
+               c.Called()
+}
+
+func (c *ControllerMock) GetNodebIdList(writer http.ResponseWriter, r *http.Request){
        c.Called()
 }
 
-func (c *ControllerMock) X2ResetHandler(writer http.ResponseWriter, r *http.Request){
+
+func (c *ControllerMock) Shutdown(writer http.ResponseWriter, r *http.Request){
+       c.Called()
+}
+
+func (c *ControllerMock) X2Reset(writer http.ResponseWriter, r *http.Request){
        writer.Header().Set("Content-Type", "application/json")
        writer.WriteHeader(http.StatusOK)
 
@@ -26,3 +43,16 @@ func (c *ControllerMock) X2ResetHandler(writer http.ResponseWriter, r *http.Requ
        c.Called()
 }
 
+func (c *ControllerMock) X2Setup(writer http.ResponseWriter, r *http.Request){
+       writer.Header().Set("Content-Type", "application/json")
+       writer.WriteHeader(http.StatusOK)
+
+       c.Called()
+}
+
+func (c *ControllerMock) EndcSetup(writer http.ResponseWriter, r *http.Request){
+       writer.Header().Set("Content-Type", "application/json")
+       writer.WriteHeader(http.StatusOK)
+
+       c.Called()
+}
\ No newline at end of file