[RIC-433] Add DeleteEnb implementation
[ric-plt/e2mgr.git] / E2Manager / mocks / nodeb_controller_mock.go
index eafc935..2f1a15d 100644 (file)
@@ -15,6 +15,9 @@
 // limitations under the License.
 //
 
+//  This source code is part of the near-RT RIC (RAN Intelligent Controller)
+//  platform project (RICP).
+
 package mocks
 
 import (
@@ -58,14 +61,26 @@ 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) 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)