[RICPLT-2523] Add SelectE2TInstance mechanism | Change Setup flow | Refactor code...
[ric-plt/e2mgr.git] / E2Manager / mocks / nodebControllerMock.go
1 package mocks
2
3 import (
4         "github.com/gorilla/mux"
5         "github.com/stretchr/testify/mock"
6         "net/http"
7 )
8
9 type NodebControllerMock struct {
10         mock.Mock
11 }
12
13 func (rc *NodebControllerMock) HandleRequest(writer http.ResponseWriter, request *http.Request) {
14         rc.Called()
15 }
16
17 func (rc *NodebControllerMock) GetNodebIdList (writer http.ResponseWriter, request *http.Request) {
18         rc.Called()
19 }
20
21 func (rc *NodebControllerMock) GetNodeb(writer http.ResponseWriter, request *http.Request) {
22         writer.Header().Set("Content-Type", "application/json")
23         writer.WriteHeader(http.StatusOK)
24
25         vars := mux.Vars(request)
26         ranName := vars["ranName"]
27
28         writer.Write([]byte(ranName))
29
30         rc.Called()
31 }
32
33 func (rc *NodebControllerMock) HandleHealthCheckRequest(writer http.ResponseWriter, request *http.Request) {
34         rc.Called()
35 }