X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmocks%2Fnodeb_controller_mock.go;h=923955a61d3cdeae5522a03bccb0194c655a38b0;hb=d2b9be015618ea5214a55c107cbdf1ef4b2ebb1f;hp=d51e84061106e6f73599ca7409d201da977fd092;hpb=5f208b14c6685e2f70897c16da848f8f0ef73a90;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/mocks/nodeb_controller_mock.go b/E2Manager/mocks/nodeb_controller_mock.go index d51e840..923955a 100644 --- a/E2Manager/mocks/nodeb_controller_mock.go +++ b/E2Manager/mocks/nodeb_controller_mock.go @@ -46,6 +46,17 @@ func (c *NodebControllerMock) GetNodebIdList(writer http.ResponseWriter, r *http c.Called() } +func (c *NodebControllerMock) GetNodebId(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 *NodebControllerMock) Shutdown(writer http.ResponseWriter, r *http.Request) { c.Called() } @@ -97,7 +108,7 @@ func (c *NodebControllerMock) SetGeneralConfiguration(writer http.ResponseWriter func (c *NodebControllerMock) HealthCheckRequest(writer http.ResponseWriter, r *http.Request) { writer.Header().Set("Content-Type", "application/json") - writer.WriteHeader(http.StatusOK) + writer.WriteHeader(http.StatusAccepted) c.Called() }