Exemplo n.º 1
0
func TestPostalSuite(t *testing.T) {
	helpers.RegisterFastTokenSigningMethod()

	buffer := bytes.NewBuffer([]byte{})
	metricsLogger := metrics.DefaultLogger
	metrics.DefaultLogger = log.New(buffer, "", 0)

	RegisterFailHandler(Fail)
	RunSpecs(t, "postal")

	metrics.DefaultLogger = metricsLogger
}
Exemplo n.º 2
0
func TestWebV2CampaignsSuite(t *testing.T) {
	helpers.RegisterFastTokenSigningMethod()

	RegisterFailHandler(Fail)
	RunSpecs(t, "v2/web/campaigns")
}
Exemplo n.º 3
0
func TestWebMiddlewareSuite(t *testing.T) {
	helpers.RegisterFastTokenSigningMethod()

	RegisterFailHandler(Fail)
	RunSpecs(t, "v1/web/middleware")
}
Exemplo n.º 4
0
func TestWebV1NotifySuite(t *testing.T) {
	helpers.RegisterFastTokenSigningMethod()

	RegisterFailHandler(Fail)
	RunSpecs(t, "v1/web/notify")
}
Exemplo n.º 5
0
func TestWebSuite(t *testing.T) {
	helpers.RegisterFastTokenSigningMethod()

	RegisterFailHandler(Fail)
	RunSpecs(t, "web")
}
Exemplo n.º 6
0
func TestWebHandlersServicesSuite(t *testing.T) {
	helpers.RegisterFastTokenSigningMethod()

	RegisterFailHandler(Fail)
	RunSpecs(t, "v1/services")
}
Exemplo n.º 7
0
func TestWebV1PreferencesSuite(t *testing.T) {
	helpers.RegisterFastTokenSigningMethod()

	RegisterFailHandler(Fail)
	RunSpecs(t, "v1/web/preferences")
}