Files
atlantis/server/events_controller_test.go
2017-10-18 06:44:44 -07:00

23 lines
628 B
Go

package server_test
import (
"testing"
//. "github.com/hootsuite/atlantis/testing_util"
//. "github.com/petergtz/pegomock"
//"github.com/hootsuite/atlantis/server"
//"github.com/hootsuite/atlantis/server/logging"
//"net/http"
//"bytes"
)
func TestPost_InvalidSecret(t *testing.T) {
//t.Log("when the payload can't be validated against the github secret there is an error")
//RegisterMockTestingT(t)
//e := server.EventsController{
// Logger: logging.NewNoopLogger(),
// GithubWebHookSecret: []byte("secret"),
//}
//req, err := http.NewRequest("GET", "http://localhost/event", bytes.NewBuffer(nil))
//e.Post()
}