X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmocks%2Fnodeb_controller_mock.go;h=8308fc1d2045d7c54e17f5c21efe515040772107;hb=fe8d481d7f3e8d4b889ee3dcd995984eeb64cc6e;hp=a1643833bd1c0492fc6e830dcd184052b6f0faab;hpb=f1035e286c9cdb58fd786daf4d6c5cc9bea45a37;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/mocks/nodeb_controller_mock.go b/E2Manager/mocks/nodeb_controller_mock.go index a164383..8308fc1 100644 --- a/E2Manager/mocks/nodeb_controller_mock.go +++ b/E2Manager/mocks/nodeb_controller_mock.go @@ -61,21 +61,40 @@ func (c *NodebControllerMock) X2Reset(writer http.ResponseWriter, r *http.Reques c.Called() } -func (c *NodebControllerMock) X2Setup(writer http.ResponseWriter, r *http.Request) { +func (c *NodebControllerMock) UpdateGnb(writer http.ResponseWriter, r *http.Request) { writer.Header().Set("Content-Type", "application/json") writer.WriteHeader(http.StatusOK) c.Called() } -func (c *NodebControllerMock) EndcSetup(writer http.ResponseWriter, r *http.Request) { +func (c *NodebControllerMock) UpdateEnb(writer http.ResponseWriter, r *http.Request) { writer.Header().Set("Content-Type", "application/json") writer.WriteHeader(http.StatusOK) c.Called() } -func (c *NodebControllerMock) UpdateGnb(writer http.ResponseWriter, r *http.Request) { +func (c *NodebControllerMock) AddEnb(writer http.ResponseWriter, r *http.Request) { + writer.Header().Set("Content-Type", "application/json") + writer.WriteHeader(http.StatusCreated) + c.Called() +} + +func (c *NodebControllerMock) DeleteEnb(writer http.ResponseWriter, r *http.Request) { + writer.Header().Set("Content-Type", "application/json") + writer.WriteHeader(http.StatusNoContent) + c.Called() +} + +func (c *NodebControllerMock) SetGeneralConfiguration(writer http.ResponseWriter, r *http.Request) { + writer.Header().Set("Content-Type", "application/json") + writer.WriteHeader(http.StatusOK) + + c.Called() +} + +func (c *NodebControllerMock) HealthCheckRequest(writer http.ResponseWriter, r *http.Request) { writer.Header().Set("Content-Type", "application/json") writer.WriteHeader(http.StatusOK)