genofire/hs_monolith
genofire
/
hs_monolith
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
hs_monolith/http/status_test.go

20 lines
368 B
Go
Raw Normal View History

2017-03-25 16:09:17 +01:00
package http
import (
"net/http"
"testing"
"github.com/genofire/hs_master-kss-monolith/test"
)
func TestStatus(t *testing.T) {
assertion, router := test.Init(t)
BindAPI(router)
session := test.NewSession(router)
result, w := session.JSONRequest("GET", "/api/status", nil)
assertion.Equal(http.StatusOK, w.StatusCode)
2017-03-26 20:11:09 +02:00
assertion.Equal("running", result)
2017-03-25 16:09:17 +01:00
}