4 "github.com/gorilla/mux"
5 "github.com/stretchr/testify/mock"
9 type ControllerMock struct {
13 func (c *ControllerMock) ShutdownHandler(writer http.ResponseWriter, r *http.Request){
17 func (c *ControllerMock) X2ResetHandler(writer http.ResponseWriter, r *http.Request){
18 writer.Header().Set("Content-Type", "application/json")
19 writer.WriteHeader(http.StatusOK)
22 ranName := vars["ranName"]
24 writer.Write([]byte(ranName))
29 func (c *ControllerMock) X2SetupHandler(writer http.ResponseWriter, r *http.Request){
30 writer.Header().Set("Content-Type", "application/json")
31 writer.WriteHeader(http.StatusOK)
36 func (c *ControllerMock) EndcSetupHandler(writer http.ResponseWriter, r *http.Request){
37 writer.Header().Set("Content-Type", "application/json")
38 writer.WriteHeader(http.StatusOK)