4 "github.com/gorilla/mux"
5 "github.com/stretchr/testify/mock"
9 type ControllerMock struct {
13 func (c *ControllerMock) GetNodeb(writer http.ResponseWriter, r *http.Request){
14 writer.Header().Set("Content-Type", "application/json")
15 writer.WriteHeader(http.StatusOK)
18 ranName := vars["ranName"]
20 writer.Write([]byte(ranName))
25 func (c *ControllerMock) GetNodebIdList(writer http.ResponseWriter, r *http.Request){
30 func (c *ControllerMock) Shutdown(writer http.ResponseWriter, r *http.Request){
34 func (c *ControllerMock) X2Reset(writer http.ResponseWriter, r *http.Request){
35 writer.Header().Set("Content-Type", "application/json")
36 writer.WriteHeader(http.StatusOK)
39 ranName := vars["ranName"]
41 writer.Write([]byte(ranName))
46 func (c *ControllerMock) X2Setup(writer http.ResponseWriter, r *http.Request){
47 writer.Header().Set("Content-Type", "application/json")
48 writer.WriteHeader(http.StatusOK)
53 func (c *ControllerMock) EndcSetup(writer http.ResponseWriter, r *http.Request){
54 writer.Header().Set("Content-Type", "application/json")
55 writer.WriteHeader(http.StatusOK)