X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fmocks%2Fnodeb_controller_mock.go;h=923955a61d3cdeae5522a03bccb0194c655a38b0;hb=3cc66b66dd9448e88f7df825f16066e84d3e3068;hp=8308fc1d2045d7c54e17f5c21efe515040772107;hpb=fe8d481d7f3e8d4b889ee3dcd995984eeb64cc6e;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/mocks/nodeb_controller_mock.go b/E2Manager/mocks/nodeb_controller_mock.go index 8308fc1..923955a 100644 --- a/E2Manager/mocks/nodeb_controller_mock.go +++ b/E2Manager/mocks/nodeb_controller_mock.go @@ -1,6 +1,7 @@ // // Copyright 2019 AT&T Intellectual Property // Copyright 2019 Nokia +// Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -45,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() } @@ -96,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() }