mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-06 15:58:43 +00:00
23 lines
628 B
Go
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()
|
|
}
|