[RIC-432] - Support Update eNB REST API.
[ric-plt/e2mgr.git] / E2Manager / mocks / nodeb_controller_mock.go
index 11130b3..2467666 100644 (file)
@@ -61,24 +61,29 @@ 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.StatusOK)
+       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()
 }
 
@@ -87,4 +92,4 @@ func (c *NodebControllerMock) SetGeneralConfiguration(writer http.ResponseWriter
        writer.WriteHeader(http.StatusOK)
 
        c.Called()
-}
\ No newline at end of file
+}